SPECS: policycoreutils.spec - bcond without restorecond
zbyniu
zbyniu at pld-linux.org
Wed Jan 17 13:41:16 CET 2007
Author: zbyniu Date: Wed Jan 17 12:41:16 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- bcond without restorecond
---- Files affected:
SPECS:
policycoreutils.spec (1.38 -> 1.39)
---- Diffs:
================================================================
Index: SPECS/policycoreutils.spec
diff -u SPECS/policycoreutils.spec:1.38 SPECS/policycoreutils.spec:1.39
--- SPECS/policycoreutils.spec:1.38 Sat Dec 9 22:01:49 2006
+++ SPECS/policycoreutils.spec Wed Jan 17 13:41:11 2007
@@ -1,5 +1,9 @@
# $Revision$, $Date$
# TODO: PLDify init.d/restorecond (uses bashisms instead of our nls)
+#
+# Conditional build:
+%bcond_without restorecond # don't build restorecond (glibc>2.4)
+#
%include /usr/lib/rpm/macros.perl
Summary: SELinux policy core utilities
Summary(pl): Podstawowe narzędzia dla polityki SELinux
@@ -15,7 +19,7 @@
Source3: %{name}-pl.po
BuildRequires: audit-libs-devel
BuildRequires: gettext-devel
-BuildRequires: glibc-devel >= 6:2.4
+%{?with_restorecond:BuildRequires: glibc-devel >= 6:2.4}
BuildRequires: libselinux-devel >= 0:1.32
BuildRequires: libsemanage-devel >= 1.8
BuildRequires: libsepol-static >= 1.14
@@ -100,6 +104,7 @@
%setup -q
cp -f %{SOURCE3} po/pl.po
+%{!?with_restorecond:sed -i 's/restorecond//' Makefile}
%build
%{__make} \
@@ -184,12 +189,14 @@
%attr(755,root,root) %{_bindir}/audit2allow
%{_mandir}/man1/audit2allow.1*
+%if %{with restorecond}
%files restorecond
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/restorecond
%attr(754,root,root) /etc/rc.d/init.d/restorecond
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/selinux/restorecond.conf
%{_mandir}/man8/restorecond.8*
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -197,6 +204,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.39 2007/01/17 12:41:11 zbyniu
+- bcond without restorecond
+
Revision 1.38 2006/12/09 21:01:49 qboosh
- chkconfig; release 0.2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/policycoreutils.spec?r1=1.38&r2=1.39&f=u
More information about the pld-cvs-commit
mailing list