From 94c9eab7de95c0bd486ad87af445c366cd78b2b0 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Fri, 16 Feb 2018 10:15:13 +0100 Subject: [PATCH] Spec file cleanup https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/MRWOMRZ6KPCV25EFHJ2O67BCCP3L4Y6N/ --- libsemanage.spec | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/libsemanage.spec b/libsemanage.spec index dfeded8..44997b3 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -6,7 +6,6 @@ Name: libsemanage Version: 2.7 Release: 9%{?dist} License: LGPLv2+ -Group: System Environment/Libraries Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/libsemanage-2.7.tar.gz # download https://raw.githubusercontent.com/fedora-selinux/scripts/master/selinux/make-fedora-selinux-patch.sh # run: @@ -44,7 +43,6 @@ on binary policies such as customizing policy boolean settings. %package static Summary: Static library used to build policy manipulation tools -Group: Development/Libraries Requires: libsemanage-devel%{_isa} = %{version}-%{release} %description static @@ -53,7 +51,6 @@ needed for developing applications that manipulate binary policies. %package devel Summary: Header files and libraries used to build policy manipulation tools -Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} ustr %description devel @@ -67,7 +64,6 @@ Provides: %{name}-python = %{version}-%{release} Provides: %{name}-python%{?_isa} = %{version}-%{release} Obsoletes: %{name}-python < %{version}-%{release} Summary: semanage python bindings for libsemanage -Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description -n python2-libsemanage @@ -76,7 +72,6 @@ SELinux management applications. %package -n python3-libsemanage Summary: semanage python 3 bindings for libsemanage -Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} Requires: libselinux-python3 %{?python_provide:%python_provide python3-libsemanage} @@ -129,7 +124,6 @@ InstallPythonWrapper() { install-pywrap } -rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_libdir} mkdir -p ${RPM_BUILD_ROOT}%{_includedir} mkdir -p ${RPM_BUILD_ROOT}%{_sharedstatedir}/selinux @@ -150,7 +144,6 @@ ln -sf %{_libdir}/libsemanage.so.1 ${RPM_BUILD_ROOT}/%{_libdir}/libsemanage.so sed -i '1s%\(#! */usr/bin/python\)\([^3].*\|\)$%\13\2%' %{buildroot}%{_libexecdir}/selinux/semanage_migrate_store %files -%defattr(-,root,root) %{!?_licensedir:%global license %%doc} %license COPYING %dir %{_sysconfdir}/selinux @@ -164,11 +157,9 @@ sed -i '1s%\(#! */usr/bin/python\)\([^3].*\|\)$%\13\2%' %{buildroot}%{_libexecdi %ldconfig_scriptlets %files static -%defattr(-,root,root) %{_libdir}/libsemanage.a %files devel -%defattr(-,root,root) %{_libdir}/libsemanage.so %{_libdir}/pkgconfig/libsemanage.pc %dir %{_includedir}/semanage @@ -176,12 +167,10 @@ sed -i '1s%\(#! */usr/bin/python\)\([^3].*\|\)$%\13\2%' %{buildroot}%{_libexecdi %{_mandir}/man3/* %files -n python2-libsemanage -%defattr(-,root,root) %{python2_sitearch}/_semanage.so %{python2_sitearch}/semanage.py* %files -n python3-libsemanage -%defattr(-,root,root) %{python3_sitearch}/*.so %{python3_sitearch}/semanage.py* %{python3_sitearch}/__pycache__/semanage*