]> git.pld-linux.org Git - packages/bzip2.git/commitdiff
- added without doc bcond
authorsparky <sparky@pld-linux.org>
Fri, 28 Apr 2006 19:29:48 +0000 (19:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bzip2.spec -> 1.105

bzip2.spec

index eb2ff99a01dc18e3c3c87f0f837fb8d32a5187e5..9f414190386ffb3b50e2153390c0347e273f1f85 100644 (file)
@@ -1,6 +1,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
@@ -28,7 +29,7 @@ BuildRequires:        autoconf
 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)
 
@@ -178,9 +179,12 @@ Bibliotecas est
 %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
@@ -213,7 +217,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %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/*
This page took 0.213003 seconds and 4 git commands to generate.