Re-enable testframework package

This commit is contained in:
Mikolaj Izdebski 2019-06-28 09:17:26 +02:00
parent f064771ab3
commit 2e756bc4d9

View File

@ -13,6 +13,7 @@ Patch0: 0001-Port-to-Java-8.patch
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: mvn(junit:junit) BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
%description %description
The introduction of the Collections API by Sun in JDK 1.2 has been a The introduction of the Collections API by Sun in JDK 1.2 has been a
@ -29,6 +30,13 @@ Java2-style collections.
- methods to test or create typical set-theory properties of collections - methods to test or create typical set-theory properties of collections
such as union, intersection, and closure. such as union, intersection, and closure.
%package testframework
Summary: Testframework for %{name}
Requires: %{name} = %{version}-%{release}
%description testframework
%{summary}.
%package javadoc %package javadoc
Summary: Javadoc for %{name} Summary: Javadoc for %{name}
@ -47,27 +55,28 @@ find . -name "*.class" -exec rm -f {} \;
# Fix file eof # Fix file eof
sed -i 's/\r//' LICENSE.txt PROPOSAL.html README.txt NOTICE.txt sed -i 's/\r//' LICENSE.txt PROPOSAL.html README.txt NOTICE.txt
%pom_remove_plugin :maven-antrun-plugin %mvn_package :commons-collections-testframework testframework
%mvn_file ':commons-collections{,-testframework}' %{name}@1 commons-collections@1
%mvn_file :commons-collections %{name} commons-collections
%build %build
%mvn_build %mvn_build
%install %install
%mvn_artifact commons-collections:commons-collections-testframework:%{version} target/commons-collections-testframework-%{version}.jar
%mvn_install %mvn_install
%files -f .mfiles %files -f .mfiles
%doc PROPOSAL.html README.txt %doc PROPOSAL.html README.txt
%license LICENSE.txt NOTICE.txt %license LICENSE.txt NOTICE.txt
%files testframework -f .mfiles-testframework
%files javadoc -f .mfiles-javadoc %files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt %license LICENSE.txt NOTICE.txt
%changelog %changelog
* Fri Jun 28 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.2-12 * Fri Jun 28 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.2-12
- Disable testframework package - Enable tests
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.2-11 * Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.2-11
- Mass rebuild for javapackages-tools 201901 - Mass rebuild for javapackages-tools 201901