SPECS: audit.spec - added without python bcond
sparky
sparky at pld-linux.org
Thu Jun 8 14:54:20 CEST 2006
Author: sparky Date: Thu Jun 8 12:54:20 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added without python bcond
---- Files affected:
SPECS:
audit.spec (1.25 -> 1.26)
---- Diffs:
================================================================
Index: SPECS/audit.spec
diff -u SPECS/audit.spec:1.25 SPECS/audit.spec:1.26
--- SPECS/audit.spec:1.25 Mon Apr 17 19:26:10 2006
+++ SPECS/audit.spec Thu Jun 8 14:54:14 2006
@@ -2,6 +2,7 @@
#
# Conditional build:
%bcond_without pie # auditd as PIE binary
+%bcond_without python # don't build python bindings
#
Summary: User space tools for 2.6 kernel auditing
Summary(pl): Narzędzia przestrzeni użytkownika do audytu jąder 2.6
@@ -25,9 +26,13 @@
BuildRequires: libstdc++-devel
BuildRequires: libtool
BuildRequires: linux-libc-headers >= 2.6.11
+%if %{with python}
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: swig-python
+%else
+BuildRequires: sed >= 4.0
+%endif
+BuildRequires: rpmbuild(macros) >= 1.268
Requires(post,preun): /sbin/chkconfig
Requires: %{name}-libs = %{version}-%{release}
Requires: rc-scripts
@@ -110,6 +115,11 @@
install -D %{SOURCE1} lib/linux/audit.h
install -D %{SOURCE1} src/mt/linux/audit.h
+%if %{without python}
+sed '/PYTHON/d; s#swig/Makefile ##' -i configure.ac
+sed 's/swig//' -i Makefile.am
+%endif
+
%build
%{__libtoolize}
%{__aclocal}
@@ -143,10 +153,12 @@
install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/auditd
install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/auditd
+%if %{with python}
%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py
rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
@@ -199,10 +211,12 @@
%{_libdir}/libaudit.a
%{_libdir}/libauparse.a
+%if %{with python}
%files -n python-audit
%defattr(644,root,root,755)
%attr(755,root,root) %{py_sitedir}/_audit.so
%{py_sitescriptdir}/audit.py[co]
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -210,6 +224,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.26 2006/06/08 12:54:14 sparky
+- added without python bcond
+
Revision 1.25 2006/04/17 17:26:10 qboosh
- updated -libs* descs (more than one lib now)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/audit.spec?r1=1.25&r2=1.26&f=u
More information about the pld-cvs-commit
mailing list