-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharpack.spec
223 lines (176 loc) · 7.25 KB
/
arpack.spec
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
%global commit b0f7a6008f37f913e97f67c826fc37fa9758f626
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global shortname arpack
%global ver 3.4.0
%?altcc_init
Name: %{shortname}%{?altcc_pkg_suffix}
Version: %{ver}
Release: 1%{dist}
Summary: Fortran 77 subroutines for solving large scale eigenvalue problems
License: BSD
Group: Development/Libraries
URL: https://github.com/opencollab/arpack-ng
#Source0: https://github.com/opencollab/arpack-ng/archive/%{commit}/arpack-ng-%{commit}.tar.gz
Source0: https://github.com/opencollab/arpack-ng/archive/%{version}/arpack-ng-%{version}.tar.gz
Source1: module.in
%if 0%{?altcc}
BuildRequires: gcc-gfortran
BuildRequires: atlas-devel
%endif
BuildRequires: libtool
Provides: arpack-ng = %{version}-%{release}
%?altcc_reqmodules
%?altcc_provide
%description
ARPACK is a collection of Fortran 77 subroutines designed to solve large
scale eigenvalue problems.
The package is designed to compute a few eigenvalues and corresponding
eigenvectors of a general n by n matrix A. It is most appropriate for
large sparse or structured matrices A where structured means that a
matrix-vector product w <- Av requires order n rather than the usual
order n**2 floating point operations. This software is based upon an
algorithmic variant of the Arnoldi process called the Implicitly
Restarted Arnoldi Method (IRAM).
%package devel
Summary: Files needed for developing arpack based applications
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Provides: arpack-ng-devel = %{version}-%{release}
%{?altcc:%altcc_provide devel}
%description devel
ARPACK is a collection of Fortran 77 subroutines designed to solve
large scale eigenvalue problems. This package contains the so
library links used for building arpack based applications.
%package doc
Summary: Examples for the use of arpack
Group: Documentation
%if 0%{?rhel} > 5 || 0%{?fedora}
BuildArch: noarch
%endif
%{?altcc:%altcc_provide doc}
%description doc
This package contains examples for the use of arpack.
%package static
Summary: Static library for developing arpack based applications
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
Provides: arpack-ng-static = %{version}-%{release}
%{?altcc:%altcc_provide static}
%description static
ARPACK is a collection of Fortran 77 subroutines designed to solve
large scale eigenvalue problems. This package contains the static
library and so links used for building arpack based applications.
%prep
%setup -q -n arpack-ng-%{version}
autoreconf -vif
%build
[ -z "$FC" ] && export FC=gfortran
export F77=$FC
%if "%{?altcc_cc_name}" == ""
%if 0%{?fedora} || 0%{?rhel} >= 7
%global atlaslib -L%{_libdir}/atlas -ltatlas
%else
%global atlaslib -L%{_libdir}/atlas -lf77blas -latlas
%endif
%endif
%if "%{?altcc_cc_name}" == "intel"
%global atlaslib -L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -liomp5 -lpthread -lm -ldl
%endif
%configure --enable-shared --enable-static \
--with-blas="%{atlaslib}" \
--with-lapack="%{atlaslib}"
%make_build
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
# Get rid of .la files
rm -r %{buildroot}%{_libdir}/*.la
%{?altcc:%altcc_writemodule %SOURCE1}
%?altcc_doc
%check
# Cannot be parallel with -warn all
# https://github.com/opencollab/arpack-ng/issues/49
make check
pushd EXAMPLES ; make clean ; popd
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{?altcc:%altcc_files -dm %{_libdir}}
%doc CHANGES COPYING
%{_libdir}/libarpack.so.*
%files devel
%{?altcc:%altcc_files %{_libdir}/pkgconfig}
%{_libdir}/pkgconfig/arpack.pc
%{_libdir}/libarpack.so
%files doc
%doc EXAMPLES/ DOCUMENTS/
%{?altcc:%altcc_files -d}
%files static
%{_libdir}/libarpack.a
%changelog
* Thu Sep 29 2016 Orion Poplawski <[email protected]> - 3.4.0-1
- Update to 3.4.0
* Wed Feb 03 2016 Fedora Release Engineering <[email protected]> - 3.3.0-2.b0f7a60git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Mon Oct 19 2015 Dominik Mierzejewski <[email protected]> - 3.3.0-1.b0f7a600git
- Update to 3.3.0
- BR: libtool and call autoreconf
- simplify some conditions
* Mon Sep 21 2015 Susi Lehtola <[email protected]> - 3.2.0-1.8fc8fbe3git
- Update source URL.
- Update to 3.2.0.
* Wed Jun 17 2015 Fedora Release Engineering <[email protected]> - 3.1.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Fri Mar 06 2015 Dominik Mierzejewski <[email protected]> - 3.1.5-1
- update to 3.1.5
- fix source URL
- example binary is no longer installed by default
- enable tests
- don't duplicate documentation and examples in -devel
- clean binaries in EXAMPLES after running testsuite
* Fri Aug 15 2014 Fedora Release Engineering <[email protected]> - 3.1.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <[email protected]> - 3.1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Sep 21 2013 Orion Poplawski <[email protected]> - 3.1.3-2
- Rebuild for atlas 3.10 using threaded library
* Thu Sep 05 2013 Susi Lehtola <[email protected]> - 3.1.3-1
- Update to 3.1.3.
* Sat Aug 03 2013 Fedora Release Engineering <[email protected]> - 3.0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Feb 13 2013 Fedora Release Engineering <[email protected]> - 3.0.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Wed Jul 18 2012 Fedora Release Engineering <[email protected]> - 3.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu Jan 12 2012 Fedora Release Engineering <[email protected]> - 3.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Dec 13 2011 Jussi Lehtola <[email protected]> - 3.0.1-1
- Change sources to arpack-ng, which provides an up-to-date version of ARPACK.
- Include examples and documentation in a new -doc package.
* Mon Feb 07 2011 Fedora Release Engineering <[email protected]> - 2.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Jul 7 2010 Jussi Lehtola <[email protected]> - 2.1-12
- Bump spec to fix update path.
* Wed Apr 7 2010 Axel Thimm <[email protected]> - 2.1-11
- Change license to BSD (see RH bugs #234191 and #578873).
* Wed Sep 24 2008 Dominik 'Rathann' Mierzejewski <[email protected]> 2.1-10
- fix libarpack.so: undefined reference to `etime_' with recent gfortran
* Mon Aug 25 2008 Axel Thimm <[email protected]> - 2.1-9
- Patch0 and %%patch make recent rpm silenty fail.
* Wed May 21 2008 Tom "spot" Callaway <[email protected]> 2.1-8
- fix license tag
* Wed Oct 24 2007 Dominik 'Rathann' Mierzejewski <[email protected]> 2.1-7
- apply Frederic Hecht's patch for eigenvalue bug
- move static libs to separate package
* Mon Mar 26 2007 Axel Thimm <[email protected]> - 2.1-6
- Add license and clarification note
- Add lapack support
* Thu Nov 9 2006 Axel Thimm <[email protected]> - 2.1-4
- Freshen up for submitting to fedora extras.
- Fix permissions of so file.
- Add forgotten ldconfig
- Remove dot from summaries.
* Wed Jul 16 2003 Axel Thimm <[email protected]>
- Initial build.