packages: krb5/krb5.spec - add --without doc

areq areq at pld-linux.org
Fri May 1 21:01:11 CEST 2009


Author: areq                         Date: Fri May  1 19:01:10 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add --without doc 

---- Files affected:
packages/krb5:
   krb5.spec (1.120 -> 1.121) 

---- Diffs:

================================================================
Index: packages/krb5/krb5.spec
diff -u packages/krb5/krb5.spec:1.120 packages/krb5/krb5.spec:1.121
--- packages/krb5/krb5.spec:1.120	Mon Nov 17 09:13:04 2008
+++ packages/krb5/krb5.spec	Fri May  1 21:01:03 2009
@@ -6,6 +6,7 @@
 #	- it's problem with Th builder
 #
 # Conditional build:
+%bcond_without	doc             # without documentation which needed TeX
 %bcond_with	krb4		# build with Kerberos V4 support
 %bcond_without	tcl		# build without tcl (tcl is needed for tests)
 %bcond_without	openldap	# don't build openldap plugin
@@ -90,11 +91,13 @@
 %{?with_openldap:BuildRequires:	openldap-devel >= 2.4.6}
 BuildRequires:	rpmbuild(macros) >= 1.268
 %{?with_tcl:BuildRequires:	tcl-devel}
+%if %{with doc}
 BuildRequires:	texinfo
 BuildRequires:	tetex-format-latex
 BuildRequires:	tetex-format-pdflatex
 BuildRequires:	tetex-latex
 BuildRequires:	tetex-makeindex
+%endif
 BuildRequires:	words
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -625,11 +628,12 @@
 %{__make}
 
 cd ../doc
+%if %{with doc}
 %{__make}
 %{__make} -C api
 %{__make} -C implement
 %{__make} -C kadm5
-
+%endif
 %{?with_tests:%{__make} -j1 -C ../src check}
 
 %install
@@ -752,7 +756,7 @@
 
 %files server
 %defattr(644,root,root,755)
-%doc doc/krb5-{admin,install}.html doc/{admin,install,krb425}-guide.pdf
+%doc doc/krb5-{admin,install}.html %{?with_doc:doc/{admin,install,krb425}-guide.pdf}
 
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/*
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/kerberos
@@ -828,7 +832,7 @@
 
 %files client
 %defattr(644,root,root,755)
-%doc doc/krb5-user.html doc/user-guide.pdf
+%doc doc/krb5-user.html %{?with_doc:doc/user-guide.pdf}
 %attr(755,root,root) /etc/shrc.d/kerberos.*
 
 %attr(755,root,root) %{_bindir}/kdestroy
@@ -932,7 +936,7 @@
 
 %files devel
 %defattr(644,root,root,755)
-%doc doc/{kadmin,krb5-protocol} doc/{api,implement,kadm5}/*.pdf
+%doc doc/{kadmin,krb5-protocol} %{?with_doc:doc/{api,implement,kadm5}/*.pdf}
 %attr(755,root,root) %{_bindir}/krb5-config
 %attr(755,root,root) %{_libdir}/libdes425.so
 %attr(755,root,root) %{_libdir}/libgss*.so
@@ -960,6 +964,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.121  2009/05/01 19:01:03  areq
+- add --without doc
+
 Revision 1.120  2008/11/17 08:13:04  glen
 - simplify builddir
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/krb5/krb5.spec?r1=1.120&r2=1.121&f=u



More information about the pld-cvs-commit mailing list