SPECS: enca.spec - added apidocs bcond and subpackage - release 3

megabajt megabajt at pld-linux.org
Fri Jun 8 18:28:01 CEST 2007


Author: megabajt                     Date: Fri Jun  8 16:28:01 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added apidocs bcond and subpackage
- release 3

---- Files affected:
SPECS:
   enca.spec (1.19 -> 1.20) 

---- Diffs:

================================================================
Index: SPECS/enca.spec
diff -u SPECS/enca.spec:1.19 SPECS/enca.spec:1.20
--- SPECS/enca.spec:1.19	Mon Feb 12 22:23:54 2007
+++ SPECS/enca.spec	Fri Jun  8 18:27:56 2007
@@ -1,13 +1,14 @@
 # $Revision$, $Date$
 #
 # Conditional build:
+%bcond_without	apidocs	# disable gtk-doc
 %bcond_without	recode	# build without recode support
 #
 Summary:	Extremely Naive Charset Analyser
 Summary(pl.UTF-8):	Skrajnie naiwny analizator zestawów znaków
 Name:		enca
 Version:	1.9
-Release:	2
+Release:	3
 License:	GPL v2
 Group:		Libraries
 Source0:	http://trific.ath.cx/Ftp/enca/%{name}-%{version}.tar.bz2
@@ -16,6 +17,7 @@
 URL:		http://trific.ath.cx/software/enca/
 BuildRequires:	autoconf
 BuildRequires:	automake
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.0}
 BuildRequires:	iconv
 %{?with_recode:BuildRequires:	recode-devel}
 Requires:	/bin/mktemp
@@ -82,6 +84,18 @@
 %description static -l pl.UTF-8
 Statyczna biblioteka ENCA.
 
+%package apidocs
+Summary:	ENCA library API documentation
+Summary(pl.UTF-8):	Dokumentacja API biblioteki ENCA
+Group:		Documentation
+Requires:	gtk-doc-common
+
+%description apidocs
+ENCA library API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki ENCA.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -91,6 +105,7 @@
 %{__autoconf}
 %configure \
 	MKTEMP_PROG=/bin/mktemp \
+	--%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
 	--with-html-dir=%{_gtkdocdir}
 
 %{__make}
@@ -104,6 +119,8 @@
 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
 echo '.so enca.1' > $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
 
+%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -128,18 +145,27 @@
 %{_libdir}/lib*.la
 %{_includedir}/*.h
 %{_pkgconfigdir}/*.pc
-%{_gtkdocdir}/libenca
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/libenca
+%endif
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.20  2007/06/08 16:27:56  megabajt
+- added apidocs bcond and subpackage
+- release 3
+
 Revision 1.19  2007/02/12 21:23:54  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/enca.spec?r1=1.19&r2=1.20&f=u



More information about the pld-cvs-commit mailing list