From b3c576673dbbaeec97b1df42007540a29ba0543c Mon Sep 17 00:00:00 2001 From: han-guangyu Date: Thu, 1 Jun 2023 02:34:45 +0000 Subject: [PATCH] Fix config file packing (cherry picked from commit 461f4192c1a10fbf38d856e601de5d3bc14de54c) --- python-zVMCloudConnector.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/python-zVMCloudConnector.spec b/python-zVMCloudConnector.spec index 2a9f5b6..3eba67a 100644 --- a/python-zVMCloudConnector.spec +++ b/python-zVMCloudConnector.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-zVMCloudConnector Version: 1.4.1 -Release: 1 +Release: 2 Summary: z/VM cloud management library in Python License: ASL 2.0 URL: https://github.com/mfcloud/python-zvm-sdk @@ -70,9 +70,6 @@ fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi -if [ -d etc ]; then - echo "/etc/*" >> filelist.lst -fi if [ -d lib ]; then echo "/lib/*" >> filelist.lst fi @@ -87,14 +84,19 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . - %files -n python3-zvmcloudconnector -f filelist.lst %dir %{python3_sitelib}/* +%config(noreplace) /etc/sudoers.d/sudoers-zvmsdk +%config(noreplace) /etc/zvmsdk/uwsgi-zvmsdk.conf +%config(noreplace) /etc/zvmsdk/zvmsdk.conf.sample %files help -f doclist.lst %{_docdir}/* %changelog +* Thu Jun 01 2023 Han Guangyu - 1.4.1-2 +- Fix config file packing + * Mon Feb 14 2022 OpenStack_SIG - 1.4.1-1 - Init package python3-zvmcloudconnector of version 1.4.1 -- Gitee