]> git.pld-linux.org Git - packages/audit.git/blobdiff - audit.spec
- release 5 (by relup.sh)
[packages/audit.git] / audit.spec
index 73652844535152e7df0a7a53c852a5eccd5f4570..9f4529ca46118c9af1ff98fe170942cbf5e39cb4 100644 (file)
@@ -3,22 +3,26 @@
 %bcond_without kerberos5       # Kerberos V support via heimdal
 %bcond_without prelude         # prelude audisp plugin
 %bcond_without golang          # Go language bindings
-%bcond_without python          # Python bindings
+%bcond_without python          # Python bindings (any)
+%bcond_without python3         # Python 3 bindings
 %bcond_without zos_remote      # zos-remote audisp plugin (LDAP dep)
 
 %ifnarch %{ix86} %{x8664} %{arm}
 %undefine      with_golang
 %endif
 
+%if %{without python}
+%undefine      with_python3
+%endif
 Summary:       User space tools for 2.6 kernel auditing
 Summary(pl.UTF-8):     Narzędzia przestrzeni użytkownika do audytu jąder 2.6
 Name:          audit
-Version:       2.4.1
-Release:       2
+Version:       2.4.4
+Release:       5
 License:       GPL v2+
 Group:         Daemons
 Source0:       http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
-# Source0-md5: 03a73041e2de853148b2bca67a1d9138
+# Source0-md5: 72b0fd94d32846142bc472f0d91e62b4
 Source2:       %{name}d.init
 Source3:       %{name}d.sysconfig
 Patch0:                %{name}-install.patch
@@ -36,7 +40,7 @@ URL:          http://people.redhat.com/sgrubb/audit/
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake >= 1:1.9
 BuildRequires: glibc-headers >= 6:2.3.6
-%{?with_golang:BuildRequires:  golang}
+%{?with_golang:BuildRequires:  golang >= 1.4}
 %{?with_kerberos5:BuildRequires:       heimdal-devel}
 BuildRequires: libcap-ng-devel
 %{?with_prelude:BuildRequires: libprelude-devel}
@@ -49,6 +53,11 @@ BuildRequires:       python-devel >= 1:2.5
 BuildRequires: rpm-pythonprov
 BuildRequires: swig-python
 %endif
+%if %{with python3}
+BuildRequires: python3-devel
+BuildRequires: rpm-pythonprov
+BuildRequires: swig-python
+%endif
 BuildRequires: rpmbuild(macros) >= 1.623
 BuildRequires: sed >= 4.0
 Requires(post,preun):  /sbin/chkconfig
@@ -141,7 +150,7 @@ Summary(pl.UTF-8):  Interfejs języka Go do biblioteki libaudit
 License:       LGPL v2.1+
 Group:         Development/Languages
 Requires:      %{name}-libs = %{version}-%{release}
-Requires:      golang
+Requires:      golang >= 1.4
 
 %description -n golang-audit
 Go language interface to libaudit library.
@@ -150,17 +159,30 @@ Go language interface to libaudit library.
 Interfejs języka Go do biblioteki libaudit.
 
 %package -n python-audit
-Summary:       Python interface to libaudit library
-Summary(pl.UTF-8):     Pythonowy interfejs do biblioteki libaudit
+Summary:       Python 2.x interface to libaudit library
+Summary(pl.UTF-8):     Interfejs Pythona 2.x do biblioteki libaudit
 License:       LGPL v2.1+
 Group:         Libraries/Python
 Requires:      %{name}-libs = %{version}-%{release}
 
 %description -n python-audit
-Python interface to libaudit library.
+Python 2.x interface to libaudit library.
 
 %description -n python-audit -l pl.UTF-8
-Pythonowy interfejs do biblioteki libaudit.
+Interfejs Pythona 2.x do biblioteki libaudit.
+
+%package -n python3-audit
+Summary:       Python 3.x interface to libaudit library
+Summary(pl.UTF-8):     Interfejs Pythona 3.x do biblioteki libaudit
+License:       LGPL v2.1+
+Group:         Libraries/Python
+Requires:      %{name}-libs = %{version}-%{release}
+
+%description -n python3-audit
+Python 3.x interface to libaudit library.
+
+%description -n python3-audit -l pl.UTF-8
+Interfejs Pythona 3.x do biblioteki libaudit.
 
 %prep
 %setup -q
@@ -223,6 +245,10 @@ ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libauparse.so.*.*.*) \
 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
 %endif
 
+%if %{with python3}
+%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/*.{la,a}
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -330,6 +356,7 @@ fi
 %{_includedir}/auparse*.h
 %{_includedir}/libaudit.h
 %{_pkgconfigdir}/audit.pc
+%{_pkgconfigdir}/auparse.pc
 %{_mandir}/man3/audit_*.3*
 %{_mandir}/man3/auparse_*.3*
 %{_mandir}/man3/ausearch_*.3*
@@ -354,8 +381,8 @@ fi
 %if %{with golang}
 %files -n golang-audit
 %defattr(644,root,root,755)
-%dir %{_libdir}/golang/src/pkg/redhat.com
-%{_libdir}/golang/src/pkg/redhat.com/audit
+%dir %{_libdir}/golang/src/redhat.com
+%{_libdir}/golang/src/redhat.com/audit
 %endif
 
 %if %{with python}
@@ -365,3 +392,11 @@ fi
 %attr(755,root,root) %{py_sitedir}/auparse.so
 %{py_sitedir}/audit.py[co]
 %endif
+
+%if %{with python3}
+%files -n python3-audit
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py3_sitedir}/_audit.so
+%attr(755,root,root) %{py3_sitedir}/auparse.so
+%{py3_sitedir}/audit.py
+%endif
This page took 0.08389 seconds and 4 git commands to generate.