From aa4b9f051becb1cd1d75f4f4beb27b586a26c7ac Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Aug 10 2018 07:11:15 +0000 Subject: be less and more specific in %files More specific in case of indication that entry is a directory. Less specific in case of indication of directory name. Signed-off-by: Igor Gnatenko --- diff --git a/python-pygit2.spec b/python-pygit2.spec index 28d3cdc..54d7c98 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -87,15 +87,15 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %files -n python2-%{pkgname} %doc README.rst TODO.txt %license COPYING -%{python2_sitearch}/%{pkgname}-%{version}-py%{python2_version}.egg-info -%{python2_sitearch}/%{pkgname} +%{python2_sitearch}/%{pkgname}-*.egg-info/ +%{python2_sitearch}/%{pkgname}/ %{python2_sitearch}/_%{pkgname}.so %files -n python3-%{pkgname} %doc README.rst TODO.txt %license COPYING -%{python3_sitearch}/%{pkgname}-%{version}-py%{python3_version}.egg-info -%{python3_sitearch}/%{pkgname} +%{python3_sitearch}/%{pkgname}-*.egg-info/ +%{python3_sitearch}/%{pkgname}/ %{python3_sitearch}/_%{pkgname}.*.so %files doc