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