From 61aa00d32a17bafaf43152c434ebad15d0093771 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 1 Sep 2017 09:26:34 +0200 Subject: [PATCH] simplify python2/python3/devel filelists Signed-off-by: Igor Gnatenko --- libselinux.spec | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/libselinux.spec b/libselinux.spec index 5e30da7..e3510a0 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -237,26 +237,20 @@ rm -rf %{buildroot} %{_libdir}/pkgconfig/libselinux.pc %dir %{_libdir}/golang/src/pkg/github.com/selinux %{_libdir}/golang/src/pkg/github.com/selinux/selinux.go -%dir %{_includedir}/selinux -%{_includedir}/selinux/* +%{_includedir}/selinux/ %{_mandir}/man3/* %files static %{_libdir}/libselinux.a %files -n python2-libselinux -%dir %{python_sitearch}/selinux -%{python_sitearch}/_selinux.so -%{python_sitearch}/selinux/* +%{python2_sitearch}/selinux/ +%{python2_sitearch}/_selinux.so %if 0%{?with_python3} %files -n python3-libselinux -%dir %{python3_sitearch}/selinux -%dir %{python3_sitearch}/selinux/__pycache__ -%{python3_sitearch}/selinux/*.py* -%{python3_sitearch}/_selinux.cpython*.so -%{python3_sitearch}/selinux/*.so -%{python3_sitearch}/selinux/__pycache__/* +%{python3_sitearch}/selinux/ +%{python3_sitearch}/_selinux.*.so %endif with_python3 %files ruby