2004-09-09 06:38:32 +00:00
|
|
|
%define name junit
|
|
|
|
%define version 3.8.1
|
2006-07-12 06:35:33 +00:00
|
|
|
%define release 3jpp_8fc
|
2004-09-09 06:38:32 +00:00
|
|
|
%define section free
|
|
|
|
|
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
2005-12-22 02:01:42 +00:00
|
|
|
Release: %{release}
|
2004-09-09 06:38:32 +00:00
|
|
|
Epoch: 0
|
|
|
|
Summary: Java regression test package
|
|
|
|
License: IBM Public License
|
|
|
|
Url: http://www.junit.org/
|
|
|
|
Group: Development/Testing
|
2005-06-22 09:11:11 +00:00
|
|
|
Source: junit3.8.1-RHCLEAN.zip
|
2004-09-09 06:38:32 +00:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: jpackage-utils >= 0:1.5
|
2005-01-11 14:51:11 +00:00
|
|
|
BuildRequires: coreutils
|
2006-02-02 08:59:45 +00:00
|
|
|
Requires(pre): coreutils
|
2004-09-09 06:38:32 +00:00
|
|
|
Buildarch: noarch
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-buildroot
|
2004-09-09 06:36:44 +00:00
|
|
|
|
|
|
|
%description
|
2004-09-09 06:38:32 +00:00
|
|
|
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.
|
2004-09-09 06:36:44 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
%package manual
|
|
|
|
Group: Development/Testing
|
|
|
|
Summary: Manual for %{name}
|
2004-09-09 06:36:44 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
%description manual
|
|
|
|
Documentation for %{name}.
|
2004-09-09 06:36:44 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
%package javadoc
|
|
|
|
Group: Development/Documentation
|
|
|
|
Summary: Javadoc for %{name}
|
2006-02-02 08:59:45 +00:00
|
|
|
Requires(post,postun): coreutils
|
2004-09-09 06:36:44 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
%description javadoc
|
|
|
|
Javadoc for %{name}.
|
2004-09-09 06:38:10 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
%package demo
|
|
|
|
Group: Development/Testing
|
|
|
|
Summary: Demos for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2004-09-09 06:38:10 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
%description demo
|
|
|
|
Demonstrations and samples for %{name}.
|
2004-09-09 06:36:44 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
%prep
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2005-06-22 09:11:11 +00:00
|
|
|
%setup -q -n %{name}%{version}
|
2004-09-09 06:38:32 +00:00
|
|
|
# extract sources
|
2005-06-22 09:11:11 +00:00
|
|
|
jar xf src.jar
|
|
|
|
# clean binary files
|
|
|
|
find . -name "*.jar" -exec rm -f {} \;
|
|
|
|
find . -name "*.class" -exec rm -f {} \;
|
2004-09-09 06:36:44 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
%build
|
|
|
|
ant dist
|
2004-09-09 06:36:44 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
%install
|
|
|
|
# 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}
|
2004-09-09 06:36:44 +00:00
|
|
|
|
|
|
|
%clean
|
2004-09-09 06:38:32 +00:00
|
|
|
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
|
2004-09-09 06:36:44 +00:00
|
|
|
|
|
|
|
%files
|
2004-09-09 06:38:32 +00:00
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc README.html
|
|
|
|
%{_javadir}/*
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
|
|
|
|
%files manual
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc %{name}%{version}/doc/*
|
2004-09-09 06:36:44 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
%files javadoc
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_javadocdir}/%{name}-%{version}
|
|
|
|
|
|
|
|
%files demo
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_datadir}/%{name}/*
|
2004-09-09 06:36:44 +00:00
|
|
|
|
|
|
|
%changelog
|
2006-07-12 06:35:33 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:3.8.1-3jpp_8fc
|
|
|
|
- rebuild
|
|
|
|
|
2006-02-02 08:59:45 +00:00
|
|
|
* Thu Feb 2 2006 Archit Shah <ashah@redhat.com> 0:3.8.1-3jpp_7fc
|
|
|
|
- added dependencies on coreutils
|
|
|
|
|
2005-12-22 02:01:42 +00:00
|
|
|
* Wed Dec 21 2005 Jesse Keating <jkeating@redhat.com> 0:3.8.1-3jpp_6fc
|
|
|
|
- rebuilt again
|
|
|
|
|
2005-12-13 17:41:48 +00:00
|
|
|
* Tue Dec 13 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt for new gcj
|
|
|
|
|
2005-12-09 22:41:06 +00:00
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-06-22 09:11:11 +00:00
|
|
|
* Wed Jun 22 2005 Gary Benson <gbenson@redhat.com> 0:3.8.1-3jpp_5fc
|
|
|
|
- Remove classes and jarfiles from the tarball.
|
|
|
|
|
2005-01-11 14:51:11 +00:00
|
|
|
* Tue Jan 11 2005 Gary Benson <gbenson@redhat.com> 0:3.8.1-3jpp_4fc
|
|
|
|
- Reenable building of classes that require javax.swing (#130006).
|
|
|
|
- Sync with RHAPS.
|
|
|
|
|
2004-11-04 14:41:06 +00:00
|
|
|
* Thu Nov 4 2004 Gary Benson <gbenson@redhat.com> 0:3.8.1-3jpp_3fc
|
2004-10-12 14:24:46 +00:00
|
|
|
- Build into Fedora.
|
|
|
|
|
2005-01-11 14:51:11 +00:00
|
|
|
* Fri Oct 1 2004 Andrew Overholt <overholt@redhat.com> 0:3.8.1-3jpp_3rh
|
|
|
|
- add coreutils BuildRequires
|
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
* Fri Mar 26 2004 Frank Ch. Eigler <fche@redhat.com> 0:3.8.1-3jpp_2rh
|
|
|
|
- add RHUG upgrade cleanup
|
|
|
|
|
|
|
|
* Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> 0:3.8.1-3jpp_1rh
|
|
|
|
- RH vacuuming
|
|
|
|
|
|
|
|
* Fri May 09 2003 David Walluck <david@anti-microsoft.org> 0:3.8.1-3jpp
|
|
|
|
- update for JPackage 1.5
|
|
|
|
|
|
|
|
* Fri Mar 21 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> 3.8.1-2jpp
|
|
|
|
- For jpackage-utils 1.5
|
|
|
|
|
|
|
|
* Fri Sep 06 2002 Henri Gomez <hgomez@users.sourceforge.net> 3.8.1-1jpp
|
|
|
|
- 3.8.1
|
2004-09-09 06:38:10 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
* Sun Sep 01 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.8-2jpp
|
|
|
|
- used original zip file
|
2004-09-09 06:38:00 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
* Thu Aug 29 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.8-1jpp
|
|
|
|
- 3.8
|
|
|
|
- group, vendor and distribution tags
|
2004-09-09 06:38:00 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
* Sat Jan 19 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 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
|
2004-09-09 06:36:57 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
* Sat Dec 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.7-5jpp
|
|
|
|
- javadoc in javadoc package
|
2004-09-09 06:36:57 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 3.7-4jpp
|
|
|
|
- fixed previous releases ...grrr
|
2004-09-09 06:36:57 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 3.7-3jpp
|
|
|
|
- added jpp extension
|
|
|
|
- removed packager tag
|
2004-09-09 06:36:57 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
* Sun Sep 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.7-2jpp
|
|
|
|
- first unified release
|
|
|
|
- s/jPackage/JPackage
|
2004-09-09 06:36:44 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
* 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}
|
2004-09-09 06:36:44 +00:00
|
|
|
|
2004-09-09 06:38:32 +00:00
|
|
|
* Sat Feb 17 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 3.5-1mdk
|
|
|
|
- first Mandrake release
|