|
|
|
@ -1,22 +1,35 @@
|
|
|
|
|
%bcond_with bootstrap
|
|
|
|
|
|
|
|
|
|
Name: junit
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Version: 4.12
|
|
|
|
|
Release: 9%{?dist}
|
|
|
|
|
Version: 4.13.1
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Summary: Java regression test package
|
|
|
|
|
License: EPL-1.0
|
|
|
|
|
URL: http://www.junit.org/
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
# ./clean-tarball.sh %{version}
|
|
|
|
|
Source0: %{name}-%{version}-clean.tar.gz
|
|
|
|
|
Source3: create-tarball.sh
|
|
|
|
|
# ./generate-tarball.sh
|
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
|
Source1: generate-tarball.sh
|
|
|
|
|
|
|
|
|
|
Patch1: 0001-Port-to-hamcrest-2.2.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
|
|
|
|
|
BuildRequires: mvn(org.hamcrest:hamcrest-core)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Obsoletes: %{name}-demo < 4.12
|
|
|
|
|
# For other packages, surefire-junit4 is normally pulled as transitive
|
|
|
|
|
# runtime dependency of junit, but junit doesn't build-depend on
|
|
|
|
|
# itself, so explicit BR on surefire-junit4 is needed.
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
BuildRequires: mvn(org.apache.maven.surefire:surefire-junit4)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
JUnit is a regression testing framework written by Erich Gamma and Kent Beck.
|
|
|
|
@ -37,7 +50,9 @@ Summary: Javadoc for %{name}
|
|
|
|
|
Javadoc for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{name}-r%{version}
|
|
|
|
|
%setup -q -n junit4-r%{version}
|
|
|
|
|
|
|
|
|
|
%patch -P 1 -p1
|
|
|
|
|
|
|
|
|
|
# InaccessibleBaseClassTest fails with Java 8
|
|
|
|
|
sed -i /InaccessibleBaseClassTest/d src/test/java/org/junit/tests/AllTests.java
|
|
|
|
@ -70,24 +85,91 @@ sed s/@version@/%{version}/ src/main/java/junit/runner/Version.java.template >sr
|
|
|
|
|
%mvn_file : %{name}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%mvn_build
|
|
|
|
|
%mvn_build -- -DjdkVersion=1.6
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
|
%doc LICENSE-junit.txt README.md
|
|
|
|
|
%license LICENSE-junit.txt
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
|
%doc LICENSE-junit.txt
|
|
|
|
|
%license LICENSE-junit.txt
|
|
|
|
|
|
|
|
|
|
%files manual
|
|
|
|
|
%doc LICENSE-junit.txt
|
|
|
|
|
%license LICENSE-junit.txt
|
|
|
|
|
%doc doc/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Dec 12 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1:4.12-9
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
* Thu Nov 21 2024 Marián Konček <mkoncek@redhat.com> - 1:4.13.1-7
|
|
|
|
|
- Fix patch usage
|
|
|
|
|
|
|
|
|
|
* Tue Nov 19 2024 Marián Konček <mkoncek@redhat.com> - 1:4.13.1-6
|
|
|
|
|
- Rebuild with regenerated Requires on Java
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:4.13.1-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:4.13.1-4
|
|
|
|
|
- Rebuild to workaround DistroBaker issue
|
|
|
|
|
|
|
|
|
|
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:4.13.1-3
|
|
|
|
|
- Bootstrap Maven for CentOS Stream 9
|
|
|
|
|
|
|
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:4.13.1-2
|
|
|
|
|
- Bootstrap build
|
|
|
|
|
- Non-bootstrap build
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.13-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Dec 4 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.13.1-1
|
|
|
|
|
- Update to upstream version 4.13.1
|
|
|
|
|
|
|
|
|
|
* Sun Aug 16 2020 Fabio Valentini <decathorpe@gmail.com> - 1:4.13-2
|
|
|
|
|
- Bump release to account for previously untagged 4.13-1.fc33 build.
|
|
|
|
|
|
|
|
|
|
* Thu Aug 13 2020 Jerry James <loganjerry@gmail.com> - 1:4.13-1
|
|
|
|
|
- Update to upstream version 4.13
|
|
|
|
|
|
|
|
|
|
* Tue Aug 04 2020 Mat Booth <mat.booth@redhat.com> - 1:4.12-18
|
|
|
|
|
- Add automatic module name
|
|
|
|
|
|
|
|
|
|
* Tue Aug 04 2020 Mat Booth <mat.booth@redhat.com> - 1:4.12-17
|
|
|
|
|
- Allow building on Java 11
|
|
|
|
|
|
|
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.12-16
|
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.12-15
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1:4.12-14
|
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
|
|
|
|
|
* Fri Mar 06 2020 Marian Koncek <mkoncek@redhat.com> - 4.13-1
|
|
|
|
|
- Update to upstream version 4.13
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.12-13
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.12-11
|
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.12-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:4.12-10
|
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.12-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.12-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 2 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:4.12-9
|
|
|
|
|
- Update license tag
|
|
|
|
@ -246,6 +328,7 @@ sed s/@version@/%{version}/ src/main/java/junit/runner/Version.java.template >sr
|
|
|
|
|
|
|
|
|
|
* Mon Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:3.8.1-4jpp
|
|
|
|
|
- Rebuild with ant-1.6.2
|
|
|
|
|
|
|
|
|
|
* Fri May 09 2003 David Walluck <david@anti-microsoft.org> 0:3.8.1-3jpp
|
|
|
|
|
- update for JPackage 1.5
|
|
|
|
|
|
|
|
|
|