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