diff --git libsemanage/libsemanage.spec libsemanage/libsemanage.spec.tmp index 7672135be3..189b1eefaf 100644 --- libsemanage/libsemanage.spec +++ libsemanage/libsemanage.spec.tmp @@ -7,7 +7,7 @@ Summary: SELinux binary policy manipulation library Name: libsemanage Version: 2.7 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2+ Group: System Environment/Libraries Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/libsemanage-2.7.tar.gz @@ -64,12 +64,16 @@ Requires: %{name}%{?_isa} = %{version}-%{release} ustr The semanage-devel package contains the libraries and header files needed for developing applications that manipulate binary policies. -%package python +%package -n python2-libsemanage +%{?python_provide:%python_provide python2-libsemanage} +# Remove before F30 +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 python +%description -n python2-libsemanage The libsemanage-python package contains the python bindings for developing SELinux management applications. @@ -180,7 +184,7 @@ rm -rf ${RPM_BUILD_ROOT} %{_includedir}/semanage/*.h %{_mandir}/man3/* -%files python +%files -n python2-libsemanage %defattr(-,root,root) %{python_sitearch}/_semanage.so %{python_sitearch}/semanage.py* @@ -195,6 +199,10 @@ rm -rf ${RPM_BUILD_ROOT} %endif # if with_python3 %changelog +* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek - 2.7-2 +- Python 2 binary package renamed to python2-libsemanage + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Mon Aug 07 2017 Petr Lautrbach - 2.7-1 - Update to upstream release 2017-08-04 - Use 'sefcontext_compile -r' when it's run during SELinux policy build