]> git.pld-linux.org Git - packages/audit.git/commitdiff
- added patch that fixes python module
authorheretyk <heretyk@pld-linux.org>
Tue, 10 Jan 2006 17:49:16 +0000 (17:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- install compiled python module
- rel. 0.2

Changed files:
    audit-swig-fix.patch -> 1.1
    audit.spec -> 1.15

audit-swig-fix.patch [new file with mode: 0644]
audit.spec

diff --git a/audit-swig-fix.patch b/audit-swig-fix.patch
new file mode 100644 (file)
index 0000000..e6b9fe3
--- /dev/null
@@ -0,0 +1,10 @@
+diff -Naur audit-1.1.2.orig/swig/auditswig.i audit-1.1.2/swig/auditswig.i
+--- audit-1.1.2.orig/swig/auditswig.i  2005-11-30 20:39:48.000000000 +0100
++++ audit-1.1.2/swig/auditswig.i       2006-01-10 18:02:20.000000000 +0100
+@@ -23,4 +23,6 @@
+       #include "../lib/libaudit.h"
+ %}
++%apply unsigned int { uint32_t };
++%include "../lib/linux/audit.h"
+ %include "../lib/libaudit.h"
index 00930021870764a498743e1d2df68ce9aef16248..a145148efb5db332da6836fdaad2aec43e9d2659 100644 (file)
@@ -6,7 +6,7 @@ Summary:        User space tools for 2.6 kernel auditing
 Summary(pl):   Narzêdzia przestrzeni u¿ytkownika do audytu j±der 2.6
 Name:          audit
 Version:       1.1.2
-Release:       0.1
+Release:       0.2
 License:       GPL
 Group:         Daemons
 Source0:       http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
@@ -15,6 +15,7 @@ Source0:      http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
 Source1:       %{name}.h
 Source2:       %{name}d.init
 Source3:       %{name}d.sysconfig
+Patch0:                %{name}-swig-fix.patch
 URL:           http://people.redhat.com/sgrubb/audit/
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake >= 1.9
@@ -99,6 +100,7 @@ Pythonowy interfejs do biblioteki libaudit.
 
 %prep
 %setup -q
+%patch0 -p1
 
 install -D %{SOURCE1} lib/linux/audit.h
 install -D %{SOURCE1} src/mt/linux/audit.h
@@ -134,6 +136,8 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/auditd
 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/auditd
 
 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -191,4 +195,4 @@ fi
 %files -n python-audit
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/_audit.so
-%{py_sitescriptdir}/audit.py
+%{py_sitescriptdir}/audit.pyc
This page took 0.082371 seconds and 4 git commands to generate.