!3 curl: split out the libcurl and libcurl-devel package

Merge pull request !3 from orange-snn/master
This commit is contained in:
openeuler-ci-bot 2020-04-10 09:26:16 +08:00 committed by Gitee
commit a3b983d70e

View File

@ -6,7 +6,7 @@
Name: curl Name: curl
Version: 7.66.0 Version: 7.66.0
Release: 2 Release: 3
Summary: Curl is used in command lines or scripts to transfer data Summary: Curl is used in command lines or scripts to transfer data
License: MIT License: MIT
URL: https://curl.haxx.se/ URL: https://curl.haxx.se/
@ -33,34 +33,32 @@ BuildRequires: perl(Time::Local) perl(Time::HiRes) perl(vars)
BuildRequires: valgrind BuildRequires: valgrind
%endif %endif
Requires: libpsl >= %{libpsl_version} libssh >= %{libssh_version} Requires: libcurl = %{version}-%{release}
Requires: openssl-libs >= 1:%{openssl_version} Provides: curl-full = %{version}-%{release} webclient
Provides: curl-full = %{version}-%{release} libcurl-full = %{version}-%{release}
Provides: webclient libcurl = %{version}-%{release}
Obsoletes: libcurl < %{version}-%{release}
%description %description
cURL is a computer software project providing a library (libcurl) and cURL is a computer software project providing a library (libcurl) and
command-line tool (curl) for transferring data using various protocols. command-line tool (curl) for transferring data using various protocols.
%package devel %package -n libcurl
Summary: Files needed for building applications with libcurl Summary: A library for getting files from web servers
Requires: curl = %{version}-%{release} Requires: libssh >= %{libssh_version} libpsl >= %{libpsl_version}
Requires: openssl-libs >= 1:%{openssl_version}
Provides: libcurl-full = %{version}-%{release}
%description -n libcurl
A library for getting files from web servers.
%package -n libcurl-devel
Summary: Header files for libcurl
Requires: libcurl = %{version}-%{release}
Provides: curl-devel = %{version}-%{release} Provides: curl-devel = %{version}-%{release}
Provides: libcurl-devel = %{version}-%{release}
Obsoletes: curl-devel < %{version}-%{release} Obsoletes: curl-devel < %{version}-%{release}
Obsoletes: libcurl-devel < %{version}-%{release}
%description devel %description -n libcurl-devel
The curl-devel package includes header files and libraries necessary for developing programs. Header files for libcurl.
%package help %package_help
Summary: Documents for autogen
Buildarch: noarch
%description help
Man pages and other related documents.
%prep %prep
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
@ -79,15 +77,12 @@ sed -e 's/^35$/35,52/' -i tests/data/test323
%build %build
install -d build-full install -d build-full
export common_configure_opts=" \ export common_configure_opts="--cache-file=../config.cache \
--cache-file=../config.cache \ --enable-symbol-hiding --enable-ipv6 --enable-threaded-resolver \
--disable-static \ --with-gssapi --with-nghttp2 --with-ssl \
--enable-symbol-hiding \ --with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt"
--enable-ipv6 \
--enable-threaded-resolver \ %global _configure ../configure
--with-gssapi \
--with-nghttp2 \
--with-ssl --with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt"
# configure full build # configure full build
( (
@ -126,19 +121,25 @@ LD_LIBRARY_PATH="$RPM_BUILD_ROOT%{_libdir}:$LD_LIBRARY_PATH" %make_install -C sc
# by fish-3.0.2-1.module_f31+3716+57207597 and would trigger a conflict # by fish-3.0.2-1.module_f31+3716+57207597 and would trigger a conflict
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/fish rm -rf ${RPM_BUILD_ROOT}%{_datadir}/fish
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.a
rm -rf ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
%ldconfig_scriptlets %ldconfig_scriptlets
%ldconfig_scriptlets -n libcurl
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%license COPYING %license COPYING
%{_bindir}/curl %{_bindir}/curl
%{_datadir}/zsh %{_datadir}/zsh
%files -n libcurl
%defattr(-,root,root)
%{_libdir}/libcurl.so.4 %{_libdir}/libcurl.so.4
%{_libdir}/libcurl.so.4.[0-9].[0-9] %{_libdir}/libcurl.so.4.[0-9].[0-9]
%files devel %files -n libcurl-devel
%defattr(-,root,root) %defattr(-,root,root)
%doc docs/examples/*.c docs/examples/Makefile.example docs/INTERNALS.md %doc docs/examples/*.c docs/examples/Makefile.example docs/INTERNALS.md
%doc docs/CONTRIBUTE.md docs/libcurl/ABI %doc docs/CONTRIBUTE.md docs/libcurl/ABI
@ -158,6 +159,9 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Thu Apr 9 2020 songnannan <songnannan2@huawei.com> - 7.66.0-3
- split out the libcurl and libcurl-devel package
* Tue Mar 17 2020 chenzhen <chenzhen44@huawei.com> - 7.66.0-2 * Tue Mar 17 2020 chenzhen <chenzhen44@huawei.com> - 7.66.0-2
- Type:cves - Type:cves
- ID:CVE-2019-15601 - ID:CVE-2019-15601