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