forked from pool/ta-lib
- 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
83 lines
1.8 KiB
RPMSpec
83 lines
1.8 KiB
RPMSpec
Summary: Technical Analysis Library
|
|
Name: ta-lib
|
|
Version: 0.4.0
|
|
Release: 1
|
|
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 libta_lib0
|
|
Summary: Technical Analysis Library
|
|
Group: Development/Libraries
|
|
# O/P added for 12.2. Must be <= until version update.
|
|
Obsoletes: libta0 <= %version
|
|
Provides: libta0 = %version
|
|
|
|
%description -n libta_lib0
|
|
|
|
TA-Lib provides common functions for the technical analysis of stock/future/commodity market data.
|
|
|
|
|
|
%package -n libta-devel
|
|
Summary: Technical Analysis Library
|
|
Group: Development/Libraries
|
|
Requires: libta_lib0 = %{version} glibc-devel
|
|
Provides: %{name}-devel = %{version}
|
|
Obsoletes: %{name}-devel <= %{version}
|
|
|
|
%description -n libta-devel
|
|
|
|
TA-Lib provides common functions for the technical analysis of stock/future/commodity market data.
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}
|
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
|
%if 0%{?suse_version} > 1000
|
|
CFLAGS="$CFLAGS -fstack-protector"
|
|
CXXFLAGS="$CXXFLAGS -fstack-protector"
|
|
%endif
|
|
|
|
export CFLAGS
|
|
export CXXFLAGS
|
|
|
|
autoreconf -fi
|
|
|
|
%configure --with-pic --disable-static --disable-rpath
|
|
|
|
# parallel build not supported
|
|
make -j1
|
|
|
|
%install
|
|
|
|
%{__make} DESTDIR=%{buildroot} install
|
|
rm -f "%buildroot/%_libdir"/*.la
|
|
|
|
%post -n libta_lib0 -p /sbin/ldconfig
|
|
%postun -n libta_lib0 -p /sbin/ldconfig
|
|
|
|
%files -n libta_lib0
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libta_lib.so.0*
|
|
|
|
%files -n libta-devel
|
|
%defattr(-,root,root)
|
|
%{_bindir}/ta-lib-config
|
|
%dir %{_includedir}/ta-lib
|
|
%{_includedir}/ta-lib/*.h
|
|
%{_libdir}/libta_*.so
|
|
|
|
%changelog
|