From 26eaef1ce51c11d051a280b06b83f06ee0f2e3f8f367b39cc2a37660f35e3bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Sun, 29 Jan 2012 13:34:30 +0000 Subject: [PATCH] Accepting request 101945 from home:jengelh:branches:devel:libraries:c_c++ - Use shlib name rpmlint wants - Add explicit autotools buildrequires for factory/12.2 OBS-URL: https://build.opensuse.org/request/show/101945 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/ta-lib?expand=0&rev=7 --- ta-lib.changes | 6 ++++++ ta-lib.spec | 22 ++++++++++++---------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/ta-lib.changes b/ta-lib.changes index b9dbf88..04f8727 100644 --- a/ta-lib.changes +++ b/ta-lib.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jan 29 12:31:26 UTC 2012 - jengelh@medozas.de + +- Use shlib name rpmlint wants +- Add explicit autotools buildrequires for factory/12.2 + ------------------------------------------------------------------- Sun Jan 29 01:36:22 UTC 2012 - jengelh@medozas.de diff --git a/ta-lib.spec b/ta-lib.spec index d067751..e0b47a0 100644 --- a/ta-lib.spec +++ b/ta-lib.spec @@ -6,19 +6,21 @@ License: BSD Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: %{name}-%{version}-src.tar.bz2 +BuildRequires: autoconf >= 2.59 automake libtool %description TA-Lib provides common functions for the technical analysis of stock/future/commodity market data. -%package -n libta0 +%package -n libta_lib0 Summary: Technical Analysis Library Group: Development/Libraries -Provides: %{name} = %{version} -Obsoletes: %{name} <= %{version} +# O/P added for 12.2. Must be <= until version update. +Obsoletes: libta0 <= %version +Provides: libta0 = %version -%description -n libta0 +%description -n libta_lib0 TA-Lib provides common functions for the technical analysis of stock/future/commodity market data. @@ -26,7 +28,7 @@ TA-Lib provides common functions for the technical analysis of stock/future/comm %package -n libta-devel Summary: Technical Analysis Library Group: Development/Libraries -Requires: libta0 = %{version} glibc-devel +Requires: libta_lib0 = %{version} glibc-devel Provides: %{name}-devel = %{version} Obsoletes: %{name}-devel <= %{version} @@ -61,13 +63,14 @@ make -j1 %install %{__make} DESTDIR=%{buildroot} install +rm -f "%buildroot/%_libdir"/*.la -%post -n libta0 -p /sbin/ldconfig -%postun -n libta0 -p /sbin/ldconfig +%post -n libta_lib0 -p /sbin/ldconfig +%postun -n libta_lib0 -p /sbin/ldconfig -%files -n libta0 +%files -n libta_lib0 %defattr(-,root,root) -%{_libdir}/libta_*.so.0* +%{_libdir}/libta_lib.so.0* %files -n libta-devel %defattr(-,root,root) @@ -75,6 +78,5 @@ make -j1 %dir %{_includedir}/ta-lib %{_includedir}/ta-lib/*.h %{_libdir}/libta_*.so -%exclude %{_libdir}/*.la %changelog