]> git.pld-linux.org Git - packages/zziplib.git/commitdiff
- without docs bcond
authorJacek Konieczny <jajcus@pld-linux.org>
Sun, 21 Dec 2003 18:59:14 +0000 (18:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    zziplib.spec -> 1.11

zziplib.spec

index d25c9de5f3aa92186f62addd3cca6675d0787d8f..a49a6a18575f43f77ac1657008d3ee471870510a 100644 (file)
@@ -1,3 +1,6 @@
+
+%bcond_without docs    # - build witout documentation
+
 Summary:       ZZipLib - libZ-based ZIP-access Library
 Summary(pl):   ZZipLib - biblioteka dostêpu do archiwów ZIP
 Name:          zziplib
@@ -72,7 +75,9 @@ Statyczna biblioteka ZZipLib.
 %configure
 
 %{__make}
+%if %{with docs}
 %{__make} doc
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -80,10 +85,12 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%if %{with docs}
 %{__make} install-man3 -C docs \
        DESTDIR=$RPM_BUILD_ROOT
 
 rm -f docs/zziplib[012].html
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -99,12 +106,16 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
+%if %{with docs}
 %doc docs/*.html
+%endif
 %attr(755,root,root) %{_bindir}/zzip-config
 %attr(755,root,root) %{_libdir}/lib*.so
 %{_libdir}/lib*.la
 %{_includedir}/*
+%if %{with docs}
 %{_mandir}/man3/*.3*
+%endif
 
 %files static
 %defattr(644,root,root,755)
This page took 0.039884 seconds and 4 git commands to generate.