[packages/libs3] - disable Werror to avoid using deprecated openssl api, rel 2
baggins
baggins at pld-linux.org
Wed Oct 6 22:13:50 CEST 2021
commit fae76c21ceb549998f20afa0fcfc3aa71da79abf
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Oct 6 22:13:16 2021 +0200
- disable Werror to avoid using deprecated openssl api, rel 2
libs3.spec | 5 ++++-
no-Werror.patch | 11 +++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/libs3.spec b/libs3.spec
index 4438f41..07444c5 100644
--- a/libs3.spec
+++ b/libs3.spec
@@ -8,7 +8,7 @@ Name: libs3
Version: 4.1
%define gitref 287e4bee6fd430ffb52604049de80a27a77ff6b4
%define snap 20190410
-%define rel 1
+%define rel 2
Release: 0.%{snap}.%{rel}
License: LGPL v3+ or GPL v2 with OpenSSL exception
Group: Libraries
@@ -16,6 +16,7 @@ Group: Libraries
Source0: https://github.com/bji/libs3/archive/%{gitref}/%{name}-%{snap}.tar.gz
# Source0-md5: e5600266b8430bdf5dd8d44869857b32
Patch0: %{name}-make.patch
+Patch1: no-Werror.patch
URL: https://github.com/bji/libs3
BuildRequires: curl-devel
%{?with_apidocs:BuildRequires: doxygen}
@@ -75,6 +76,7 @@ Dokumentacja API biblioteki libs3.
%prep
%setup -q -n %{name}-%{gitref}
%patch0 -p1
+%patch1 -p1
%build
CFLAGS="%{rpmcflags} %{rpmcppflags}" \
@@ -89,6 +91,7 @@ CFLAGS="%{rpmcflags} %{rpmcppflags}" \
rm -rf $RPM_BUILD_ROOT
%{__make} install \
+ STRIP=/bin/true \
DESTDIR=$RPM_BUILD_ROOT%{_prefix} \
LIBDIR=$RPM_BUILD_ROOT%{_libdir}
diff --git a/no-Werror.patch b/no-Werror.patch
new file mode 100644
index 0000000..f977d9e
--- /dev/null
+++ b/no-Werror.patch
@@ -0,0 +1,11 @@
+--- libs3-287e4bee6fd430ffb52604049de80a27a77ff6b4/GNUmakefile~ 2021-10-06 22:10:24.000000000 +0200
++++ libs3-287e4bee6fd430ffb52604049de80a27a77ff6b4/GNUmakefile 2021-10-06 22:11:31.883203755 +0200
+@@ -142,7 +142,7 @@
+ endif
+ endif
+
+-CFLAGS += -Wall -Werror -Wshadow -Wextra -Iinc \
++CFLAGS += -Wall -Wshadow -Wextra -Iinc \
+ $(CURL_CFLAGS) $(LIBXML2_CFLAGS) \
+ -DLIBS3_VER_MAJOR=\"$(LIBS3_VER_MAJOR)\" \
+ -DLIBS3_VER_MINOR=\"$(LIBS3_VER_MINOR)\" \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libs3.git/commitdiff/fae76c21ceb549998f20afa0fcfc3aa71da79abf
More information about the pld-cvs-commit
mailing list