Spec file cleanup
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/MRWOMRZ6KPCV25EFHJ2O67BCCP3L4Y6N/
This commit is contained in:
parent
7f678106e9
commit
94c9eab7de
@ -6,7 +6,6 @@ Name: libsemanage
|
|||||||
Version: 2.7
|
Version: 2.7
|
||||||
Release: 9%{?dist}
|
Release: 9%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: System Environment/Libraries
|
|
||||||
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/libsemanage-2.7.tar.gz
|
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
|
# download https://raw.githubusercontent.com/fedora-selinux/scripts/master/selinux/make-fedora-selinux-patch.sh
|
||||||
# run:
|
# run:
|
||||||
@ -44,7 +43,6 @@ on binary policies such as customizing policy boolean settings.
|
|||||||
|
|
||||||
%package static
|
%package static
|
||||||
Summary: Static library used to build policy manipulation tools
|
Summary: Static library used to build policy manipulation tools
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: libsemanage-devel%{_isa} = %{version}-%{release}
|
Requires: libsemanage-devel%{_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description static
|
%description static
|
||||||
@ -53,7 +51,6 @@ needed for developing applications that manipulate binary policies.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Header files and libraries used to build policy manipulation tools
|
Summary: Header files and libraries used to build policy manipulation tools
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release} ustr
|
Requires: %{name}%{?_isa} = %{version}-%{release} ustr
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -67,7 +64,6 @@ Provides: %{name}-python = %{version}-%{release}
|
|||||||
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
||||||
Obsoletes: %{name}-python < %{version}-%{release}
|
Obsoletes: %{name}-python < %{version}-%{release}
|
||||||
Summary: semanage python bindings for libsemanage
|
Summary: semanage python bindings for libsemanage
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description -n python2-libsemanage
|
%description -n python2-libsemanage
|
||||||
@ -76,7 +72,6 @@ SELinux management applications.
|
|||||||
|
|
||||||
%package -n python3-libsemanage
|
%package -n python3-libsemanage
|
||||||
Summary: semanage python 3 bindings for libsemanage
|
Summary: semanage python 3 bindings for libsemanage
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: libselinux-python3
|
Requires: libselinux-python3
|
||||||
%{?python_provide:%python_provide python3-libsemanage}
|
%{?python_provide:%python_provide python3-libsemanage}
|
||||||
@ -129,7 +124,6 @@ InstallPythonWrapper() {
|
|||||||
install-pywrap
|
install-pywrap
|
||||||
}
|
}
|
||||||
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
|
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}
|
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_sharedstatedir}/selinux
|
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
|
sed -i '1s%\(#! */usr/bin/python\)\([^3].*\|\)$%\13\2%' %{buildroot}%{_libexecdir}/selinux/semanage_migrate_store
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%dir %{_sysconfdir}/selinux
|
%dir %{_sysconfdir}/selinux
|
||||||
@ -164,11 +157,9 @@ sed -i '1s%\(#! */usr/bin/python\)\([^3].*\|\)$%\13\2%' %{buildroot}%{_libexecdi
|
|||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%files static
|
%files static
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libsemanage.a
|
%{_libdir}/libsemanage.a
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libsemanage.so
|
%{_libdir}/libsemanage.so
|
||||||
%{_libdir}/pkgconfig/libsemanage.pc
|
%{_libdir}/pkgconfig/libsemanage.pc
|
||||||
%dir %{_includedir}/semanage
|
%dir %{_includedir}/semanage
|
||||||
@ -176,12 +167,10 @@ sed -i '1s%\(#! */usr/bin/python\)\([^3].*\|\)$%\13\2%' %{buildroot}%{_libexecdi
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%files -n python2-libsemanage
|
%files -n python2-libsemanage
|
||||||
%defattr(-,root,root)
|
|
||||||
%{python2_sitearch}/_semanage.so
|
%{python2_sitearch}/_semanage.so
|
||||||
%{python2_sitearch}/semanage.py*
|
%{python2_sitearch}/semanage.py*
|
||||||
|
|
||||||
%files -n python3-libsemanage
|
%files -n python3-libsemanage
|
||||||
%defattr(-,root,root)
|
|
||||||
%{python3_sitearch}/*.so
|
%{python3_sitearch}/*.so
|
||||||
%{python3_sitearch}/semanage.py*
|
%{python3_sitearch}/semanage.py*
|
||||||
%{python3_sitearch}/__pycache__/semanage*
|
%{python3_sitearch}/__pycache__/semanage*
|
||||||
|
Loading…
Reference in New Issue
Block a user