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