[packages/mate-conf] add apidocs,gtk,ldap,static_libs bconds
glen
glen at pld-linux.org
Sat Dec 22 18:23:28 CET 2012
commit e96f431fecceafb59d67b226eb38c08731188565
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Dec 22 19:21:43 2012 +0200
add apidocs,gtk,ldap,static_libs bconds
enable configure options to get stable features
mate-conf.spec | 40 +++++++++++++++++++++++++++++++---------
1 file changed, 31 insertions(+), 9 deletions(-)
---
diff --git a/mate-conf.spec b/mate-conf.spec
index 4a6ed20..144662f 100644
--- a/mate-conf.spec
+++ b/mate-conf.spec
@@ -1,3 +1,10 @@
+#
+# Conditional build:
+%bcond_without apidocs # disable gtk-doc
+%bcond_without gtk # disable GTK
+%bcond_without ldap # without Evolution Data Sources LDAP backend
+%bcond_without static_libs # don't build static libraries
+
Summary: MateConf configuration database system
Summary(pl.UTF-8): MateConf - system bazy danych konfiguracji
Name: mate-conf
@@ -15,14 +22,15 @@ BuildRequires: dbus-glib-devel >= 0.74
BuildRequires: gettext-devel
BuildRequires: glib2-devel >= 1:2.26.0
BuildRequires: gobject-introspection-devel >= 0.9.5
-BuildRequires: gtk-doc >= 1.0
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.0}
+BuildRequires: rpmbuild(macros) >= 1.527
# does MATE allow gtk+3 everywhere?
BuildRequires: gtk+2-devel >= 2:2.14.0
BuildRequires: intltool >= 0.35.0
-BuildRequires: libxml2-devel >= 2.0
BuildRequires: libtool
+BuildRequires: libxml2-devel >= 2.0
BuildRequires: mate-corba-devel
-BuildRequires: openldap-devel
+%{?with_ldap:BuildRequires: openldap-devel}
BuildRequires: pkgconfig
BuildRequires: polkit-devel
BuildRequires: tar >= 1:1.22
@@ -122,18 +130,26 @@ automatycznie skonfigurowane do używania tych adresów.
%{__autoheader}
%{__automake}
%configure \
- --with-html-dir=%{_gtkdocdir}
+ --enable-defaults-service \
+ --enable-gsettings-backend=yes \
+ %{?with_gtk:--enable-gtk --with-gtk=2.0} \
+ %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} \
+ --enable-introspection \
+ %{__with_without ldap openldap} \
+ %{__disable static_libs static} \
+ %{nil}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
# loadable modules
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/MateConf/2/lib*.{la,a}
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/gio/modules/lib*.{la,a}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/MateConf/2/lib*.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/gio/modules/lib*.la
+%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/MateConf/2/lib*.a
+%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/gio/modules/lib*.a
# obsoleted by pkg-config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateconf-2.la
@@ -168,7 +184,7 @@ umask 022
%dir %{_libdir}/MateConf/2
%attr(755,root,root) %{_libdir}/MateConf/2/libmateconfbackend-oldxml.so
%attr(755,root,root) %{_libdir}/MateConf/2/libmateconfbackend-xml.so
-%{_sysconfdir}/dbus-1/system.d/org.mate.MateConf.Defaults.conf
+/etc/dbus-1/system.d/org.mate.MateConf.Defaults.conf
%dir %{_sysconfdir}/mateconf
%dir %{_sysconfdir}/mateconf/2
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mateconf/2/path
@@ -176,7 +192,6 @@ umask 022
%dir %{_sysconfdir}/mateconf/mateconf.xml.mandatory
%dir %{_sysconfdir}/mateconf/mateconf.xml.system
%{_sysconfdir}/xdg/autostart/mateconf-gsettings-data-convert.desktop
-%dir %{_datadir}/MateConf
%{_datadir}/dbus-1/services/org.mate.MateConf.service
%{_datadir}/dbus-1/system-services/org.mate.MateConf.Defaults.service
%{_datadir}/polkit-1/actions/org.mate.mateconf.defaults.policy
@@ -199,18 +214,25 @@ umask 022
%{_pkgconfigdir}/mateconf-2.0.pc
%{_aclocaldir}/mateconf-2.m4
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libmateconf-2.a
+%endif
+%if %{with apidocs}
%files apidocs
%defattr(644,root,root,755)
%{_gtkdocdir}/mateconf
+%endif
+%if %{with ldap}
%files backend-evoldap
%defattr(644,root,root,755)
%doc backends/README.evoldap
%attr(755,root,root) %{_libdir}/MateConf/2/libmateconfbackend-evoldap.so
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mateconf/2/evoldap.conf
+%dir %{_datadir}/MateConf
%dir %{_datadir}/MateConf/schema
%{_datadir}/MateConf/schema/evoldap.schema
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mate-conf.git/commitdiff/e96f431fecceafb59d67b226eb38c08731188565
More information about the pld-cvs-commit
mailing list