From cbe750819739bd290b4f509cfcfb1dc082942213 Mon Sep 17 00:00:00 2001 From: Super User Date: Tue, 23 Jul 2024 12:36:41 +0800 Subject: [PATCH] Remove RPM Build Warning Caused by .spec File --- openresty-zlib.spec | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/openresty-zlib.spec b/openresty-zlib.spec index d5232b4..30ef30c 100644 --- a/openresty-zlib.spec +++ b/openresty-zlib.spec @@ -1,8 +1,7 @@ Name: openresty-zlib Version: 1.2.11 -Release: 4 +Release: 5 Summary: The zlib compression library for OpenResty - Group: System Environment/Libraries # /contrib/dotzlib/ have Boost license @@ -23,24 +22,21 @@ AutoReqProv: no %description The zlib compression library for use by Openresty ONLY - %package devel - Summary: Development files for OpenResty's zlib library Group: Development/Libraries Requires: %{name} = %{version}-%{release} - %description devel Provides C header and static library for OpenResty's zlib library. - %package asan Release: 14 Summary: Clang AddressSanitizer version for the zlib compression library for OpenResty Group: System Environment/Libraries BuildRequires: libtool, clang, compiler-rt + AutoReqProv: no %description asan The zlib compression library for use by Openresty ONLY. This is the clang AddressSanitizer build. @@ -56,9 +52,8 @@ Requires: openresty-zlib-asan = %{version}-%{release} Provides C header and static library for OpenResty's clang AddressSanitizer version of zlib library. %prep -%setup -q -n zlib-%{version} +%autosetup -n zlib-%{version} -p1 -%patch99 -p1 %build bash ./copy-dir.sh @@ -97,21 +92,18 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) - -%attr(0755,root,root) %{zlib_prefix}/lib/libz.so* +%{zlib_prefix}/lib/libz.so* %files devel %defattr(-,root,root,-) - %{zlib_prefix}/lib/*.a %{zlib_prefix}/include/zlib.h %{zlib_prefix}/include/zconf.h %files asan %defattr(-,root,root,-) - -%attr(0755,root,root) %{zlib_prefix_asan}/lib/libz.so* +%{zlib_prefix_asan}/lib/libz.so* %files asan-devel @@ -122,6 +114,9 @@ rm -rf %{buildroot} %{zlib_prefix_asan}/include/zconf.h %changelog +* Tue Jul 23 2024 xuguangmin - 1.2.11-5 +- Remove RPM Build Warning Caused by .spec File + * Thu Mar 24 2022 wulei - 1.2.11-4 - Delete {?dist} -- Gitee