!10 修复spec文件产生的编译告警
From: @xugmin Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
649b0fedc2
@ -1,8 +1,7 @@
|
|||||||
Name: openresty-zlib
|
Name: openresty-zlib
|
||||||
Version: 1.2.11
|
Version: 1.2.11
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: The zlib compression library for OpenResty
|
Summary: The zlib compression library for OpenResty
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
|
|
||||||
# /contrib/dotzlib/ have Boost license
|
# /contrib/dotzlib/ have Boost license
|
||||||
@ -23,24 +22,21 @@ AutoReqProv: no
|
|||||||
%description
|
%description
|
||||||
The zlib compression library for use by Openresty ONLY
|
The zlib compression library for use by Openresty ONLY
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
|
|
||||||
Summary: Development files for OpenResty's zlib library
|
Summary: Development files for OpenResty's zlib library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Provides C header and static library for OpenResty's zlib library.
|
Provides C header and static library for OpenResty's zlib library.
|
||||||
|
|
||||||
|
|
||||||
%package asan
|
%package asan
|
||||||
Release: 14
|
Release: 14
|
||||||
Summary: Clang AddressSanitizer version for the zlib compression library for OpenResty
|
Summary: Clang AddressSanitizer version for the zlib compression library for OpenResty
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
BuildRequires: libtool, clang, compiler-rt
|
BuildRequires: libtool, clang, compiler-rt
|
||||||
|
|
||||||
|
|
||||||
AutoReqProv: no
|
AutoReqProv: no
|
||||||
%description asan
|
%description asan
|
||||||
The zlib compression library for use by Openresty ONLY. This is the clang AddressSanitizer build.
|
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.
|
Provides C header and static library for OpenResty's clang AddressSanitizer version of zlib library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n zlib-%{version}
|
%autosetup -n zlib-%{version} -p1
|
||||||
|
|
||||||
%patch99 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
bash ./copy-dir.sh
|
bash ./copy-dir.sh
|
||||||
@ -97,21 +92,18 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%{zlib_prefix}/lib/libz.so*
|
||||||
%attr(0755,root,root) %{zlib_prefix}/lib/libz.so*
|
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
|
||||||
%{zlib_prefix}/lib/*.a
|
%{zlib_prefix}/lib/*.a
|
||||||
%{zlib_prefix}/include/zlib.h
|
%{zlib_prefix}/include/zlib.h
|
||||||
%{zlib_prefix}/include/zconf.h
|
%{zlib_prefix}/include/zconf.h
|
||||||
|
|
||||||
%files asan
|
%files asan
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%{zlib_prefix_asan}/lib/libz.so*
|
||||||
%attr(0755,root,root) %{zlib_prefix_asan}/lib/libz.so*
|
|
||||||
|
|
||||||
|
|
||||||
%files asan-devel
|
%files asan-devel
|
||||||
@ -122,6 +114,9 @@ rm -rf %{buildroot}
|
|||||||
%{zlib_prefix_asan}/include/zconf.h
|
%{zlib_prefix_asan}/include/zconf.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 23 2024 xuguangmin <xuguangmin@kylinos.cn> - 1.2.11-5
|
||||||
|
- Remove RPM Build Warning Caused by .spec File
|
||||||
|
|
||||||
* Thu Mar 24 2022 wulei <wulei80@huawei.com> - 1.2.11-4
|
* Thu Mar 24 2022 wulei <wulei80@huawei.com> - 1.2.11-4
|
||||||
- Delete {?dist}
|
- Delete {?dist}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user