forked from pool/apache-commons-pool
Accepting request 658034 from Java:packages
Maven artifact OBS-URL: https://build.opensuse.org/request/show/658034 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-pool?expand=0&rev=4
This commit is contained in:
commit
d8dae4e296
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 13 10:37:54 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Install as maven artifact
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 15 13:05:26 UTC 2018 - fstrba@suse.com
|
Tue May 15 13:05:26 UTC 2018 - fstrba@suse.com
|
||||||
|
|
||||||
|
@ -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,20 +24,21 @@ Release: 0
|
|||||||
Summary: Apache Commons Pool
|
Summary: Apache Commons Pool
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Url: https://commons.apache.org/proper/commons-pool/
|
URL: https://commons.apache.org/proper/commons-pool/
|
||||||
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
|
||||||
Patch0: jakarta-commons-pool-build.patch
|
Patch0: jakarta-commons-pool-build.patch
|
||||||
Patch1: commons-pool-1.6-sourcetarget.patch
|
Patch1: commons-pool-1.6-sourcetarget.patch
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
|
BuildRequires: apache-commons-parent
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: java-devel >= 1.8
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: javapackages-tools
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: junit
|
BuildRequires: junit
|
||||||
Provides: jakarta-commons-pool = %{version}
|
Requires: apache-commons-parent
|
||||||
Obsoletes: jakarta-commons-pool < %{version}
|
Provides: jakarta-%{short_name} = %{version}-%{release}
|
||||||
Provides: %{short_name} = %{version}
|
Obsoletes: jakarta-%{short_name} < %{version}-%{release}
|
||||||
Obsoletes: %{short_name} < %{version}
|
Provides: %{short_name} = %{version}-%{release}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Obsoletes: %{short_name} < %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -76,6 +77,12 @@ install -d -m 755 %{buildroot}%{_javadir}
|
|||||||
install -m 644 dist/%{short_name}-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
install -m 644 dist/%{short_name}-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done)
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done)
|
||||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||||
|
|
||||||
|
# pom
|
||||||
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||||
|
install -m 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}-%{version}.pom
|
||||||
|
%add_maven_depmap %{name}-%{version}.pom %{name}-%{version}.jar
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}
|
cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
@ -83,11 +90,18 @@ cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
%doc README.txt LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
%doc README.txt
|
||||||
%{_javadir}/%{name}.jar
|
%{_javadir}/%{name}.jar
|
||||||
%{_javadir}/%{name}-%{version}.jar
|
%{_javadir}/%{name}-%{version}.jar
|
||||||
%{_javadir}/%{short_name}.jar
|
%{_javadir}/%{short_name}.jar
|
||||||
%{_javadir}/%{short_name}-%{version}.jar
|
%{_javadir}/%{short_name}-%{version}.jar
|
||||||
|
%{_mavenpomdir}/%{name}-%{version}.pom
|
||||||
|
%if %{defined _maven_repository}
|
||||||
|
%{_mavendepmapfragdir}/%{name}
|
||||||
|
%else
|
||||||
|
%{_datadir}/maven-metadata/%{name}.xml*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
|
Loading…
Reference in New Issue
Block a user