SPECS: PolicyKit-gnome.spec - added examples bcond
sls
sls at pld-linux.org
Tue Mar 25 21:58:41 CET 2008
Author: sls Date: Tue Mar 25 20:58:41 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added examples bcond
---- Files affected:
SPECS:
PolicyKit-gnome.spec (1.9 -> 1.10)
---- Diffs:
================================================================
Index: SPECS/PolicyKit-gnome.spec
diff -u SPECS/PolicyKit-gnome.spec:1.9 SPECS/PolicyKit-gnome.spec:1.10
--- SPECS/PolicyKit-gnome.spec:1.9 Sun Jan 6 01:13:41 2008
+++ SPECS/PolicyKit-gnome.spec Tue Mar 25 21:58:36 2008
@@ -1,4 +1,8 @@
# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without examples
+#
Summary: GNOME dialogs for PolicyKit
Summary(pl.UTF-8): Okna dialogowe GNOME dla pakietu PolicyKit
Name: PolicyKit-gnome
@@ -11,6 +15,7 @@
Patch0: %{name}-link.patch
URL: http://people.freedesktop.org/~david/polkit-spec.html
BuildRequires: PolicyKit-devel >= 0.7
+%{?with_examples:BuildRequires: PolicyKit}
BuildRequires: autoconf >= 2.50
BuildRequires: automake >= 1:1.9
BuildRequires: dbus-glib-devel >= 0.71
@@ -104,6 +109,7 @@
%{__autoheader}
%{__automake}
%configure \
+ %{!?with_examples:--disable-examples} \
--with-html-dir=%{_gtkdocdir}
%{__make}
@@ -148,10 +154,12 @@
%defattr(644,root,root,755)
%{_libdir}/libpolkit-gnome.a
+%if %{?with_examples}
%files demo
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/polkit-gnome-example
%{_datadir}/PolicyKit/policy/polkit-gnome-example.policy
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -159,6 +167,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.10 2008-03-25 20:58:36 sls
+- added examples bcond
+
Revision 1.9 2008-01-06 00:13:41 megabajt
- run ldconfig in %post / %postun
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/PolicyKit-gnome.spec?r1=1.9&r2=1.10&f=u
More information about the pld-cvs-commit
mailing list