SPECS: librsvg.spec - fixed build without apidocs - without static_libs bcond

charles charles at pld-linux.org
Sun Sep 14 14:29:13 CEST 2008


Author: charles                      Date: Sun Sep 14 12:29:13 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fixed build without apidocs
- without static_libs bcond

---- Files affected:
SPECS:
   librsvg.spec (1.131 -> 1.132) 

---- Diffs:

================================================================
Index: SPECS/librsvg.spec
diff -u SPECS/librsvg.spec:1.131 SPECS/librsvg.spec:1.132
--- SPECS/librsvg.spec:1.131	Fri Jul 25 21:50:17 2008
+++ SPECS/librsvg.spec	Sun Sep 14 14:29:07 2008
@@ -4,6 +4,7 @@
 %bcond_without	apidocs		# disable gtk-doc
 %bcond_without	libgsf		# build without libgsf (used for run-time decompression)
 %bcond_without	libcroco	# build without CSS support through libcroco
+%bcond_without	static_libs	# don't build static library
 #
 Summary:	A Raph's Library for Rendering SVG Data
 Summary(pl.UTF-8):	Biblioteka Raph's SVG do renderowania danych SVG
@@ -23,7 +24,7 @@
 BuildRequires:	automake
 BuildRequires:	glib2-devel >= 1:2.16.0
 BuildRequires:	gtk+2-devel >= 2:2.12.8
-BuildRequires:	gtk-doc-automake
+%{?with_apidocs:BuildRequires:	gtk-doc-automake}
 %{?with_apidocs:BuildRequires:	gtk-doc >= 1.8}
 %{?with_libcroco:BuildRequires:	libcroco-devel >= 0.6.1}
 %{?with_libgsf:BuildRequires:	libgsf-devel >= 1.14.4}
@@ -134,6 +135,12 @@
 %prep
 %setup -q
 
+%if !%{with apidocs}
+echo 'EXTRA_DIST=' > gtk-doc.make
+echo 'CLEANFILES=' > gtk-doc.make
+echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
+%endif
+
 %build
 %{__libtoolize}
 %{__aclocal}
@@ -142,6 +149,7 @@
 %{__automake}
 %configure \
 	--disable-mozilla-plugin \
+	%{!?with_static_libs:--disable-static} \
 	%{?with_apidocs:--enable-gtk-doc} \
 	%{!?with_libcroco:--without-croco} \
 	%{!?with_libgsf:--without-svgz} \
@@ -168,7 +176,9 @@
 %postun
 /sbin/ldconfig
 umask 022
-%{_bindir}/gdk-pixbuf-query-loaders%{pqext} > %{gtketcdir}/gdk-pixbuf.loaders
+if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
+  %{_bindir}/gdk-pixbuf-query-loaders%{pqext} > %{gtketcdir}/gdk-pixbuf.loaders
+fi
 
 %files
 %defattr(644,root,root,755)
@@ -190,9 +200,11 @@
 %{_pkgconfigdir}/librsvg-2.0.pc
 %{_includedir}/librsvg-2
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/librsvg-2.a
+%endif
 
 %if %{with apidocs}
 %files apidocs
@@ -206,6 +218,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.132  2008/09/14 12:29:07  charles
+- fixed build without apidocs
+- without static_libs bcond
+
 Revision 1.131  2008/07/25 19:50:17  arekm
 - rel 2; fix 32 vs 64 bit issue
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/librsvg.spec?r1=1.131&r2=1.132&f=u



More information about the pld-cvs-commit mailing list