861513
# Copyright (c) 2000-2008, JPackage Project
861513
# All rights reserved.
861513
#
861513
# Redistribution and use in source and binary forms, with or without
861513
# modification, are permitted provided that the following conditions
861513
# are met:
861513
#
861513
# 1. Redistributions of source code must retain the above copyright
861513
#    notice, this list of conditions and the following disclaimer.
861513
# 2. Redistributions in binary form must reproduce the above copyright
861513
#    notice, this list of conditions and the following disclaimer in the
861513
#    documentation and/or other materials provided with the
861513
#    distribution.
861513
# 3. Neither the name of the JPackage Project nor the names of its
861513
#    contributors may be used to endorse or promote products derived
861513
#    from this software without specific prior written permission.
861513
#
861513
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
861513
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
861513
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
861513
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
861513
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
861513
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
861513
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
861513
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
861513
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
861513
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
861513
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
861513
#
861513
861513
Name:           junit
861513
Version:        4.11
e117da
Release:        8%{?dist}
861513
Epoch:          0
861513
Summary:        Java regression test package
861513
License:        CPL
861513
URL:            http://www.junit.org/
861513
Group:          Development/Tools
861513
BuildArch:      noarch
861513
861513
# ./clean-tarball.sh %{version}
861513
Source0:        %{name}-%{version}-clean.tar.gz
861513
Source2:        junit-OSGi-MANIFEST.MF
861513
Source3:        create-tarball.sh
861513
861513
# Removing hamcrest source jar references (not available and/or necessary)
861513
Patch0:         %{name}-no-hamcrest-src.patch
861513
861513
BuildRequires:  ant
861513
BuildRequires:  ant-contrib
861513
BuildRequires:  jpackage-utils >= 0:1.7.4
861513
BuildRequires:  java-devel >= 1:1.6.0
861513
BuildRequires:  hamcrest
861513
BuildRequires:  perl(Digest::MD5)
861513
861513
Requires:       hamcrest
861513
Requires:       java >= 1:1.6.0
861513
861513
Provides:       junit4 = %{epoch}:%{version}-%{release}
861513
Obsoletes:      junit4 < %{epoch}:%{version}-%{release}
861513
861513
%description
861513
JUnit is a regression testing framework written by Erich Gamma and Kent Beck. 
861513
It is used by the developer who implements unit tests in Java. JUnit is Open
861513
Source Software, released under the Common Public License Version 1.0 and 
861513
hosted on GitHub.
861513
861513
%package manual
861513
Group:          Documentation
861513
Summary:        Manual for %{name}
861513
Provides:       junit4-manual = %{epoch}:%{version}-%{release}
861513
Obsoletes:      junit4-manual < %{epoch}:%{version}-%{release}
861513
861513
%description manual
861513
Documentation for %{name}.
861513
861513
%package javadoc
861513
Group:          Documentation
861513
Summary:        Javadoc for %{name}
861513
Requires:       jpackage-utils
861513
Provides:       junit4-javadoc = %{epoch}:%{version}-%{release}
861513
Obsoletes:      junit4-javadoc < %{epoch}:%{version}-%{release}
861513
861513
%description javadoc
861513
Javadoc for %{name}.
861513
861513
%package demo
861513
Group:          Development/Libraries
861513
Summary:        Demos for %{name}
861513
Requires:       %{name} = %{epoch}:%{version}-%{release}
861513
Provides:       junit4-demo = %{epoch}:%{version}-%{release}
861513
Obsoletes:      junit4-demo < %{epoch}:%{version}-%{release}
861513
861513
%description demo
861513
Demonstrations and samples for %{name}.
861513
861513
%prep
861513
%setup -q -n %{name}-r%{version}
861513
%patch0 -p1
861513
861513
cp build/maven/junit-pom-template.xml pom.xml
861513
# fix placeholder version in pom
861513
%pom_xpath_set pom:project/pom:version "%{version}"
861513
861513
ln -s $(build-classpath hamcrest/core) lib/hamcrest-core-1.3.jar
861513
861513
%build
861513
ant dist -Dversion-status=
861513
861513
# inject OSGi manifest
861513
mkdir -p META-INF
861513
cp -p %{SOURCE2} META-INF/MANIFEST.MF
861513
touch META-INF/MANIFEST.MF
861513
zip -u %{name}%{version}/%{name}-%{version}.jar META-INF/MANIFEST.MF
861513
861513
%install
861513
# jars
861513
install -d -m 755 %{buildroot}%{_javadir}
861513
install -m 644 %{name}%{version}/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
861513
# Many packages still use the junit4.jar directly
861513
ln -s %{_javadir}/%{name}.jar %{buildroot}%{_javadir}/%{name}4.jar
861513
861513
# pom
861513
install -d -m 755 %{buildroot}%{_mavenpomdir}
861513
install -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
861513
%add_maven_depmap
861513
861513
# javadoc
861513
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
861513
cp -pr %{name}%{version}/javadoc/* %{buildroot}%{_javadocdir}/%{name}
861513
861513
# demo
861513
install -d -m 755 %{buildroot}%{_datadir}/%{name}/demo/%{name} 
861513
861513
cp -pr %{name}%{version}/%{name}/* %{buildroot}%{_datadir}/%{name}/demo/%{name}
861513
861513
861513
%files
861513
%doc LICENSE README CODING_STYLE
861513
%{_javadir}/%{name}.jar
861513
%{_javadir}/%{name}4.jar
861513
%{_mavenpomdir}/*
861513
%{_mavendepmapfragdir}/*
861513
861513
%files demo
861513
%doc LICENSE
861513
%{_datadir}/%{name}
861513
861513
%files javadoc
861513
%doc LICENSE
861513
%doc %{_javadocdir}/%{name}
861513
861513
%files manual
861513
%doc LICENSE README CODING_STYLE
861513
%doc junit%{version}/doc/*
861513
861513
%changelog
e117da
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 04.11-8
e117da
- Mass rebuild 2013-12-27
e117da
861513
* Fri Aug 23 2013 Michal Srb <msrb@redhat.com> - 0:4.11-7
861513
- Drop "-SNAPSHOT" from version ID
861513
- See: https://lists.fedoraproject.org/pipermail/java-devel/2013-August/004923.html
861513
861513
* Mon Aug 19 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:4.11-6
861513
- Fix version in pom.xml (#998266)
861513
861513
* Fri Aug 02 2013 Michal Srb <msrb@redhat.com> - 0:4.11-5
861513
- Add create-tarball.sh script to SRPM
861513
861513
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:4.11-4
861513
- Rebuild to regenerate API documentation
861513
- Resolves: CVE-2013-1571
861513
861513
* Fri Jun 21 2013 Michal Srb <msrb@redhat.com> - 0:4.11-3
861513
- Build from clean tarball
861513
861513
* Mon May 06 2013 Tomas Radej <tradej@redhat.com> - 0:4.11-2
861513
- Removed uneeded dependencies
861513
861513
* Thu Mar 21 2013 Tomas Radej <tradej@redhat.com> - 0:4.11-1
861513
- Updated to latest upstream version
861513
861513
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.10-8
861513
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
861513
861513
* Tue Dec 18 2012 Michal Srb <msrb@redhat.com> - 0:4.10-7
861513
- Build-time dependency perl-MD5 replaced with perl(Digest::MD5)
861513
- Description cleanup (Resolves: #888389)
861513
861513
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.10-6
861513
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
861513
861513
* Mon Apr 30 2012 Krzysztof Daniel <kdaniel@redhat.com> 0:4.10-5
861513
- Update OSGi metadata to match 4.10.0 release.
861513
861513
* Thu Feb 09 2012 Harald Hoyer <harald@redhat.com> 4.10-4
861513
- removed Conflicts with itsself
861513
861513
* Thu Jan 26 2012 Roland Grunberg <rgrunber@redhat.com> 0:4.8.2-3
861513
- Add OSGi metadata to junit.jar manifest.
861513
861513
* Thu Jan 26 2012 Tomas Radej <tradej@redhat.com> - 0:4.10-2
861513
- Fixed versioning
861513
861513
* Wed Jan 25 2012 Tomas Radej <tradej@redhat.com> - 0:4.10-1
861513
- Updated to upstream 4.10
861513
- Obsoleted junit4
861513
- Epoch added
861513
861513
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-9
861513
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
861513
861513
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-8
861513
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
861513
861513
* Thu Oct 7 2010 Alexander Kurtakov <akurtako@redhat.com> 3.8.2-7
861513
- Drop gcj support.
861513
861513
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-6.4
861513
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
861513
861513
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-5.4
861513
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
861513
861513
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.8.2-4.4
861513
- drop repotag
861513
861513
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.8.2-4jpp.3
861513
- Autorebuild for GCC 4.3
861513
861513
* Thu Sep 20 2007 Deepak Bhole <dbhole@redhat.com> - 3.8.2-3jpp.3
861513
- Fix location of stylesheet for javadocs
861513
861513
* Thu Sep 20 2007 Deepak Bhole <dbhole@redhat.com> - 3.8.2-3jpp.2
861513
- Rebuild for ppc32 execmem issue and new build-id
861513
861513
* Mon Feb 12 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 3.8.2-3jpp.1.fc7
861513
- Add dist tag
861513
861513
* Mon Feb 12 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 3.8.2-3jpp.1
861513
- Committed on behalf of Tania Bento <tbento@redhat.com>
861513
- Update per Fedora review process
861513
- Resolves rhbz#225954
861513
861513
* Thu Aug 10 2006 Deepak Bhole <dbhole@redhat.com> -  0:3.8.2-3jpp.1
861513
- Added missing requirements.
861513
861513
* Thu Aug 10 2006 Karsten Hopp <karsten@redhat.de> 0:3.8.2-2jpp_3fc
861513
- Require(post/postun): coreutils
861513
861513
* Fri Jun 23 2006 Deepak Bhole <dbhole@redhat.com> -  0:3.8.2-2jpp_2fc
861513
- Rebuilt.
861513
861513
* Thu Jun 22 2006 Deepak Bhole <dbhole@redhat.com> -  0:3.8.2-2jpp_1fc
861513
- Upgrade to 3.8.2
861513
- Added conditional native compilation.
861513
- Fix path where demo is located.
861513
861513
* Fri Mar 03 2006 Ralph Apel <r.apel at r-apel.de> - 0:3.8.2-1jpp
861513
- First JPP-1.7 release
861513
861513
* Mon Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:3.8.1-4jpp
861513
- Rebuild with ant-1.6.2
861513
* Fri May 09 2003 David Walluck <david@anti-microsoft.org> 0:3.8.1-3jpp
861513
- update for JPackage 1.5
861513
861513
* Fri Mar 21 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> 3.8.1-2jpp
861513
- For jpackage-utils 1.5
861513
861513
* Fri Sep 06 2002 Henri Gomez <hgomez@users.sourceforge.net> 3.8.1-1jpp
861513
- 3.8.1
861513
861513
* Sun Sep 01 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.8-2jpp 
861513
- used original zip file
861513
861513
* Thu Aug 29 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.8-1jpp 
861513
- 3.8
861513
- group, vendor and distribution tags
861513
861513
* Sat Jan 19 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.7-6jpp
861513
- versioned dir for javadoc
861513
- no dependencies for manual and javadoc packages
861513
- stricter dependency for demo package
861513
- additional sources in individual archives
861513
- section macro
861513
861513
* Sat Dec 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.7-5jpp
861513
- javadoc in javadoc package
861513
861513
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 3.7-4jpp
861513
- fixed previous releases ...grrr
861513
861513
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 3.7-3jpp
861513
- added jpp extension
861513
- removed packager tag
861513
861513
* Sun Sep 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.7-2jpp
861513
- first unified release
861513
- s/jPackage/JPackage
861513
861513
* Mon Sep 17 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.7-1mdk
861513
- 3.7
861513
- vendor tag
861513
- packager tag
861513
- s/Copyright/License/
861513
- truncated description to 72 columns in spec
861513
- spec cleanup
861513
- used versioned jar
861513
- moved demo files to %%{_datadir}/%%{name}
861513
861513
* Sat Feb 17 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 3.5-1mdk
861513
- first Mandrake release