SHA256
1
0
forked from pool/audit

Accepting request 540272 from home:pluskalm:branches:security

- Rename python binding packages to match current python packaging
  standards
- Update python build dependencies to resolve future split of
  python2/3

OBS-URL: https://build.opensuse.org/request/show/540272
OBS-URL: https://build.opensuse.org/package/show/security/audit?expand=0&rev=92
This commit is contained in:
Marcus Meissner 2017-11-09 17:04:53 +00:00 committed by Git OBS Bridge
parent 1ded129a42
commit 32adeb8614
2 changed files with 19 additions and 7 deletions

View File

@ -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 Sat Nov 4 21:11:35 UTC 2017 - aavindraa@gmail.com

View File

@ -38,7 +38,7 @@ BuildRequires: kernel-headers >= 2.6.30
BuildRequires: libtool BuildRequires: libtool
BuildRequires: openldap2-devel BuildRequires: openldap2-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: python-devel BuildRequires: python2-devel
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: swig BuildRequires: swig
BuildRequires: systemd-rpm-macros 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 processing the audit records generated by the audit subsystem in the
Linux kernel. Linux kernel.
%package -n audit-libs-python %package -n python2-audit
Summary: Python Bindings for libaudit Summary: Python Bindings for libaudit
License: LGPL-2.1+ License: LGPL-2.1+
Group: Development/Languages/Python 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 The audit-libs-python package contains the bindings for using libaudit
by python. by python.
%package -n audit-libs-python3 %package -n python3-audit
Summary: Python3 Bindings for libaudit Summary: Python3 Bindings for libaudit
License: LGPL-2.1+ License: LGPL-2.1+
Group: Development/Languages/Python 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 The audit-libs-python3 package contains the bindings for using libaudit
by python3. by python3.
@ -242,12 +246,12 @@ fi
%{_unitdir}/auditd.service %{_unitdir}/auditd.service
%{_sbindir}/rcauditd %{_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/_audit.so
%attr(755,root,root) %{_libdir}/python%{py_ver}/site-packages/auparse.so %attr(755,root,root) %{_libdir}/python%{py_ver}/site-packages/auparse.so
%{_libdir}/python%{py_ver}/site-packages/audit.py* %{_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/_audit.so
%attr(755,root,root) %{_libdir}/python%{py3_ver}/site-packages/auparse.so %attr(755,root,root) %{_libdir}/python%{py3_ver}/site-packages/auparse.so
%{_libdir}/python%{py3_ver}/site-packages/audit.py* %{_libdir}/python%{py3_ver}/site-packages/audit.py*