SPECS: ORBit2.spec - without apidocs and static_libs bconds

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


Author: charles                      Date: Sun Sep 14 11:42:29 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- without apidocs and static_libs bconds

---- Files affected:
SPECS:
   ORBit2.spec (1.110 -> 1.111) 

---- Diffs:

================================================================
Index: SPECS/ORBit2.spec
diff -u SPECS/ORBit2.spec:1.110 SPECS/ORBit2.spec:1.111
--- SPECS/ORBit2.spec:1.110	Tue Aug 19 15:41:09 2008
+++ SPECS/ORBit2.spec	Sun Sep 14 13:42:24 2008
@@ -1,4 +1,9 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	apidocs		# disable gtk-doc
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	High-performance CORBA Object Request Broker
 Summary(fr.UTF-8):	Requète d'Objects CORBA
 Summary(pl.UTF-8):	Wysoko wydajny CORBA Object Request Broker
@@ -16,7 +21,7 @@
 BuildRequires:	automake >= 1:1.9
 BuildRequires:	flex
 BuildRequires:	glib2-devel >= 1:2.14.1
-BuildRequires:	gtk-doc >= 1.8
+%{?with_apidocs:BuildRequires:	gtk-doc >= 1.8}
 BuildRequires:	indent
 BuildRequires:	libIDL-devel >= 0.8.10
 BuildRequires:	libtool
@@ -123,8 +128,13 @@
 %setup -q
 %patch0 -p1
 
+%if !%{with apidocs}
+echo 'EXTRA_DIST=' > gtk-doc.make
+echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
+%endif
+
 %build
-%{__gtkdocize}
+%{?with_apidocs:%{__gtkdocize}}
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
@@ -132,7 +142,8 @@
 %{__automake}
 %configure \
 	--with-html-dir=%{_gtkdocdir} \
-	--enable-gtk-doc
+	%{!?with_static_libs:--disable-static} \
+	%{?with_apidocs:--enable-gtk-doc}
 %{__make} -j1
 
 %install
@@ -167,9 +178,11 @@
 %attr(755,root,root) %{_libdir}/orbit-2.0/Everything_module.so
 %{_datadir}/idl/orbit-2.0
 
+%if %{with apidocs}
 %files apidocs
 %defattr(644,root,root,755)
 %{_gtkdocdir}/%{name}
+%endif
 
 %files devel
 %defattr(644,root,root,755)
@@ -189,11 +202,13 @@
 %{_pkgconfigdir}/ORBit-imodule-2.0.pc
 %{_aclocaldir}/ORBit2.m4
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libORBit-2.a
 %{_libdir}/libORBit-imodule-2.a
 %{_libdir}/libORBitCosNaming-2.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -201,6 +216,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.111  2008/09/14 11:42:24  charles
+- without apidocs and static_libs bconds
+
 Revision 1.110  2008/08/19 13:41:09  patrys
 - 2.14.14
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/ORBit2.spec?r1=1.110&r2=1.111&f=u



More information about the pld-cvs-commit mailing list