diff --git a/audit-secondary.changes b/audit-secondary.changes index 04f28a5..b8e8725 100644 --- a/audit-secondary.changes +++ b/audit-secondary.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Nov 9 16:21:23 UTC 2017 - mpluskal@suse.com + +- Rename python binding packages to match current python packaging + standards +- Update python build dependencies to resolve future split of + python2/3 + ------------------------------------------------------------------- Sat Nov 4 21:11:35 UTC 2017 - aavindraa@gmail.com diff --git a/audit-secondary.spec b/audit-secondary.spec index 96871d6..45b70dd 100644 --- a/audit-secondary.spec +++ b/audit-secondary.spec @@ -38,7 +38,7 @@ BuildRequires: kernel-headers >= 2.6.30 BuildRequires: libtool BuildRequires: openldap2-devel BuildRequires: pkgconfig -BuildRequires: python-devel +BuildRequires: python2-devel BuildRequires: python3-devel BuildRequires: swig BuildRequires: systemd-rpm-macros @@ -63,21 +63,25 @@ The audit package contains the user space utilities for storing and processing the audit records generated by the audit subsystem in the Linux kernel. -%package -n audit-libs-python +%package -n python2-audit Summary: Python Bindings for libaudit License: LGPL-2.1+ Group: Development/Languages/Python +Provides: audit-libs-python = %{version} +Obsoletes: audit-libs-python < %{version} -%description -n audit-libs-python +%description -n python2-audit The audit-libs-python package contains the bindings for using libaudit by python. -%package -n audit-libs-python3 +%package -n python3-audit Summary: Python3 Bindings for libaudit License: LGPL-2.1+ Group: Development/Languages/Python +Provides: audit-libs-python3 = %{version} +Obsoletes: audit-libs-python3 < %{version} -%description -n audit-libs-python3 +%description -n python3-audit The audit-libs-python3 package contains the bindings for using libaudit by python3. @@ -242,12 +246,12 @@ fi %{_unitdir}/auditd.service %{_sbindir}/rcauditd -%files -n audit-libs-python +%files -n python2-audit %attr(755,root,root) %{_libdir}/python%{py_ver}/site-packages/_audit.so %attr(755,root,root) %{_libdir}/python%{py_ver}/site-packages/auparse.so %{_libdir}/python%{py_ver}/site-packages/audit.py* -%files -n audit-libs-python3 +%files -n python3-audit %attr(755,root,root) %{_libdir}/python%{py3_ver}/site-packages/_audit.so %attr(755,root,root) %{_libdir}/python%{py3_ver}/site-packages/auparse.so %{_libdir}/python%{py3_ver}/site-packages/audit.py*