SPECS: libtasn1.spec - gtk-doc enabled (disabled by default) and b...

pluto pluto at pld-linux.org
Wed Sep 28 15:42:09 CEST 2005


Author: pluto                        Date: Wed Sep 28 13:42:09 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- gtk-doc enabled (disabled by default) and bconded.

---- Files affected:
SPECS:
   libtasn1.spec (1.21 -> 1.22) 

---- Diffs:

================================================================
Index: SPECS/libtasn1.spec
diff -u SPECS/libtasn1.spec:1.21 SPECS/libtasn1.spec:1.22
--- SPECS/libtasn1.spec:1.21	Fri Sep  2 22:35:06 2005
+++ SPECS/libtasn1.spec	Wed Sep 28 15:42:04 2005
@@ -1,4 +1,9 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	apidocs		# disable gtk-doc
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	ASN.1 library used in GNUTLS
 Summary(pl):	Biblioteka ASN.1 używana w GNUTLS
 Name:		libtasn1
@@ -12,7 +17,8 @@
 URL:		http://www.gnu.org/software/gnutls/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake >= 1:1.9
-BuildRequires:	gtk-doc
+%{?with_apidocs:BuildRequires:	gtk-doc >= 1.4}
+BuildRequires:	gtk-doc-automake >= 1.4
 BuildRequires:	libtool
 BuildRequires:	texinfo
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -66,12 +72,19 @@
 %patch0 -p1
 
 %build
+%{?with_apidocs:%{__gtkdocize}}
 %{__libtoolize}
 %{__aclocal} -I m4 -I gl/m4
 %{__automake}
 %{__autoheader}
 %{__autoconf}
-%configure
+
+%configure \
+	--%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
+	%{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
+	--%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \
+	--enable-shared
+
 %{__make}
 
 %install
@@ -107,10 +120,13 @@
 %{_pkgconfigdir}/libtasn1.pc
 %{_infodir}/*.info*
 %{_mandir}/man3/*.3*
+%{?with_apidocs:%{_gtkdocdir}/%{name}}
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -118,6 +134,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.22  2005/09/28 13:42:04  pluto
+- gtk-doc enabled (disabled by default) and bconded.
+
 Revision 1.21  2005/09/02 20:35:06  qboosh
 - updated to 0.2.17 (versioned symbols restored)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libtasn1.spec?r1=1.21&r2=1.22&f=u




More information about the pld-cvs-commit mailing list