]> git.pld-linux.org Git - packages/epeg.git/commitdiff
- bcond static_libs
authorKarol Krenski <charles@pld-linux.org>
Wed, 30 Nov 2005 14:00:55 +0000 (14:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    epeg.spec -> 1.8

epeg.spec

index f1c9ed563fa77bedc6033a492ed7a92f77b53816..3f1a74b23bdaed570df1f8530773c9238c7ba82e 100644 (file)
--- a/epeg.spec
+++ b/epeg.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static library
+#
 Summary:       JPEG Scaling Library
 Summary(pl):   Biblioteka do skalowania JPEG-ów
 Name:          epeg
@@ -67,7 +71,8 @@ Statyczna biblioteka Epeg.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       %{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -98,6 +103,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libepeg.la
 %{_includedir}/Epeg*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libepeg.a
+%endif
This page took 0.05656 seconds and 4 git commands to generate.