]> git.pld-linux.org Git - packages/bzip2.git/commitdiff
- added bcond_without static_libs
authorwitekfl <witekfl@pld-linux.org>
Mon, 20 Aug 2007 19:31:12 +0000 (19:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bzip2.spec -> 1.113

bzip2.spec

index 4bad1fadfee5ab0db2f9c216b6f3133c338c3fd7..3796ae1baaab1c04264a4f54632f94438c650f86 100644 (file)
@@ -2,6 +2,7 @@
 # Conditional build:
 %bcond_with    progress        # with progressbar patch
 %bcond_without doc             # don't build tex documentation
+%bcond_without static_libs     # don't build static libraries
 #
 Summary:       Extremely powerful file compression utility
 Summary(es.UTF-8):     Un compresor de archivos con un nuevo algoritmo
@@ -177,7 +178,8 @@ Bibliotecas estáticas para desenvolvimento com a bzip2.
 %{__automake}
 %{__autoconf}
 %configure \
-       CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
+       CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64" \
+       %{!?with_static_libs:--disable-static}
 %{__make}
 
 %if %{with doc}
@@ -238,6 +240,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/lib*.la
 %{_includedir}/*.h
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
This page took 0.057428 seconds and 4 git commands to generate.