fix sync openEuler-20.03-LTS-SP1 %file file not found issue.

Signed-off-by: cherry530 <xuping33@huawei.com>
This commit is contained in:
cherry530 2021-08-05 19:43:57 +08:00
parent 1f3e56f500
commit db23fd6e52

View File

@ -2,7 +2,7 @@
%define debug_package %{nil}
Name: python-certbot
Version: 1.16.0
Release: 1
Release: 2
Summary: ACME client
License: Apache License 2.0
URL: https://github.com/certbot/certbot
@ -75,31 +75,18 @@ if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}/acme; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}/acme; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}/acme; fi
pushd %{buildroot}
#if [ -d usr/lib ]; then
# find usr/lib -type f -printf "/%h/%f\n" >> certbot-filelist.lst
#fi
#if [ -d usr/lib64 ]; then
# find usr/lib64 -type f -printf "/%h/%f\n" >> certbot-filelist.lst
#fi
#if [ -d usr/bin ]; then
# find usr/bin -type f -printf "/%h/%f\n" >> certbot-filelist.lst
#fi
#if [ -d usr/sbin ]; then
# find usr/sbin -type f -printf "/%h/%f\n" >> certbot-filelist.lst
#fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
cd ../
#mv %{buildroot}/certbot-filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-certbot
%dir %{python3_sitelib}/*
%{python3_sitelib}/certbot
%{python3_sitelib}/certbot-1.16.0-py3.8.egg-info
%{python3_sitelib}/certbot-%{version}-py?.?.egg-info
%{_bindir}/certbot
%files help -f doclist.lst
@ -108,8 +95,11 @@ mv %{buildroot}/doclist.lst .
%files -n python3-acme
%dir %{python3_sitelib}/*
%{python3_sitelib}/acme
%{python3_sitelib}/acme-1.16.0-py3.8.egg-info
%{python3_sitelib}/acme-%{version}-py?.?.egg-info
%changelog
* Thu Aug 05 2021 xu_ping <xuping33@huawei.com> - 1.16.0-2
- fix sync code to openEuler-20.03-LTS-SP1 %file error.
* Mon Jun 28 2021 Python_Bot <Python_Bot@openeuler.org> - 1.16.0-1
- Package Spec generated