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