- Committed on behalf of Tania Bento <tbento@redhat.com>

- Update per Fedora review process.
This commit is contained in:
Thomas Fitzsimmons 2007-02-12 23:53:11 +00:00
parent 5323f5aca6
commit df5cafafa1

View File

@ -32,18 +32,15 @@
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}} %define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
%define section free
Name: junit Name: junit
Version: 3.8.2 Version: 3.8.2
Release: 3jpp.1 Release: 3jpp.1
Epoch: 0
Summary: Java regression test package Summary: Java regression test package
License: Common Public License License: CPL
Url: http://www.junit.org/ Url: http://www.junit.org/
Group: Development/Testing 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-RHCLEAN.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
@ -65,23 +62,21 @@ JUnit is Open Source Software, released under the IBM Public License and
hosted on SourceForge. hosted on SourceForge.
%package manual %package manual
Group: Development/Testing Group: Documentation
Summary: Manual for %{name} Summary: Manual for %{name}
%description manual %description manual
Documentation for %{name}. Documentation for %{name}.
%package javadoc %package javadoc
Group: Development/Documentation Group: Documentation
Summary: Javadoc for %{name} Summary: Javadoc for %{name}
Requires(post): /bin/rm,/bin/ln
Requires(postun): /bin/rm
%description javadoc %description javadoc
Javadoc for %{name}. Javadoc for %{name}.
%package demo %package demo
Group: Development/Testing Group: Development/Libraries
Summary: Demos for %{name} Summary: Demos for %{name}
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
@ -95,7 +90,6 @@ Requires(postun): java-gcj-compat
Demonstrations and samples for %{name}. Demonstrations and samples for %{name}.
%prep %prep
rm -rf $RPM_BUILD_ROOT
%setup -q -n %{name}%{version} %setup -q -n %{name}%{version}
# extract sources # extract sources
jar xf src.jar jar xf src.jar
@ -106,6 +100,7 @@ cp %{SOURCE1} build.xml
ant dist ant dist
%install %install
rm -rf $RPM_BUILD_ROOT
# jars # jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 %{name}%{version}/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar install -m 644 %{name}%{version}/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
@ -119,21 +114,15 @@ install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/demo/junit # Not using %nam
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} %if %{gcj_support}
%{_bindir}/aot-compile-rpm # 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 %endif
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}
%postun javadoc
if [ "$1" = "0" ]; then
rm -f %{_javadocdir}/%{name}
fi
%post %post
%if %{gcj_support} %if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ] if [ -x %{_bindir}/rebuild-gcj-db ]
@ -150,22 +139,6 @@ then
fi fi
%endif %endif
%post demo
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
%postun demo
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files %files
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%doc README.html %doc README.html
@ -182,18 +155,18 @@ fi
%files javadoc %files javadoc
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version} %doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}
%files demo %files demo
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%{_datadir}/%{name} %{_datadir}/%{name}
%if %{gcj_support}
%dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/demo.*
%endif
%changelog %changelog
* Mon Feb 12 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 3.8.2-3jpp.1
- Committed on behalf of Tania Bento <tbento@redhat.com>
- Update per Fedora review process.
* Thu Aug 10 2006 Deepak Bhole <dbhole@redhat.com> - 0:3.8.2-3jpp.1 * Thu Aug 10 2006 Deepak Bhole <dbhole@redhat.com> - 0:3.8.2-3jpp.1
- Added missing requirements. - Added missing requirements.
@ -258,7 +231,7 @@ fi
- truncated description to 72 columns in spec - truncated description to 72 columns in spec
- spec cleanup - spec cleanup
- used versioned jar - used versioned jar
- moved demo files to %{_datadir}/%{name} - moved demo files to %%{_datadir}/%%{name}
* Sat Feb 17 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 3.5-1mdk * Sat Feb 17 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 3.5-1mdk
- first Mandrake release - first Mandrake release