From cb2cf17409a8369a2f5650ad16d45d95225de99b Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 06:38:32 +0000 Subject: [PATCH] auto-import junit-3.8.1-3jpp_2rh from junit-3.8.1-3jpp_2rh.src.rpm --- junit.spec | 217 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 133 insertions(+), 84 deletions(-) diff --git a/junit.spec b/junit.spec index c2512bc..0665b32 100644 --- a/junit.spec +++ b/junit.spec @@ -1,110 +1,159 @@ -Summary: Regression testing framework for Java -Name: junit -Version: 3.8.1 -Release: 5 -URL: http://www.junit.org/ -Source: %{name}%{version}.zip -Source1: katana.omissions -Patch3: %{name}-classloader.patch -Patch4: %{name}-build.patch -License: IBM Common Public License -Group: System Environment/Libraries -BuildRoot: %{_tmppath}/%{name}-%{version}-root -BuildPrereq: katana-build -BuildPrereq: bootstrap-ant -Prereq: katana -Requires: libgcj >= 3.4.0 -ExcludeArch: ppc64 ia64 +%define name junit +%define version 3.8.1 +%define release 3jpp_2rh +%define section free + +Name: %{name} +Version: %{version} +Release: %{release} +Epoch: 0 +Summary: Java regression test package +License: IBM Public License +Url: http://www.junit.org/ +Group: Development/Testing +#Vendor: JPackage Project +#Distribution: JPackage +Source: http://osdn.dl.sourceforge.net/junit/junit3.8.1.zip +BuildRequires: ant +BuildRequires: jpackage-utils >= 0:1.5 +Buildarch: noarch +Buildroot: %{_tmppath}/%{name}-%{version}-buildroot %description -JUnit is a regression testing framework used to implement unit tests -in Java. +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. +JUnit is Open Source Software, released under the IBM Public License and +hosted on SourceForge. -%package devel -Summary: CNI headers for developing JUnit applications -Group: Development/Libraries -Requires: junit = %{version}-%{release} +%package manual +Group: Development/Testing +Summary: Manual for %{name} -%description devel -The junit-devel package contains the headers required to develop -Cygnus Native Interface (CNI) extensions that use JUnit. +%description manual +Documentation for %{name}. + +%package javadoc +Group: Development/Documentation +Summary: Javadoc for %{name} + +%description javadoc +Javadoc for %{name}. + +%package demo +Group: Development/Testing +Summary: Demos for %{name} +Requires: %{name} = %{version}-%{release} + +%description demo +Demonstrations and samples for %{name}. %prep -%setup -q -n %{name}%{version} -jar xf src.jar && rm -Rf META-INF -%patch3 -p1 -b .classloader -%patch4 -p0 -b .build -katana prep +rm -rf $RPM_BUILD_ROOT +%setup -n %{name}%{version} +# extract sources +jar xvf src.jar %build -bootstrap-ant - -mv %{name}%{version}/%{name}.jar katana/%{name}-%{version}.jar -ln -s %{name}-%{version}.jar \ - katana/lib-%{name}.so_%{name}-%{version}.jar -katana build - -mv junit katana +ant dist %install -katana install - -%post -%{_sbindir}/javaconfig \ - %{_libdir}/lib-junit.so \ - %{_datadir}/java/junit.jar - -%postun -%{_sbindir}/javaconfig \ - %{_libdir}/lib-junit.so \ - %{_datadir}/java/junit.jar +# jars +install -d -m 755 $RPM_BUILD_ROOT%{_javadir} +install -m 644 %{name}%{version}/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done) +# javadoc +install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +cp -pr %{name}%{version}/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +# demo +install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name} +cp -pr %{name}%{version}/%{name}/* $RPM_BUILD_ROOT%{_datadir}/%{name} %clean -katana clean +rm -rf $RPM_BUILD_ROOT + +%pre +rm -f %{_javadir}/%{name}.jar + +%post javadoc +rm -f %{_javadocdir}/%{name} +ln -s %{name}-%{version} %{_javadocdir}/%{name} + +%postun javadoc +if [ "$1" = "0" ]; then + rm -f %{_javadocdir}/%{name} +fi %files -%defattr(-,root,root) -%doc *.html doc javadoc -%{_libdir}/*.so -%{_datadir}/java/*.jar -%{_datadir}/katana/*.cp +%defattr(0644,root,root,0755) +%doc README.html +%{_javadir}/* +%dir %{_datadir}/%{name} -%files devel -%defattr(-,root,root) -%{_includedir}/junit +%files manual +%defattr(0644,root,root,0755) +%doc %{name}%{version}/doc/* + +%files javadoc +%defattr(0644,root,root,0755) +%{_javadocdir}/%{name}-%{version} + +%files demo +%defattr(0644,root,root,0755) +%{_datadir}/%{name}/* %changelog -* Tue Jun 1 2004 Gary Benson 3.8.1-5 -- Build with katana. -- Include the AWT runner and some more documentation. +* Fri Mar 26 2004 Frank Ch. Eigler 0:3.8.1-3jpp_2rh +- add RHUG upgrade cleanup -* Tue May 4 2004 Gary Benson 3.8.1-4 -- Rebuild with new compiler. +* Thu Mar 4 2004 Frank Ch. Eigler 0:3.8.1-3jpp_1rh +- RH vacuuming -* Thu Apr 15 2004 Gary Benson 3.8.1-3 -- Rebuild with new compiler (#120844). +* Fri May 09 2003 David Walluck 0:3.8.1-3jpp +- update for JPackage 1.5 -* Tue Mar 2 2004 Elliot Lee -- Rebuilt. +* Fri Mar 21 2003 Nicolas Mailhot 3.8.1-2jpp +- For jpackage-utils 1.5 -* Fri Feb 13 2004 Gary Benson 3.8.1-2 -- Rebuild for Fedora. +* Fri Sep 06 2002 Henri Gomez 3.8.1-1jpp +- 3.8.1 -* Mon Dec 15 2003 Gary Benson -- Apply hammer multilib fix to all multilib archs. -- Correctly link local libraries on hammer. +* Sun Sep 01 2002 Guillaume Rousse 3.8-2jpp +- used original zip file -* Mon Dec 8 2003 Gary Benson -- Upgraded to fluorinated RHUG tarball. -- Picked up an accidentally omitted resource. +* Thu Aug 29 2002 Guillaume Rousse 3.8-1jpp +- 3.8 +- group, vendor and distribution tags -* Fri Sep 12 2003 Gary Benson 3.8.1-1 -- Clarify the -devel subpackage's summary and description. -- Remove unnecessary -devel dependencies (#99077). -- Ensure we have a working javaconfig. +* Sat Jan 19 2002 Guillaume Rousse 3.7-6jpp +- versioned dir for javadoc +- no dependencies for manual and javadoc packages +- stricter dependency for demo package +- additional sources in individual archives +- section macro -* Thu Jun 5 2003 Gary Benson -- Initial Red Hat Linux build. +* Sat Dec 1 2001 Guillaume Rousse 3.7-5jpp +- javadoc in javadoc package -* Tue Dec 3 2002 Gary Benson -- Initial RHUG build. +* Wed Nov 21 2001 Christian Zoffoli 3.7-4jpp +- fixed previous releases ...grrr + +* Wed Nov 21 2001 Christian Zoffoli 3.7-3jpp +- added jpp extension +- removed packager tag + +* Sun Sep 30 2001 Guillaume Rousse 3.7-2jpp +- first unified release +- s/jPackage/JPackage + +* Mon Sep 17 2001 Guillaume Rousse 3.7-1mdk +- 3.7 +- vendor tag +- packager tag +- s/Copyright/License/ +- truncated description to 72 columns in spec +- spec cleanup +- used versioned jar +- moved demo files to %{_datadir}/%{name} + +* Sat Feb 17 2001 Guillaume Rousse 3.5-1mdk +- first Mandrake release