SPECS: pykota.spec - added without_doc bcond
baggins
baggins at pld-linux.org
Tue Dec 11 18:23:12 CET 2007
Author: baggins Date: Tue Dec 11 17:23:11 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added without_doc bcond
---- Files affected:
SPECS:
pykota.spec (1.41 -> 1.42)
---- Diffs:
================================================================
Index: SPECS/pykota.spec
diff -u SPECS/pykota.spec:1.41 SPECS/pykota.spec:1.42
--- SPECS/pykota.spec:1.41 Tue Dec 11 18:13:14 2007
+++ SPECS/pykota.spec Tue Dec 11 18:23:06 2007
@@ -5,6 +5,9 @@
# - CGI scripts must be run with uid/gid pykota/pykota privs
# - that's why they're placed in /home/services/httpd/cgi-bin (suexec req)
#
+# Conditional build:
+%bcond_without doc # don't build HTML/PDF documentation
+
Name: pykota
Summary: Print Quota and Accounting Software Solution
Summary(pl.UTF-8): Narzędzie do limitowania i rozliczania wydruków
@@ -20,14 +23,16 @@
Patch0: %{name}-conf.patch
Patch1: %{name}-css.patch
URL: http://www.pykota.com/
+%if %{with doc}
BuildRequires: docbook-utils
BuildRequires: docbook-dtd41-sgml
-BuildRequires: sqlite3
BuildRequires: tetex-fonts-pazo
BuildRequires: tetex-fonts-type1-urw
BuildRequires: tetex-fonts-jknappen
BuildRequires: tetex-fonts-stmaryrd
BuildRequires: tetex-latex-cyrillic
+%endif
+BuildRequires: sqlite3
Requires: cups >= 1:1.2.0
Requires: ghostscript
Requires: python-chardet
@@ -175,10 +180,12 @@
%build
python setup.py build
+%if %{with doc}
cd docs
mkdir html
docbook2html -o html pykota.sgml
docbook2pdf pykota.sgml
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -250,7 +257,8 @@
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc CREDITS FAQ LICENSE README SECURITY TODO
-%doc openoffice qa-assistant docs/*.sxi docs/*.pdf docs/html
+%doc openoffice qa-assistant docs/*.sxi
+%{?with_doc:%doc docs/*.pdf docs/html}
%attr(750,lp,pykota) %dir %{_sysconfdir}/%{name}
%attr(640,lp,pykota) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/pykota.conf
%attr(640,lp,pykota) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/pykotadmin.conf
@@ -338,6 +346,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.42 2007-12-11 17:23:06 baggins
+- added without_doc bcond
+
Revision 1.41 2007-12-11 17:13:14 baggins
- hopefully all tetex BRs
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/pykota.spec?r1=1.41&r2=1.42&f=u
More information about the pld-cvs-commit
mailing list