SPECS: bzip2.spec - added without doc bcond
sparky
sparky at pld-linux.org
Fri Apr 28 21:29:54 CEST 2006
Author: sparky Date: Fri Apr 28 19:29:54 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added without doc bcond
---- Files affected:
SPECS:
bzip2.spec (1.104 -> 1.105)
---- Diffs:
================================================================
Index: SPECS/bzip2.spec
diff -u SPECS/bzip2.spec:1.104 SPECS/bzip2.spec:1.105
--- SPECS/bzip2.spec:1.104 Tue Nov 22 19:12:16 2005
+++ SPECS/bzip2.spec Fri Apr 28 21:29:48 2006
@@ -2,6 +2,7 @@
#
# Conditional build:
%bcond_with progress # with progressbar patch
+%bcond_without doc # don't build tex documentation
#
Summary: Extremely powerful file compression utility
Summary(es): Un compresor de archivos con un nuevo algoritmo
@@ -29,7 +30,7 @@
BuildRequires: automake
BuildRequires: libtool
BuildRequires: rpmbuild(macros) >= 1.213
-BuildRequires: tetex
+%{?with_doc:BuildRequires: tetex}
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -179,9 +180,12 @@
%configure \
CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
%{__make}
+
+%if %{with doc}
cd doc
/usr/bin/texi2html bzip2.texi
cd ..
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -214,7 +218,7 @@
%files
%defattr(644,root,root,755)
-%doc CHANGES LICENSE README* Y2K_INFO doc/*.html
+%doc CHANGES LICENSE README* Y2K_INFO %{?with_doc:doc/*.html}
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/*
%lang(es) %{_mandir}/es/man1/*
@@ -245,6 +249,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.105 2006/04/28 19:29:48 sparky
+- added without doc bcond
+
Revision 1.104 2005/11/22 18:12:16 glen
- fix -libs group; rel 4
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/bzip2.spec?r1=1.104&r2=1.105&f=u
More information about the pld-cvs-commit
mailing list