Sync from SUSE:SLFO:Main httpcomponents-client revision 81eaf68a99d4f9d3be43a33687b4d559
This commit is contained in:
parent
58c8eccff9
commit
52ed41a544
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 20 14:35:47 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Use %patch -P N instead of deprecated %patchN.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Mar 19 07:28:15 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
Sat Mar 19 07:28:15 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package httpcomponents-client
|
# spec file for package httpcomponents-client
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -33,12 +33,9 @@ BuildRequires: apache-commons-codec
|
|||||||
BuildRequires: apache-commons-logging
|
BuildRequires: apache-commons-logging
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: httpcomponents-core
|
BuildRequires: httpcomponents-core
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local >= 6
|
||||||
BuildRequires: publicsuffix
|
BuildRequires: publicsuffix
|
||||||
Requires: publicsuffix
|
Requires: publicsuffix
|
||||||
Requires: mvn(commons-codec:commons-codec)
|
|
||||||
Requires: mvn(commons-logging:commons-logging)
|
|
||||||
Requires: mvn(org.apache.httpcomponents:httpcore)
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: ant-junit
|
BuildRequires: ant-junit
|
||||||
@ -74,8 +71,8 @@ Group: Documentation/HTML
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -a1
|
%setup -q -a1
|
||||||
%patch0 -p1
|
%patch -P 0 -p1
|
||||||
%patch1 -p1
|
%patch -P 1 -p1
|
||||||
|
|
||||||
# Remove optional build deps not available in openSUSE
|
# Remove optional build deps not available in openSUSE
|
||||||
%pom_disable_module httpclient-osgi
|
%pom_disable_module httpclient-osgi
|
||||||
@ -166,15 +163,6 @@ rm -r httpclient-cache/src/*/java/org/apache/http/impl/client/cache/memcached
|
|||||||
rm -r httpclient-cache/src/*/java/org/apache/http/impl/client/cache/ehcache
|
rm -r httpclient-cache/src/*/java/org/apache/http/impl/client/cache/ehcache
|
||||||
%pom_remove_dep :ehcache-core httpclient-cache
|
%pom_remove_dep :ehcache-core httpclient-cache
|
||||||
|
|
||||||
for module in fluent-hc httpclient httpclient-cache httpmime; do
|
|
||||||
%pom_xpath_inject "pom:project" "
|
|
||||||
<groupId>org.apache.httpcomponents</groupId>
|
|
||||||
<version>%{version}</version>" $module
|
|
||||||
%pom_remove_parent $module
|
|
||||||
# adds version "any" if none is specified
|
|
||||||
%pom_change_dep ::::: ::::: $module
|
|
||||||
done
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p lib
|
mkdir -p lib
|
||||||
build-jar-repository -s lib httpcomponents/httpcore commons-logging commons-codec
|
build-jar-repository -s lib httpcomponents/httpcore commons-logging commons-codec
|
||||||
@ -196,10 +184,10 @@ done
|
|||||||
# pom
|
# pom
|
||||||
install -dm 0755 %{buildroot}%{_mavenpomdir}/httpcomponents
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/httpcomponents
|
||||||
for module in fluent-hc httpclient httpmime; do
|
for module in fluent-hc httpclient httpmime; do
|
||||||
install -pm 0644 ${module}/pom.xml %{buildroot}%{_mavenpomdir}/httpcomponents/${module}.pom
|
%{mvn_install_pom} ${module}/pom.xml %{buildroot}%{_mavenpomdir}/httpcomponents/${module}.pom
|
||||||
%add_maven_depmap httpcomponents/${module}.pom httpcomponents/${module}.jar
|
%add_maven_depmap httpcomponents/${module}.pom httpcomponents/${module}.jar
|
||||||
done
|
done
|
||||||
install -pm 0644 httpclient-cache/pom.xml %{buildroot}%{_mavenpomdir}/httpcomponents/httpclient-cache.pom
|
%{mvn_install_pom} httpclient-cache/pom.xml %{buildroot}%{_mavenpomdir}/httpcomponents/httpclient-cache.pom
|
||||||
%add_maven_depmap httpcomponents/httpclient-cache.pom httpcomponents/httpclient-cache.jar -f cache
|
%add_maven_depmap httpcomponents/httpclient-cache.pom httpcomponents/httpclient-cache.jar -f cache
|
||||||
# javadoc
|
# javadoc
|
||||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
Loading…
Reference in New Issue
Block a user