forked from TA-Lib/ta-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathta-lib.spec.in
70 lines (54 loc) · 1.71 KB
/
ta-lib.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# List of contributors:
#
# Initial Name/description
# -------------------------------------------------------------------
# MW Michael Williamson
# JS John Sheehy <[email protected]>
# MF Mario Fortier
# Change history:
# MMDDYY BY Description
# -------------------------------------------------------------------
# 082104 MW Initial Version
# 012908 JS Enhancement + add x86_64 support
# 011024 MF Change source to Github, add URL
%define ta_ver 0.6.4
Summary: Technical Analysis Library
Name: ta-lib
Version: %{ta_ver}
Release: 1
License: BSD
Group: Development/Libraries
URL: https://github.com/ta-lib/ta-lib
Source: https://github.com/ta-lib/ta-lib/releases/download/v%{ta_ver}/ta-lib-%{ta_ver}-src.tar.gz
Prefix: /usr
Buildroot: %{_tmppath}/%{name}-%{version}
%description
TA-Lib provides common functions for the technical analysis of
stock/future/commodity market data.
TA-Lib is intended for software developers looking to add technical
analysis functionality to their application. It is a library of more than
150 functions that can be integrated in your application. It is not an
application by itself.
%prep
%setup -n %{name}
%build
./autogen.sh
%ifarch x86_64
CFLAGS="-g0 -O2 -pipe" ./configure --prefix=%{prefix} --libdir=%{prefix}/lib64
%else
CFLAGS="-g0 -O2 -pipe" ./configure --prefix=%{prefix}
%endif
make
%install
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
make DESTDIR=${RPM_BUILD_ROOT} install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
%{prefix}/bin/*
%{prefix}/lib/*
%{prefix}/include/*
%{prefix}/share/*