2006-07-23 02:14:22 +00:00
|
|
|
# Copyright (c) 2000-2005, JPackage Project
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
|
|
# documentation and/or other materials provided with the
|
|
|
|
# distribution.
|
|
|
|
# 3. Neither the name of the JPackage Project nor the names of its
|
|
|
|
# contributors may be used to endorse or promote products derived
|
|
|
|
# from this software without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
# 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}}}
|
|
|
|
|
2007-02-12 23:53:11 +00:00
|
|
|
Name: junit
|
|
|
|
Version: 3.8.2
|
2007-09-20 22:10:41 +00:00
|
|
|
Release: 3jpp.2%{?dist}
|
2007-02-12 23:53:11 +00:00
|
|
|
Summary: Java regression test package
|
|
|
|
License: CPL
|
|
|
|
Url: http://www.junit.org/
|
|
|
|
Group: Development/Tools
|
|
|
|
# http://osdn.dl.sourceforge.net/junit/junit3.8.2.zip
|
|
|
|
Source0: junit3.8.2.zip
|
|
|
|
Source1: junit3.8.2-build.xml
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: jpackage-utils >= 0:1.6
|
2006-07-23 02:14:22 +00:00
|
|
|
%if ! %{gcj_support}
|
2007-02-12 23:53:11 +00:00
|
|
|
Buildarch: noarch
|
2006-07-23 02:14:22 +00:00
|
|
|
%endif
|
2007-02-12 23:53:11 +00:00
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-buildroot
|
2004-09-09 06:36:44 +00:00
|
|
|
|
2006-07-23 02:14:22 +00:00
|
|
|
%if %{gcj_support}
|
2007-02-12 23:53:11 +00:00
|
|
|
BuildRequires: java-gcj-compat-devel
|
|
|
|
Requires(post): java-gcj-compat
|
|
|
|
Requires(postun): java-gcj-compat
|
2006-07-23 02:14:22 +00:00
|
|
|
%endif
|
|
|
|
|
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
|
2007-02-12 23:53:11 +00:00
|
|
|
Group: Documentation
|
|
|
|
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
|
2007-02-12 23:53:11 +00:00
|
|
|
Group: Documentation
|
|
|
|
Summary: Javadoc for %{name}
|
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
|
2007-02-12 23:53:11 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Demos for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2004-09-09 06:38:10 +00:00
|
|
|
|
2006-07-23 02:14:22 +00:00
|
|
|
%if %{gcj_support}
|
2007-02-12 23:53:11 +00:00
|
|
|
BuildRequires: java-gcj-compat-devel
|
|
|
|
Requires(post): java-gcj-compat
|
|
|
|
Requires(postun): java-gcj-compat
|
2006-07-23 02:14:22 +00:00
|
|
|
%endif
|
|
|
|
|
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
|
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
|
2006-07-23 02:14:22 +00:00
|
|
|
rm -f src.jar
|
|
|
|
cp %{SOURCE1} build.xml
|
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
|
2007-02-12 23:53:11 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 06:38:32 +00:00
|
|
|
# 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
|
2006-07-23 02:14:22 +00:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/demo/junit # Not using %name for last part because it is
|
|
|
|
# part of package name
|
|
|
|
cp -pr %{name}%{version}/%{name}/* $RPM_BUILD_ROOT%{_datadir}/%{name}/demo/junit
|
|
|
|
|
|
|
|
%if %{gcj_support}
|
2007-02-12 23:53:11 +00:00
|
|
|
# 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
|
2006-07-23 02:14:22 +00:00
|
|
|
%endif
|
2004-09-09 06:36:44 +00:00
|
|
|
|
2007-02-12 23:53:11 +00:00
|
|
|
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
|
|
2004-09-09 06:36:44 +00:00
|
|
|
%clean
|
2004-09-09 06:38:32 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2006-07-23 02:14:22 +00:00
|
|
|
%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
|
|
|
|
|
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}/*
|
2006-07-23 02:14:22 +00:00
|
|
|
|
|
|
|
%if %{gcj_support}
|
|
|
|
%dir %{_libdir}/gcj/%{name}
|
|
|
|
%attr(-,root,root) %{_libdir}/gcj/%{name}/junit-3.8.2.jar.*
|
|
|
|
%endif
|
2004-09-09 06:38:32 +00:00
|
|
|
|
|
|
|
%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)
|
2007-02-12 23:53:11 +00:00
|
|
|
%doc %{_javadocdir}/%{name}-%{version}
|
|
|
|
%doc %{_javadocdir}/%{name}
|
2004-09-09 06:38:32 +00:00
|
|
|
|
|
|
|
%files demo
|
|
|
|
%defattr(0644,root,root,0755)
|
2006-07-23 02:14:22 +00:00
|
|
|
%{_datadir}/%{name}
|
2005-12-22 02:01:42 +00:00
|
|
|
|
2006-07-23 02:14:22 +00:00
|
|
|
%changelog
|
2007-09-20 22:10:41 +00:00
|
|
|
* Thu Sep 20 2007 Deepak Bhole <dbhole@redhat.com> - 3.8.2-3jpp.2
|
|
|
|
- Rebuild for ppc32 execmem issue and new build-id
|
|
|
|
|
2007-02-12 23:55:11 +00:00
|
|
|
* Mon Feb 12 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 3.8.2-3jpp.1.fc7
|
|
|
|
- Add dist tag
|
|
|
|
|
2007-02-12 23:53:11 +00:00
|
|
|
* Mon Feb 12 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 3.8.2-3jpp.1
|
|
|
|
- Committed on behalf of Tania Bento <tbento@redhat.com>
|
2007-02-12 23:53:43 +00:00
|
|
|
- Update per Fedora review process
|
|
|
|
- Resolves rhbz#225954
|
2007-02-12 23:53:11 +00:00
|
|
|
|
2006-08-10 22:35:41 +00:00
|
|
|
* Thu Aug 10 2006 Deepak Bhole <dbhole@redhat.com> - 0:3.8.2-3jpp.1
|
|
|
|
- Added missing requirements.
|
|
|
|
|
2006-08-10 09:09:12 +00:00
|
|
|
* Thu Aug 10 2006 Karsten Hopp <karsten@redhat.de> 0:3.8.2-2jpp_3fc
|
|
|
|
- Require(post/postun): coreutils
|
|
|
|
|
2006-07-24 04:10:46 +00:00
|
|
|
* Sun Jun 23 2006 Deepak Bhole <dbhole@redhat.com> - 0:3.8.2-2jpp_2fc
|
|
|
|
- Rebuilt.
|
|
|
|
|
2006-07-23 02:14:22 +00:00
|
|
|
* Sat Jun 22 2006 Deepak Bhole <dbhole@redhat.com> - 0:3.8.2-2jpp_1fc
|
2006-07-23 02:14:55 +00:00
|
|
|
- Upgrade to 3.8.2
|
2006-07-23 02:14:22 +00:00
|
|
|
- Added conditional native compilation.
|
|
|
|
- Fix path where demo is located.
|
2004-09-09 06:38:32 +00:00
|
|
|
|
2006-07-23 02:14:22 +00:00
|
|
|
* Mon Mar 03 2006 Ralph Apel <r.apel at r-apel.de> - 0:3.8.2-1jpp
|
|
|
|
- First JPP-1.7 release
|
2004-09-09 06:38:32 +00:00
|
|
|
|
2006-07-23 02:14:22 +00:00
|
|
|
* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:3.8.1-4jpp
|
|
|
|
- Rebuild with ant-1.6.2
|
2004-09-09 06:38:32 +00:00
|
|
|
* 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
|
2007-02-12 23:53:11 +00:00
|
|
|
- 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
|