9c0d1b
Name:           junit
9c0d1b
Version:        4.12
9c0d1b
Release:        11%{?dist}
9c0d1b
Summary:        Java regression test package
9c0d1b
License:        EPL-1.0
9c0d1b
URL:            http://www.junit.org/
9c0d1b
BuildArch:      noarch
9c0d1b
9c0d1b
# ./clean-tarball.sh %{version}
9c0d1b
Source0:        %{name}-%{version}-clean.tar.gz
9c0d1b
Source3:        create-tarball.sh
9c0d1b
9c0d1b
Patch1:         0001-Port-to-hamcrest-2.1.patch
9c0d1b
Patch2:         0002-Port-to-OpenJDK-11.patch
9c0d1b
9c0d1b
BuildRequires:  maven-local
9c0d1b
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
9c0d1b
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
9c0d1b
BuildRequires:  mvn(org.hamcrest:hamcrest-core)
9c0d1b
9c0d1b
9c0d1b
%description
9c0d1b
JUnit is a regression testing framework written by Erich Gamma and Kent Beck. 
9c0d1b
It is used by the developer who implements unit tests in Java. JUnit is Open
9c0d1b
Source Software, released under the Common Public License Version 1.0 and 
9c0d1b
hosted on GitHub.
9c0d1b
9c0d1b
%package manual
9c0d1b
Summary:        Manual for %{name}
9c0d1b
9c0d1b
%description manual
9c0d1b
Documentation for %{name}.
9c0d1b
9c0d1b
%package javadoc
9c0d1b
Summary:        Javadoc for %{name}
9c0d1b
9c0d1b
%description javadoc
9c0d1b
Javadoc for %{name}.
9c0d1b
9c0d1b
%prep
9c0d1b
%setup -q -n %{name}-r%{version}
9c0d1b
9c0d1b
%patch1 -p1
9c0d1b
%patch2 -p1
9c0d1b
9c0d1b
# InaccessibleBaseClassTest fails with Java 8
9c0d1b
sed -i /InaccessibleBaseClassTest/d src/test/java/org/junit/tests/AllTests.java
9c0d1b
9c0d1b
%pom_remove_plugin :replacer
9c0d1b
sed s/@version@/%{version}/ src/main/java/junit/runner/Version.java.template >src/main/java/junit/runner/Version.java
9c0d1b
9c0d1b
%pom_remove_plugin :animal-sniffer-maven-plugin
9c0d1b
9c0d1b
# Removing hamcrest source jar references (not available and/or necessary)
9c0d1b
%pom_remove_plugin :maven-javadoc-plugin
9c0d1b
9c0d1b
# Add proper Apache Felix Bundle Plugin instructions
9c0d1b
# so that we get a reasonable OSGi manifest.
9c0d1b
%pom_xpath_inject pom:project "<packaging>bundle</packaging>"
9c0d1b
%pom_xpath_inject pom:build/pom:plugins "
9c0d1b
    <plugin>
9c0d1b
      <groupId>org.apache.felix</groupId>
9c0d1b
      <artifactId>maven-bundle-plugin</artifactId>
9c0d1b
      <extensions>true</extensions>
9c0d1b
      <configuration>
9c0d1b
        <instructions>
9c0d1b
          <Bundle-SymbolicName>org.junit</Bundle-SymbolicName>
9c0d1b
          <Export-Package>{local-packages},!org.hamcrest*,*;x-internal:=true</Export-Package>
9c0d1b
          <_nouses>true</_nouses>
9c0d1b
        </instructions>
9c0d1b
      </configuration>
9c0d1b
    </plugin>"
