]> git.pld-linux.org Git - packages/file.git/commitdiff
- added bcond_without static_libs
authortwittner <twittner@pld-linux.org>
Fri, 17 Jun 2005 21:03:24 +0000 (21:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    file.spec -> 1.105

file.spec

index d656fc3e8092109c64ba32f3101a6164520988c7..f515878a1601d325273d11bf6b83985ccbda3304 100644 (file)
--- a/file.spec
+++ b/file.spec
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without python  # don't build python-magic module
+%bcond_without static_libs # don't build static libraries
 #
 Summary:       A utility for determining file types
 Summary(cs):   Program pro zji¹»ování typu souborù
@@ -258,7 +259,8 @@ Wi
 %{__autoconf}
 %{__automake}
 %configure \
-       --enable-fsect-man5
+       --enable-fsect-man5 \
+       %{!?with_static_libs:--enable-static=no}
 
 %{__make}
 
@@ -279,7 +281,7 @@ cd python
 python setup.py install \
        --root=$RPM_BUILD_ROOT \
        --optimize=2
-cd ..  
+cd ..
 %endif
 
 install -D magic/magic.local $RPM_BUILD_ROOT%{_sysconfdir}/magic
@@ -330,9 +332,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/magic.h
 %{_mandir}/man3/*
 
+%if %{with static_libs}
 %files -n libmagic-static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
 
 %if %{with python}
 %files -n python-magic
This page took 2.37705 seconds and 4 git commands to generate.