OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-collections?expand=0&rev=27
This commit is contained in:
parent
21bcc33b0b
commit
d4e83a068b
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package apache-commons-collections
|
# spec file for package apache-commons-collections
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ Release: 0
|
|||||||
Summary: Commons Collections Package
|
Summary: Commons Collections Package
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Url: http://commons.apache.org/commons-collections/
|
URL: http://commons.apache.org/commons-collections/
|
||||||
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
||||||
Source1: commons-collections-testframework.pom
|
Source1: commons-collections-testframework.pom
|
||||||
Patch0: jakarta-commons-collections-javadoc-nonet.patch
|
Patch0: jakarta-commons-collections-javadoc-nonet.patch
|
||||||
@ -41,13 +41,11 @@ BuildRequires: apache-commons-parent
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: java-devel >= 1.8
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: javapackages-tools
|
|
||||||
BuildRequires: junit
|
BuildRequires: junit
|
||||||
Provides: %{short_name} = %{version}-%{release}
|
Provides: %{short_name} = %{version}-%{release}
|
||||||
Obsoletes: %{short_name} = 3.2
|
Obsoletes: %{short_name} < %{version}-%{release}
|
||||||
Provides: jakarta-%{short_name} = %{version}-%{release}
|
Provides: jakarta-%{short_name} = %{version}-%{release}
|
||||||
Obsoletes: jakarta-%{short_name} = 3.2
|
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -80,22 +78,19 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for %{name}
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
|
Provides: %{name}-testframework-javadoc = %{version}-%{release}
|
||||||
|
Obsoletes: %{name}-testframework-javadoc < %{version}-%{release}
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%package testframework-javadoc
|
|
||||||
Summary: Javadoc for %{name} testframework
|
|
||||||
Group: Development/Libraries/Java
|
|
||||||
|
|
||||||
%description testframework-javadoc
|
|
||||||
%{summary}.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{short_name}-%{version}-src
|
%setup -q -n %{short_name}-%{version}-src
|
||||||
# remove all binary libs
|
# remove all binary libs
|
||||||
find . -name "*.jar" -exec rm -f {} \;
|
find . -name "*.jar" -delete
|
||||||
find . -name "*.class" -exec rm -f {} \;
|
find . -name "*.class" -delete
|
||||||
|
# Fix file eof
|
||||||
|
sed -i 's/\r//' LICENSE.txt PROPOSAL.html README.txt NOTICE.txt
|
||||||
|
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1
|
%patch1
|
||||||
@ -112,7 +107,7 @@ sed -i 's/@VERSION@/%{version}/' pom-testframework.xml
|
|||||||
echo "junit.jar=$(build-classpath junit)" >>build.properties
|
echo "junit.jar=$(build-classpath junit)" >>build.properties
|
||||||
ant \
|
ant \
|
||||||
-Dant.build.javac.source=8 -Dant.build.javac.target=8 \
|
-Dant.build.javac.source=8 -Dant.build.javac.target=8 \
|
||||||
-Dant.build.javadoc.source=8 \
|
-Dant.build.javadoc.source=8 -Dtf.build.docs=build/docs/apidocs/ \
|
||||||
-Djava.io.tmpdir=. jar javadoc tf.validate tf.jar dist.bin dist.src tf.javadoc
|
-Djava.io.tmpdir=. jar javadoc tf.validate tf.jar dist.bin dist.src tf.javadoc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -133,38 +128,16 @@ install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|||||||
cp -pr build/docs/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
cp -pr build/docs/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
|
||||||
# testframework-javadoc
|
%files -f .mfiles
|
||||||
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-testframework
|
%license LICENSE.txt NOTICE.txt
|
||||||
cp -pr build/docs/testframework/* %{buildroot}%{_javadocdir}/%{name}-testframework
|
%doc PROPOSAL.html README.txt RELEASE-NOTES.txt
|
||||||
%fdupes -s %{buildroot}%{_javadocdir}/%{name}-testframework
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%doc PROPOSAL.html README.txt LICENSE.txt RELEASE-NOTES.txt NOTICE.txt
|
|
||||||
%{_javadir}/%{name}.jar
|
%{_javadir}/%{name}.jar
|
||||||
%{_javadir}/%{short_name}.jar
|
|
||||||
%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
||||||
%{_datadir}/maven-metadata/%{name}.xml
|
|
||||||
|
|
||||||
%files testframework
|
%files testframework -f .mfiles-testframework
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%{_javadir}/%{name}-testframework.jar
|
%{_javadir}/%{name}-testframework.jar
|
||||||
%{_javadir}/%{short_name}-testframework.jar
|
|
||||||
%{_mavenpomdir}/JPP-%{short_name}-testframework.pom
|
|
||||||
%if %{defined _maven_repository}
|
|
||||||
%config(noreplace) %{_mavendepmapfragdir}/%{name}-testframework
|
|
||||||
%else
|
|
||||||
%{_datadir}/maven-metadata/%{name}-testframework.xml
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(0644,root,root,0755)
|
%license LICENSE.txt NOTICE.txt
|
||||||
%doc LICENSE.txt NOTICE.txt
|
|
||||||
%{_javadocdir}/%{name}
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%files testframework-javadoc
|
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%doc LICENSE.txt NOTICE.txt
|
|
||||||
%{_javadocdir}/%{name}-testframework
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user