forked from pool/apache-commons-httpclient
OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-httpclient?expand=0&rev=20
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
@@ -23,21 +23,23 @@ Release: 0
|
||||
Summary: Feature rich package for accessing resources via HTTP
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/Java
|
||||
Url: http://hc.apache.org/httpclient-3.x/
|
||||
Source0: http://www.apache.org/dist/httpcomponents/commons-httpclient/source/commons-httpclient-%{version}-src.tar.gz
|
||||
URL: http://hc.apache.org/httpclient-3.x/
|
||||
Source0: http://www.apache.org/dist/httpcomponents/commons-httpclient/source/%{short_name}-%{version}-src.tar.gz
|
||||
Source1: http://repo.maven.apache.org/maven2/%{short_name}/%{short_name}/%{version}/%{short_name}-%{version}.pom
|
||||
Patch0: %{name}-disablecryptotests.patch
|
||||
# Add OSGi MANIFEST.MF bits
|
||||
Patch1: %{name}-addosgimanifest.patch
|
||||
Patch2: %{name}-encoding.patch
|
||||
#PATCH-FIX-UPSTREAM: bnc#803332
|
||||
#https://issues.apache.org/jira/secure/attachment/12560251/CVE-2012-5783-2.patch
|
||||
Patch3: commons-httpclient-CVE-2012-5783-2.patch
|
||||
Patch3: %{short_name}-CVE-2012-5783-2.patch
|
||||
BuildRequires: ant
|
||||
BuildRequires: ant-junit
|
||||
BuildRequires: commons-codec
|
||||
BuildRequires: commons-logging >= 1.0.3
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: junit
|
||||
Requires: commons-codec
|
||||
Requires: commons-logging >= 1.0.3
|
||||
@@ -46,7 +48,6 @@ Provides: jakarta-%{short_name} = %{version}
|
||||
Obsoletes: jakarta-%{short_name} < %{version}
|
||||
Provides: jakarta-%{short_name}3 = %{version}
|
||||
Obsoletes: jakarta-%{short_name}3 < %{version}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@@ -64,22 +65,22 @@ service clients, or systems that leverage or extend the HTTP protocol
|
||||
for distributed communication.
|
||||
|
||||
%package javadoc
|
||||
Summary: Developer documentation for apache-commons-httpclient
|
||||
Summary: Developer documentation for %{name}
|
||||
Group: Development/Libraries/Java
|
||||
|
||||
%description javadoc
|
||||
Developer documentation for apache-commons-httpclient in JavaDoc
|
||||
Developer documentation for %{name} in JavaDoc
|
||||
format.
|
||||
|
||||
%{summary}.
|
||||
|
||||
%package demo
|
||||
Summary: Demonstration files for apache-commons-httpclient
|
||||
Summary: Demonstration files for %{name}
|
||||
Group: Development/Libraries/Java
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description demo
|
||||
Demonstration files for apache-commons-httpclient. NOTE: It is
|
||||
Demonstration files for %{name}. NOTE: It is
|
||||
possible that some demonstration files are specially prepared for SUN
|
||||
Java runtime environment. If they fail with IBM or BEA Java, the
|
||||
package itself does not need to be broken.
|
||||
@@ -87,16 +88,16 @@ package itself does not need to be broken.
|
||||
%{summary}.
|
||||
|
||||
%package manual
|
||||
Summary: Manual for apache-commons-httpclient
|
||||
Summary: Manual for %{name}
|
||||
Group: Development/Libraries/Java
|
||||
|
||||
%description manual
|
||||
Manual for apache-commons-httpclient
|
||||
Manual for %{name}
|
||||
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n commons-httpclient-%{version}
|
||||
%setup -q -n %{short_name}-%{version}
|
||||
mkdir lib # duh
|
||||
rm -rf docs/apidocs docs/*.patch docs/*.orig docs/*.rej
|
||||
|
||||
@@ -138,17 +139,22 @@ ant \
|
||||
%install
|
||||
# jars
|
||||
mkdir -p %{buildroot}%{_javadir}
|
||||
cp -p dist/commons-httpclient.jar \
|
||||
cp -p dist/%{short_name}.jar \
|
||||
%{buildroot}%{_javadir}/%{name}.jar
|
||||
# compat symlink
|
||||
pushd %{buildroot}%{_javadir}
|
||||
ln -s apache-commons-httpclient.jar apache-commons-httpclient3.jar
|
||||
ln -s apache-commons-httpclient.jar commons-httpclient3.jar
|
||||
ln -s apache-commons-httpclient.jar commons-httpclient.jar
|
||||
ln -s apache-commons-httpclient.jar jakarta-commons-httpclient.jar
|
||||
ln -s apache-commons-httpclient.jar jakarta-commons-httpclient3.jar
|
||||
ln -s %{name}.jar %{name}3.jar
|
||||
ln -s %{name}.jar %{short_name}3.jar
|
||||
ln -s %{name}.jar %{short_name}.jar
|
||||
ln -s %{name}.jar jakarta-%{short_name}.jar
|
||||
ln -s %{name}.jar jakarta-%{short_name}3.jar
|
||||
popd
|
||||
|
||||
# pom
|
||||
mkdir -p %{buildroot}%{_mavenpomdir}
|
||||
cp -p %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||
%add_maven_depmap %{name}.pom %{name}.jar -a apache:commons-httpclient
|
||||
|
||||
# javadoc
|
||||
mkdir -p %{buildroot}%{_javadocdir}
|
||||
mv dist/docs/api %{buildroot}%{_javadocdir}/%{name}
|
||||
@@ -166,13 +172,20 @@ ln -s %{_javadocdir}/%{name} dist/docs/apidocs
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc LICENSE.txt README.txt RELEASE_NOTES.txt
|
||||
%license LICENSE.txt
|
||||
%doc README.txt RELEASE_NOTES.txt
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_javadir}/apache-commons-httpclient3.jar
|
||||
%{_javadir}/commons-httpclient3.jar
|
||||
%{_javadir}/commons-httpclient.jar
|
||||
%{_javadir}/jakarta-commons-httpclient3.jar
|
||||
%{_javadir}/jakarta-commons-httpclient.jar
|
||||
%{_javadir}/%{name}3.jar
|
||||
%{_javadir}/%{short_name}3.jar
|
||||
%{_javadir}/%{short_name}.jar
|
||||
%{_javadir}/jakarta-%{short_name}3.jar
|
||||
%{_javadir}/jakarta-%{short_name}.jar
|
||||
%{_mavenpomdir}/*
|
||||
%if %{defined _maven_repository}
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
%else
|
||||
%{_datadir}/maven-metadata/%{name}.xml*
|
||||
%endif
|
||||
|
||||
%files javadoc
|
||||
%defattr(0644,root,root,0755)
|
||||
|
Reference in New Issue
Block a user