]> git.pld-linux.org Git - packages/libapreq2.git/commitdiff
- added bcond_without static
authorwitekfl <witekfl@pld-linux.org>
Tue, 14 Jun 2005 19:44:53 +0000 (19:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libapreq2.spec -> 1.18

libapreq2.spec

index 97f021af347f65789a653332c74d1bd999e3988e..e2a0de582459e240533d7cda468a160287ecf9ab 100644 (file)
@@ -1,3 +1,4 @@
+%bcond_without static  # don't build static library
 %include       /usr/lib/rpm/macros.perl
 %define        apxs    /usr/sbin/apxs
 Summary:       Apache Request Library
@@ -86,7 +87,8 @@ Perlowe API dla libapreq2 - Apache::Request i Apache::Cookie.
 %{__automake}
 %configure \
        --enable-perl-glue \
-       --with-apache2-apxs=%{apxs}
+       --with-apache2-apxs=%{apxs} \
+       %{!?with_static:--disable-static}
 
 %{__make}
 
@@ -126,9 +128,11 @@ rm -rf $RPM_BUILD_ROOT
 #%{_mandir}/man3/libapreq.3*
 #%{_examplesdir}/%{name}-%{version}
 
+%if %{with static}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/*.a
+%endif
 
 %files -n perl-%{name}
 %defattr(644,root,root,755)
This page took 0.047184 seconds and 4 git commands to generate.