]> git.pld-linux.org Git - packages/ktoblzcheck.git/commitdiff
- updated to 1.48 auto/th/ktoblzcheck-1.48-1
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 7 Feb 2017 20:16:56 +0000 (21:16 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 7 Feb 2017 20:16:56 +0000 (21:16 +0100)
ktoblzcheck.spec

index 360843e38d4d7a68fea81e648dad2ed54b9b9e0f..ca9cdedf75d17cf7b62c59143fc4db421ad08bcb 100644 (file)
@@ -1,12 +1,16 @@
+#
+# Conditional build:
+%bcond_without static_libs     # static library
+#
 Summary:       A library to check account numbers and bank codes of German banks
 Summary(pl.UTF-8):     Biblioteka do sprawdzania numerów kont i kodów bankowych niemieckich banków
 Name:          ktoblzcheck
-Version:       1.45
-Release:       3
+Version:       1.48
+Release:       1
 License:       LGPL v2+
 Group:         Libraries
 Source0:       http://downloads.sourceforge.net/ktoblzcheck/%{name}-%{version}.tar.gz
-# Source0-md5: 80719a2920a40c6a01fa2a70ecc23e48
+# Source0-md5: 6f56c83a649cbdaf1aad3e04a7b7a8ce
 URL:           http://ktoblzcheck.sourceforge.net/
 BuildRequires: libstdc++-devel
 BuildRequires: python-devel >= 1:2.5
@@ -61,8 +65,7 @@ Summary:      Python binding for KtoBLZCheck library
 Summary(pl.UTF-8):     Wiązanie Pythona dla biblioteki KtoBLZCheck
 Group:         Development/Languages/Python
 Requires:      %{name} = %{version}-%{release}
-# for python-ctypes (>= 1:2.5 already forced by BR + _eq below)
-%pyrequires_eq python-modules
+Requires:      python-modules >= 1:2.5
 
 %description -n python-ktoblzcheck
 Python binding for KtoBLZCheck library.
@@ -76,7 +79,7 @@ Wiązanie Pythona dla biblioteki KtoBLZCheck.
 %build
 %configure \
        --enable-python \
-       --enable-static
+       %{?with_static_libs:--enable-static}
 %{__make}
 
 %install
@@ -85,6 +88,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libktoblzcheck.la
+
 %py_postclean
 
 %clean
@@ -107,14 +113,15 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libktoblzcheck.so
-%{_libdir}/libktoblzcheck.la
 %{_includedir}/iban.h
 %{_includedir}/ktoblzcheck.h
 %{_pkgconfigdir}/ktoblzcheck.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libktoblzcheck.a
+%endif
 
 %files -n python-ktoblzcheck
 %defattr(644,root,root,755)
This page took 0.135151 seconds and 4 git commands to generate.