9c0d1b
9c0d1b
%mvn_file : %{name}
9c0d1b
9c0d1b
%build
9c0d1b
%mvn_build -- -DjdkVersion=1.6
9c0d1b
9c0d1b
%install
9c0d1b
%mvn_install
9c0d1b
9c0d1b
%files -f .mfiles
9c0d1b
%doc LICENSE-junit.txt README.md
9c0d1b
9c0d1b
%files javadoc -f .mfiles-javadoc
9c0d1b
%doc LICENSE-junit.txt
9c0d1b
9c0d1b
%files manual
9c0d1b
%doc LICENSE-junit.txt
9c0d1b
%doc doc/*
9c0d1b
9c0d1b
%changelog
9c0d1b
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.12-11
9c0d1b
- Mass rebuild for javapackages-tools 201902
9c0d1b
9c0d1b
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:4.12-10
9c0d1b
- Mass rebuild for javapackages-tools 201901
9c0d1b
9c0d1b
* Mon Jul  2 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:4.12-9
9c0d1b
- Update license tag
9c0d1b
9c0d1b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.12-8
9c0d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9c0d1b
9c0d1b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.12-7
9c0d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9c0d1b
9c0d1b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.12-6
9c0d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9c0d1b
9c0d1b
* Fri Jul 15 2016 Mat Booth <mat.booth@redhat.com> - 1:4.12-5
9c0d1b
- Add missing BR
9c0d1b
9c0d1b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.12-4
9c0d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9c0d1b
9c0d1b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.12-3
9c0d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9c0d1b
9c0d1b
* Wed Jan 21 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:4.12-2
9c0d1b
- Export internal OSGi packages and mark them with x-internal
9c0d1b
- Resolves: rhbz#1184144
9c0d1b
9c0d1b
* Mon Jan 19 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:4.12-1
9c0d1b
- Update to upstream version 4.12
9c0d1b
- Build with Maven
9c0d1b
- Remove demo package
9c0d1b
9c0d1b
* Mon Jun  9 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:4.11-14
9c0d1b
- Add epoch as workaround for a bug in koji-shadow
9c0d1b
9c0d1b
* Mon Jun  9 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.11-13
9c0d1b
- Remove epoch
9c0d1b
9c0d1b
* Sun Jun  8 2014 Peter Robinson <pbrobinson@fedoraproject.org> 4.11-12
9c0d1b
- Re-add Epoch. Once you have it you can't remove it as it breaks upgrade paths
9c0d1b
9c0d1b
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.11-11
9c0d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9c0d1b
9c0d1b
* Thu May 22 2014 Alexander Kurtakov <akurtako@redhat.com> 4.11-10
9c0d1b
- Update OSGi manifest to state 4.11.
9c0d1b
9c0d1b
* Wed May 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.11-9
9c0d1b
- Update to current packaging guidelines
9c0d1b
- Drop old Obsoletes/Provides for junit4 rename
9c0d1b
- Disable test which fails with Java 8
9c0d1b
9c0d1b
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:4.11-8
9c0d1b
- Use Requires: java-headless rebuild (#1067528)
9c0d1b
9c0d1b
* Fri Aug 23 2013 Michal Srb <msrb@redhat.com> - 0:4.11-7
9c0d1b
- Drop "-SNAPSHOT" from version ID
9c0d1b
- See: https://lists.fedoraproject.org/pipermail/java-devel/2013-August/004923.html
9c0d1b
9c0d1b
* Mon Aug 19 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:4.11-6
9c0d1b
- Fix version in pom.xml (#998266)
9c0d1b
9c0d1b
* Fri Aug 02 2013 Michal Srb <msrb@redhat.com> - 0:4.11-5
9c0d1b
- Add create-tarball.sh script to SRPM
9c0d1b
9c0d1b
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:4.11-4
9c0d1b
- Rebuild to regenerate API documentation
9c0d1b
- Resolves: CVE-2013-1571
9c0d1b
9c0d1b
* Fri Jun 21 2013 Michal Srb <msrb@redhat.com> - 0:4.11-3
9c0d1b
- Build from clean tarball
9c0d1b
9c0d1b
* Mon May 06 2013 Tomas Radej <tradej@redhat.com> - 0:4.11-2
9c0d1b
- Removed uneeded dependencies
9c0d1b
9c0d1b
* Thu Mar 21 2013 Tomas Radej <tradej@redhat.com> - 0:4.11-1
9c0d1b
- Updated to latest upstream version
9c0d1b
9c0d1b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.10-8
9c0d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9c0d1b
9c0d1b
* Tue Dec 18 2012 Michal Srb <msrb@redhat.com> - 0:4.10-7
9c0d1b
- Build-time dependency perl-MD5 replaced with perl(Digest::MD5)
9c0d1b
- Description cleanup (Resolves: #888389)
9c0d1b
9c0d1b
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:4.10-6
9c0d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9c0d1b
9c0d1b
* Mon Apr 30 2012 Krzysztof Daniel <kdaniel@redhat.com> 0:4.10-5
9c0d1b
- Update OSGi metadata to match 4.10.0 release.
9c0d1b
9c0d1b
* Thu Feb 09 2012 Harald Hoyer <harald@redhat.com> 4.10-4
9c0d1b
- removed Conflicts with itsself
9c0d1b
9c0d1b
* Thu Jan 26 2012 Roland Grunberg <rgrunber@redhat.com> 0:4.8.2-3
9c0d1b
- Add OSGi metadata to junit.jar manifest.
9c0d1b
9c0d1b
* Thu Jan 26 2012 Tomas Radej <tradej@redhat.com> - 0:4.10-2
9c0d1b
- Fixed versioning
9c0d1b
9c0d1b
* Wed Jan 25 2012 Tomas Radej <tradej@redhat.com> - 0:4.10-1
9c0d1b
- Updated to upstream 4.10
9c0d1b
- Obsoleted junit4
9c0d1b
- Epoch added
9c0d1b
9c0d1b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-9
9c0d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9c0d1b
9c0d1b
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-8
9c0d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9c0d1b
9c0d1b
* Thu Oct 7 2010 Alexander Kurtakov <akurtako@redhat.com> 3.8.2-7
9c0d1b
- Drop gcj support.
9c0d1b
9c0d1b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-6.4
9c0d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9c0d1b
9c0d1b
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.2-5.4
9c0d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9c0d1b
9c0d1b
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.8.2-4.4
9c0d1b
- drop repotag
9c0d1b
9c0d1b
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.8.2-4jpp.3
9c0d1b
- Autorebuild for GCC 4.3
9c0d1b
9c0d1b
* Thu Sep 20 2007 Deepak Bhole <dbhole@redhat.com> - 3.8.2-3jpp.3
9c0d1b
- Fix location of stylesheet for javadocs
9c0d1b
9c0d1b
* Thu Sep 20 2007 Deepak Bhole <dbhole@redhat.com> - 3.8.2-3jpp.2
9c0d1b
- Rebuild for ppc32 execmem issue and new build-id
9c0d1b
9c0d1b
* Mon Feb 12 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 3.8.2-3jpp.1.fc7
9c0d1b
- Add dist tag
9c0d1b
9c0d1b
* Mon Feb 12 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 3.8.2-3jpp.1
9c0d1b
- Committed on behalf of Tania Bento <tbento@redhat.com>
9c0d1b
- Update per Fedora review process
9c0d1b
- Resolves rhbz#225954
9c0d1b
9c0d1b
* Thu Aug 10 2006 Deepak Bhole <dbhole@redhat.com> -  0:3.8.2-3jpp.1
9c0d1b
- Added missing requirements.
9c0d1b
9c0d1b
* Thu Aug 10 2006 Karsten Hopp <karsten@redhat.de> 0:3.8.2-2jpp_3fc
9c0d1b
- Require(post/postun): coreutils
9c0d1b
9c0d1b
* Fri Jun 23 2006 Deepak Bhole <dbhole@redhat.com> -  0:3.8.2-2jpp_2fc
9c0d1b
- Rebuilt.
9c0d1b
9c0d1b
* Thu Jun 22 2006 Deepak Bhole <dbhole@redhat.com> -  0:3.8.2-2jpp_1fc
9c0d1b
- Upgrade to 3.8.2
9c0d1b
- Added conditional native compilation.
9c0d1b
- Fix path where demo is located.
9c0d1b
9c0d1b
* Fri Mar 03 2006 Ralph Apel <r.apel at r-apel.de> - 0:3.8.2-1jpp
9c0d1b
- First JPP-1.7 release
9c0d1b
9c0d1b
* Mon Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:3.8.1-4jpp
9c0d1b
- Rebuild with ant-1.6.2
9c0d1b
* Fri May 09 2003 David Walluck <david@anti-microsoft.org> 0:3.8.1-3jpp
9c0d1b
- update for JPackage 1.5
9c0d1b
9c0d1b
* Fri Mar 21 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> 3.8.1-2jpp
9c0d1b
- For jpackage-utils 1.5
9c0d1b
9c0d1b
* Fri Sep 06 2002 Henri Gomez <hgomez@users.sourceforge.net> 3.8.1-1jpp
9c0d1b
- 3.8.1
9c0d1b
9c0d1b
* Sun Sep 01 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.8-2jpp 
9c0d1b
- used original zip file
9c0d1b
9c0d1b
* Thu Aug 29 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.8-1jpp 
9c0d1b
- 3.8
9c0d1b
- group, vendor and distribution tags
9c0d1b
9c0d1b
* Sat Jan 19 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.7-6jpp
9c0d1b
- versioned dir for javadoc
9c0d1b
- no dependencies for manual and javadoc packages
9c0d1b
- stricter dependency for demo package
9c0d1b
- additional sources in individual archives
9c0d1b
- section macro
9c0d1b
9c0d1b
* Sat Dec 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.7-5jpp
9c0d1b
- javadoc in javadoc package
9c0d1b
9c0d1b
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 3.7-4jpp
9c0d1b
- fixed previous releases ...grrr
9c0d1b
9c0d1b
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 3.7-3jpp
9c0d1b
- added jpp extension
9c0d1b
- removed packager tag
9c0d1b
9c0d1b
* Sun Sep 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.7-2jpp
9c0d1b
- first unified release
9c0d1b
- s/jPackage/JPackage
9c0d1b
9c0d1b
* Mon Sep 17 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 3.7-1mdk
9c0d1b
- 3.7
9c0d1b
- vendor tag
9c0d1b
- packager tag
9c0d1b
- s/Copyright/License/
9c0d1b
- truncated description to 72 columns in spec
9c0d1b
- spec cleanup
9c0d1b
- used versioned jar
9c0d1b
- moved demo files to %%{_datadir}/%%{name}
9c0d1b
9c0d1b
* Sat Feb 17 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 3.5-1mdk
9c0d1b
- first Mandrake release