!27 修复rpmbuild告警及对动态文件进行管理

From: @markeryang 
Reviewed-by: @lvying6 
Signed-off-by: @lvying6
This commit is contained in:
openeuler-ci-bot 2022-10-26 07:03:51 +00:00 committed by Gitee
commit c5ffc4ec1f
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
* Wed Dec 29 2021 yangzhuangzhuang <yangzhuangzhuang1@Huawei.com> - 0.17.6-1
- update version to 0.17.6