forked from pool/ta-lib
91 lines
1.9 KiB
RPMSpec
91 lines
1.9 KiB
RPMSpec
|
|
#norootforbuild
|
||
|
|
Summary: Technical Analysis Library
|
||
|
|
Name: ta-lib
|
||
|
|
Version: 0.3.0
|
||
|
|
Release: 1
|
||
|
|
License: BSD
|
||
|
|
Group: Development/Libraries
|
||
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
Source : %{name}-%{version}-src.tar.bz2
|
||
|
|
|
||
|
|
%description
|
||
|
|
|
||
|
|
TA-Lib provides common functions for the technical analysis of stock/future/commodity market data.
|
||
|
|
|
||
|
|
|
||
|
|
%package -n libta0
|
||
|
|
Summary: Technical Analysis Library
|
||
|
|
Group: Development/Libraries
|
||
|
|
Provides: %{name} = %{version}
|
||
|
|
Obsoletes: %{name} <= %{version}
|
||
|
|
|
||
|
|
%description -n libta0
|
||
|
|
|
||
|
|
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: libta0 = %{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
|
||
|
|
|
||
|
|
#aclocal --force
|
||
|
|
#autoheader --force
|
||
|
|
#libtoolize --copy --force
|
||
|
|
#automake -a -c --force
|
||
|
|
#autoconf --force
|
||
|
|
|
||
|
|
autoreconf -fi
|
||
|
|
|
||
|
|
%configure --with-pic --disable-static --disable-rpath
|
||
|
|
|
||
|
|
%{__make} %{?jobs:-j%jobs}
|
||
|
|
|
||
|
|
%install
|
||
|
|
|
||
|
|
%{__make} DESTDIR=%{buildroot} install
|
||
|
|
|
||
|
|
%post -n libta0 -p /sbin/ldconfig
|
||
|
|
%postun -n libta0 -p /sbin/ldconfig
|
||
|
|
|
||
|
|
%files -n libta0
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%{_libdir}/libta_*.so.0*
|
||
|
|
|
||
|
|
%files -n libta-devel
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%{_bindir}/ta-lib-config
|
||
|
|
%dir %{_includedir}/ta-lib
|
||
|
|
%{_includedir}/ta-lib/ta_abstract.h
|
||
|
|
%{_includedir}/ta-lib/ta_common.h
|
||
|
|
%{_includedir}/ta-lib/ta_defs.h
|
||
|
|
%{_includedir}/ta-lib/ta_func.h
|
||
|
|
%{_includedir}/ta-lib/ta_libc.h
|
||
|
|
%{_libdir}/libta_*.so
|
||
|
|
%exclude %{_libdir}/*.la
|
||
|
|
|
||
|
|
%changelog
|