From bdc6ab544bcac65c5a3c8e4dcf55b2531c1db934 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Mon, 19 Feb 2018 10:09:14 +0000 Subject: [PATCH] Robustness improvements to spec file - Add explicity-used build requirements - Fix libcurl soname version number in %files list to avoid accidental soname bumps --- curl.spec | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/curl.spec b/curl.spec index 26c56f3..42aa486 100644 --- a/curl.spec +++ b/curl.spec @@ -1,7 +1,7 @@ Summary: A utility for getting files from remote servers (FTP, HTTP, and others) Name: curl Version: 7.58.0 -Release: 6%{?dist} +Release: 7%{?dist} License: MIT Source: https://curl.haxx.se/download/%{name}-%{version}.tar.xz @@ -18,6 +18,8 @@ Provides: curl-full = %{version}-%{release} Provides: webclient URL: https://curl.haxx.se/ #BuildRequires: automake +BuildRequires: coreutils +BuildRequires: gcc BuildRequires: groff BuildRequires: krb5-devel BuildRequires: libidn2-devel @@ -25,12 +27,14 @@ BuildRequires: libmetalink-devel BuildRequires: libnghttp2-devel BuildRequires: libpsl-devel BuildRequires: libssh-devel +BuildRequires: make BuildRequires: openldap-devel BuildRequires: openssh-clients BuildRequires: openssh-server BuildRequires: openssl-devel BuildRequires: pkgconfig BuildRequires: python +BuildRequires: sed BuildRequires: stunnel BuildRequires: zlib-devel @@ -268,8 +272,8 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la %files -n libcurl %license COPYING -%{_libdir}/libcurl.so.[0-9] -%{_libdir}/libcurl.so.[0-9].[0-9].[0-9] +%{_libdir}/libcurl.so.4 +%{_libdir}/libcurl.so.4.[0-9].[0-9] %files -n libcurl-devel %doc docs/examples/*.c docs/examples/Makefile.example docs/INTERNALS.md @@ -288,10 +292,15 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la %files -n libcurl-minimal %license COPYING -%{_libdir}/libcurl.so.[0-9].minimal -%{_libdir}/libcurl.so.[0-9].[0-9].[0-9].minimal +%{_libdir}/libcurl.so.4.minimal +%{_libdir}/libcurl.so.4.[0-9].[0-9].minimal %changelog +* Mon Feb 19 2018 Paul Howarth - 7.58.0-7 +- Add explicity-used build requirements +- Fix libcurl soname version number in %%files list to avoid accidental soname + bumps + * Thu Feb 15 2018 Paul Howarth - 7.58.0-6 - switch to %%ldconfig_scriptlets - drop legacy BuildRoot: and Group: tags