- Drop gcj support.

This commit is contained in:
Alexander Kurtakov 2010-10-07 00:33:41 +03:00
parent b84cbf5ed0
commit 9b004de43b

View File

@ -28,33 +28,21 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# #
%define _with_gcj_support 1
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
Name: junit Name: junit
Version: 3.8.2 Version: 3.8.2
Release: 6.4%{?dist} Release: 7%{?dist}
Summary: Java regression test package Summary: Java regression test package
License: CPL License: CPL
Url: http://www.junit.org/ URL: http://www.junit.org/
Group: Development/Tools Group: Development/Tools
# http://osdn.dl.sourceforge.net/junit/junit3.8.2.zip # http://osdn.dl.sourceforge.net/junit/junit3.8.2.zip
Source0: junit3.8.2.zip Source0: junit3.8.2.zip
Source1: junit3.8.2-build.xml Source1: junit3.8.2-build.xml
BuildRequires: ant BuildRequires: ant
BuildRequires: jpackage-utils >= 0:1.6 BuildRequires: jpackage-utils >= 0:1.6
%if ! %{gcj_support} BuildArch: noarch
Buildarch: noarch
%endif
Buildroot: %{_tmppath}/%{name}-%{version}-buildroot Buildroot: %{_tmppath}/%{name}-%{version}-buildroot
%if %{gcj_support}
BuildRequires: java-gcj-compat-devel
Requires(post): java-gcj-compat
Requires(postun): java-gcj-compat
%endif
%description %description
JUnit is a regression testing framework written by Erich Gamma and Kent JUnit is a regression testing framework written by Erich Gamma and Kent
Beck. It is used by the developer who implements unit tests in Java. Beck. It is used by the developer who implements unit tests in Java.
@ -80,12 +68,6 @@ Group: Development/Libraries
Summary: Demos for %{name} Summary: Demos for %{name}
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%if %{gcj_support}
BuildRequires: java-gcj-compat-devel
Requires(post): java-gcj-compat
Requires(postun): java-gcj-compat
%endif
%description demo %description demo
Demonstrations and samples for %{name}. Demonstrations and samples for %{name}.
@ -113,56 +95,33 @@ install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/demo/junit # Not using %nam
# part of package name # part of package name
cp -pr %{name}%{version}/%{name}/* $RPM_BUILD_ROOT%{_datadir}/%{name}/demo/junit cp -pr %{name}%{version}/%{name}/* $RPM_BUILD_ROOT%{_datadir}/%{name}/demo/junit
%if %{gcj_support}
# these --exclude options work around an aot-compile-rpm problem with test.jar
%{_bindir}/aot-compile-rpm --exclude usr/share/junit/demo --exclude usr/share/junit/demo/junit/tests/runner/test.jar
%endif
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%post
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
%postun
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files %files
%defattr(0644,root,root,0755) %defattr(-,root,root,-)
%doc README.html %doc README.html
%{_javadir}/* %{_javadir}/*
%if %{gcj_support}
%dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/junit-3.8.2.jar.*
%endif
%files manual %files manual
%defattr(0644,root,root,0755) %defattr(-,root,root,-)
%doc %{name}%{version}/doc/* %doc %{name}%{version}/doc/*
%files javadoc %files javadoc
%defattr(0644,root,root,0755) %defattr(-,root,root,-)
%doc %{_javadocdir}/%{name}-%{version} %doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name} %doc %{_javadocdir}/%{name}
%files demo %files demo
%defattr(0644,root,root,0755) %defattr(-,root,root,-)
%{_datadir}/%{name} %{_datadir}/%{name}
%changelog %changelog
* Thu Oct 7 2010 Alexander Kurtakov <akurtako@redhat.com> 3.8.2-7
- Drop gcj support.
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-6.4 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-6.4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild