]> git.pld-linux.org Git - packages/libpst.git/commitdiff
- up to 0.6.48, static_libs bcond
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 3 Sep 2010 09:28:37 +0000 (09:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libpst.spec -> 1.16

libpst.spec

index 525195d23dabb24d4ff6d138fcf61c009efd6f4a..322ca831e0cbfb716ecca72c9abb3b4ebe7aad1b 100644 (file)
@@ -1,12 +1,16 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static libraries
+
 Summary:       Library for reading .pst files
 Summary(pl.UTF-8):     Biblioteka do czytania plików .pst
 Name:          libpst
-Version:       0.6.47
+Version:       0.6.48
 Release:       1
 License:       GPL v2+
 Group:         Libraries
 Source0:       http://www.five-ten-sg.com/libpst/packages/%{name}-%{version}.tar.gz
-# Source0-md5: 72e49f127ca1fff888d5a262e7a60d4e
+# Source0-md5: cb121951c21bc1c76b652e0f63c5f150
 Patch0:                %{name}-m4.patch
 URL:           http://www.five-ten-sg.com/libpst/
 BuildRequires: ImageMagick
@@ -87,6 +91,7 @@ Wiązania libpst dla Pythona.
 %{__autoheader}
 %{__automake}
 %configure \
+       %{!?with_static_libs:--disable-static} \
        --enable-dii \
        --enable-libpst-shared
 
@@ -99,7 +104,7 @@ install -d $RPM_BUILD_ROOT%{py_sitedir}
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-install python/.libs/_libpst.so $RPM_BUILD_ROOT%{py_sitedir}
+rm -f $RPM_BUILD_ROOT%{py_sitedir}/_libpst.{a,la}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -120,9 +125,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/libpst-4
 %{_pkgconfigdir}/libpst.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libpst.a
+%endif
 
 %files tools
 %defattr(644,root,root,755)
This page took 0.049086 seconds and 4 git commands to generate.