packages: libdvdcss/libdvdcss.spec - added apidocs subpackage and bcond

sls sls at pld-linux.org
Sat Jun 5 10:14:12 CEST 2010


Author: sls                          Date: Sat Jun  5 08:14:12 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added apidocs subpackage and bcond

---- Files affected:
packages/libdvdcss:
   libdvdcss.spec (1.41 -> 1.42) 

---- Diffs:

================================================================
Index: packages/libdvdcss/libdvdcss.spec
diff -u packages/libdvdcss/libdvdcss.spec:1.41 packages/libdvdcss/libdvdcss.spec:1.42
--- packages/libdvdcss/libdvdcss.spec:1.41	Sun Aug 31 12:41:31 2008
+++ packages/libdvdcss/libdvdcss.spec	Sat Jun  5 10:14:07 2010
@@ -2,6 +2,7 @@
 #
 # Conditional build:
 %bcond_without	static_libs	# don't build static library
+%bcond_without	apidocs		# documentation generated with doxygen
 #
 Summary:	Library to decrypt CSS-encoded DVD
 Summary(pl.UTF-8):	Biblioteka do dekodowania DVD zakodowanych CSS
@@ -17,7 +18,12 @@
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
 BuildRequires:	libtool
-BuildRequires:	tetex-makeindex
+%if %{with apidocs}
+BuildRequires:	doxygen
+BuildRequires:	texlive-fonts-jknappen
+BuildRequires:	texlive-latex
+BuildRequires:	texlive-makeindex
+%endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -54,6 +60,17 @@
 %description static -l pl.UTF-8
 Statyczne biblioteki libdvdcss.
 
+%package apidocs
+Summary:	libdvdcss API documentation
+Summary(pl.UTF-8):	Dokumentacja API biblioteki libdvdcss
+Group:		Documentation
+
+%description apidocs
+libdvdcss API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki libdvdcss.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -65,6 +82,7 @@
 %{__autoheader}
 %{__automake}
 %configure \
+	%{!?with_apidocs:--disable-doc} \
 	%{!?with_static_libs:--disable-static}
 
 %{__make}
@@ -102,12 +120,21 @@
 %{_libdir}/libdvdcss.a
 %endif
 
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/html/*
+%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.42  2010/06/05 08:14:07  sls
+- added apidocs subpackage and bcond
+
 Revision 1.41  2008/08/31 10:41:31  qboosh
 - GPL v2+
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libdvdcss/libdvdcss.spec?r1=1.41&r2=1.42&f=u



More information about the pld-cvs-commit mailing list