dd the dynamic library file in the rpm package to the ldconfig management

fix rpmbuild warning
This commit is contained in:
Markeryang 2022-11-02 07:10:55 +00:00 committed by Gitee
parent 10286ad9f5
commit fe4e991088
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -33,7 +33,7 @@
Summary: Creates a common metadata repository
Name: createrepo_c
Version: 0.17.6
Release: 1
Release: 2
License: GPLv2+
URL: https://github.com/rpm-software-management/createrepo_c
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
@ -75,7 +75,7 @@ Obsoletes: createrepo < 0.11.0
Provides: createrepo = %{version}-%{release}
%endif
Provides: %{name}-libs = %{version}-%{release} %{name}-libs%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-libs
Obsoletes: %{name}-libs < %{version}-%{release}
%description
C implementation of Createrepo.
@ -137,10 +137,10 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
%endif
%if 0%{?openEuler} == 0 && 0%{?rhel} && 0%{?rhel} <= 7
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%else
%ldconfig_scriptlets libs
%ldconfig_scriptlets
%endif
%files
@ -178,6 +178,10 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
%endif
%changelog
* Sat Oct 22 2022 yanglongkang <yanglongkang@h-partners.com> - 0.17.6-2
- add the dynamic library file in the rpm package to the ldconfig management
fix rpmbuild warning
* Fri Dec 17 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 0.17.6-1
- update version to 0.17.6