2021-02-13 09:01:12 +00:00
|
|
|
#
|
|
|
|
# spec file for package ta-lib
|
|
|
|
#
|
|
|
|
# Copyright (c) 2021 SUSE LLC
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ta-lib
|
|
|
|
Version: 0.4.0
|
|
|
|
Release: 0
|
|
|
|
Summary: Technical Analysis Library
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
URL: https://ta-lib.org/
|
|
|
|
Source: %{name}-%{version}-src.tar.bz2
|
|
|
|
BuildRequires: autoconf >= 2.59
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2007-12-23 19:22:03 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
|
|
TA-Lib provides common functions for the technical analysis of stock/future/commodity market data.
|
|
|
|
|
2012-01-29 13:34:30 +00:00
|
|
|
%package -n libta_lib0
|
2021-02-13 09:01:12 +00:00
|
|
|
Summary: Technical Analysis Library
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-01-29 13:34:30 +00:00
|
|
|
# O/P added for 12.2. Must be <= until version update.
|
2021-02-13 09:01:12 +00:00
|
|
|
Obsoletes: libta0 < %{version}
|
|
|
|
Provides: libta0 = %{version}
|
2007-12-23 19:22:03 +00:00
|
|
|
|
2012-01-29 13:34:30 +00:00
|
|
|
%description -n libta_lib0
|
2007-12-23 19:22:03 +00:00
|
|
|
|
|
|
|
TA-Lib provides common functions for the technical analysis of stock/future/commodity market data.
|
|
|
|
|
|
|
|
%package -n libta-devel
|
2021-02-13 09:01:12 +00:00
|
|
|
Summary: Technical Analysis Library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libta_lib0 = %{version}
|
|
|
|
Provides: %{name}-devel = %{version}
|
|
|
|
Obsoletes: %{name}-devel < %{version}
|
2007-12-23 19:22:03 +00:00
|
|
|
|
2021-02-13 09:01:12 +00:00
|
|
|
%description -n libta-devel
|
2007-12-23 19:22:03 +00:00
|
|
|
|
|
|
|
TA-Lib provides common functions for the technical analysis of stock/future/commodity market data.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
2021-02-13 09:01:12 +00:00
|
|
|
%setup -q -n %{name}
|
2007-12-23 19:22:03 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2012-01-29 01:42:37 +00:00
|
|
|
# parallel build not supported
|
2021-02-13 09:01:12 +00:00
|
|
|
%make_build -j1
|
2007-12-23 19:22:03 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
|
2021-02-13 09:01:12 +00:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-12-23 19:22:03 +00:00
|
|
|
|
2012-01-29 13:34:30 +00:00
|
|
|
%post -n libta_lib0 -p /sbin/ldconfig
|
|
|
|
%postun -n libta_lib0 -p /sbin/ldconfig
|
2007-12-23 19:22:03 +00:00
|
|
|
|
2012-01-29 13:34:30 +00:00
|
|
|
%files -n libta_lib0
|
|
|
|
%{_libdir}/libta_lib.so.0*
|
2007-12-23 19:22:03 +00:00
|
|
|
|
|
|
|
%files -n libta-devel
|
|
|
|
%{_bindir}/ta-lib-config
|
|
|
|
%dir %{_includedir}/ta-lib
|
2008-01-02 07:26:41 +00:00
|
|
|
%{_includedir}/ta-lib/*.h
|
2007-12-23 19:22:03 +00:00
|
|
|
%{_libdir}/libta_*.so
|
|
|
|
|
|
|
|
%changelog
|