1 | # From src/version.h:#define OCTAVE_API_VERSION |
---|
2 | %global octave_api api-v53 |
---|
3 | |
---|
4 | %global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d) |
---|
5 | |
---|
6 | %define pkg_name octave |
---|
7 | %define pkg_version 5.1.0 |
---|
8 | %define pkg_release 3%{?_dist_release} |
---|
9 | |
---|
10 | Summary: GNU Octave -- a high-level language for numerical computations |
---|
11 | Summary(ja): 数値計算のための高級言語 |
---|
12 | Name: %{pkg_name} |
---|
13 | Version: %{pkg_version} |
---|
14 | Release: %{pkg_release} |
---|
15 | |
---|
16 | License: GPLv3 |
---|
17 | Group: Applications/Edutainment |
---|
18 | URL: http://www.gnu.org/software/octave/ |
---|
19 | |
---|
20 | Source0: ftp://ftp.octave.org/gnu/octave/%{name}-%{version}.tar.lz |
---|
21 | |
---|
22 | # RPM macros for helping to build Octave packages |
---|
23 | Source1: macros.octave |
---|
24 | |
---|
25 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
26 | |
---|
27 | BuildRequires: gcc-gfortran |
---|
28 | BuildRequires: bison flex gperf texinfo less |
---|
29 | BuildRequires: gnuplot |
---|
30 | BuildRequires: ghostscript-devel |
---|
31 | BuildRequires: mesa-libOSMesa-devel |
---|
32 | %if %{?_dist_release} == "vl6" |
---|
33 | BuildRequires: arpack |
---|
34 | BuildRequires: blas-devel lapack-devel |
---|
35 | %endif |
---|
36 | %if %{?_dist_release} >= "vl7" |
---|
37 | BuildRequires: arpack-devel |
---|
38 | BuildRequires: openblas-devel |
---|
39 | %endif |
---|
40 | BuildRequires: pcre-devel |
---|
41 | BuildRequires: readline-devel |
---|
42 | BuildRequires: curl-devel |
---|
43 | BuildRequires: fftw3-devel |
---|
44 | BuildRequires: fontconfig-devel |
---|
45 | BuildRequires: freetype-devel |
---|
46 | BuildRequires: glpk-devel |
---|
47 | BuildRequires: GraphicsMagick-c++-devel |
---|
48 | BuildRequires: hdf5-devel |
---|
49 | BuildRequires: java-devel |
---|
50 | BuildRequires: qhull-devel |
---|
51 | BuildRequires: qrupdate |
---|
52 | BuildRequires: suitesparse-devel |
---|
53 | BuildRequires: zlib-devel |
---|
54 | BuildRequires: xz-devel |
---|
55 | BuildRequires: libtool-ltdl-devel |
---|
56 | BuildRequires: libXext-devel |
---|
57 | BuildRequires: openssl-devel |
---|
58 | BuildRequires: desktop-file-utils |
---|
59 | BuildRequires: freeglut-devel |
---|
60 | BuildRequires: fltk-devel |
---|
61 | BuildRequires: gl2ps-devel |
---|
62 | %if %{?_dist_release} == "vl6" |
---|
63 | BuildRequires: qt4-devel |
---|
64 | BuildRequires: qscintilla-devel |
---|
65 | %endif |
---|
66 | %if %{?_dist_release} >= "vl7" |
---|
67 | BuildRequires: qt5-qtbase-devel |
---|
68 | BuildRequires: qt5-qttools-devel |
---|
69 | %endif |
---|
70 | BuildRequires: portaudio-devel |
---|
71 | BuildRequires: libsndfile-devel |
---|
72 | BuildRequires: lzip |
---|
73 | |
---|
74 | Requires: ghostscript |
---|
75 | %if %{?_dist_release} == "vl6" |
---|
76 | Requires: blas lapack |
---|
77 | %endif |
---|
78 | %if %{?_dist_release} >= "vl7" |
---|
79 | Requires: openblas |
---|
80 | %endif |
---|
81 | Requires: pcre |
---|
82 | Requires: readline |
---|
83 | Requires: mesa-libOSMesa |
---|
84 | Requires: gnuplot |
---|
85 | Requires: arpack |
---|
86 | Requires: curl |
---|
87 | Requires: fftw3 |
---|
88 | Requires: fontconfig |
---|
89 | Requires: freetype |
---|
90 | Requires: glpk |
---|
91 | Requires: GraphicsMagick-c++ |
---|
92 | Requires: hdf5 |
---|
93 | Requires: libqhull |
---|
94 | Requires: qrupdate |
---|
95 | Requires: suitesparse |
---|
96 | Requires: zlib |
---|
97 | Requires: openssl |
---|
98 | Requires: pstoedit epstool transfig |
---|
99 | Requires: freeglut |
---|
100 | Requires: fltk |
---|
101 | Requires: gl2ps |
---|
102 | %if %{?_dist_release} == "vl6" |
---|
103 | Requires: qt4 |
---|
104 | Requires: qscintilla |
---|
105 | %endif |
---|
106 | %if %{?_dist_release} >= "vl7" |
---|
107 | Requires: qt5-qtbase |
---|
108 | Requires: qt5-qttools-libs-help |
---|
109 | %endif |
---|
110 | Requires: portaudio |
---|
111 | Requires: libsndfile |
---|
112 | |
---|
113 | Requires(post): /sbin/install-info |
---|
114 | Requires(postun): /sbin/ldconfig |
---|
115 | Requires(post): /sbin/ldconfig |
---|
116 | Requires(preun): /sbin/install-info |
---|
117 | |
---|
118 | Provides: octave(api) = %{octave_api} |
---|
119 | |
---|
120 | Vendor: Project Vine |
---|
121 | Distribution: Vine Linux |
---|
122 | Packager: ara_t |
---|
123 | |
---|
124 | |
---|
125 | %description |
---|
126 | GNU Octave is a high-level language, primarily intended for numerical |
---|
127 | computations. It provides a convenient command line interface for |
---|
128 | solving linear and nonlinear problems numerically, and for performing |
---|
129 | other numerical experiments using a language that is mostly compatible |
---|
130 | with Matlab. It may also be used as a batch-oriented language. |
---|
131 | |
---|
132 | Octave has extensive tools for solving common numerical linear algebra |
---|
133 | problems, finding the roots of nonlinear equations, integrating |
---|
134 | ordinary functions, manipulating polynomials, and integrating ordinary |
---|
135 | differential and differential-algebraic equations. It is easily |
---|
136 | extensible and customizable via user-defined functions written in |
---|
137 | Octave's own language, or using dynamically loaded modules written in |
---|
138 | C++, C, Fortran, or other languages. |
---|
139 | # ' |
---|
140 | |
---|
141 | %description -l ja |
---|
142 | GNU Octave は数値計算用に開発の始められた高級言語です。線形問題や非線形 |
---|
143 | 問題を数値的に解いたり、その他のMatlab と互換性の高い言語を用いた数値計算 |
---|
144 | を行うための使いやすいコマンドライン・インタフェースを備えています。 |
---|
145 | バッチ指向言語としても使うこともできます。Octave は多機能なツールで、 |
---|
146 | 一般的な線形幾何の問題の数値解や、通常の関数の積分・微分、多項式の操作等を |
---|
147 | 行うことができます。 |
---|
148 | Octave の言語でユーザが関数を定義したり、C++, C, Fortran その他の言語で |
---|
149 | 書いた動的ライブラリを用いて容易に拡張やカスタマイズを行うことができます。 |
---|
150 | |
---|
151 | (注意) |
---|
152 | デフォルトではグラフの描画にOpenGL/fltkを使用してます。 |
---|
153 | もし不安定な場合には、 |
---|
154 | gnuplotをデフォルトとするために ~/.octaverc に |
---|
155 | graphics_toolkit("gnuplot"); |
---|
156 | を追加してから起動して下さい。 |
---|
157 | |
---|
158 | |
---|
159 | %prep |
---|
160 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
161 | %setup -q |
---|
162 | |
---|
163 | %build |
---|
164 | %{configure} \ |
---|
165 | CPPFLAGS="-I%{_includedir}/pcre" \ |
---|
166 | --with-x \ |
---|
167 | --with-magick=GraphicsMagick \ |
---|
168 | --with-curl-includedir=%{_includedir}/curl \ |
---|
169 | --with-glpk-includedir=%{_includedir}/glpk \ |
---|
170 | --with-qhull-includedir=%{_includedir}/libqhull \ |
---|
171 | --with-amd-includedir=%{_includedir}/suitesparse \ |
---|
172 | --with-camd-includedir=%{_includedir}/suitesparse \ |
---|
173 | --with-colamd-includedir=%{_includedir}/suitesparse \ |
---|
174 | --with-ccolamd-includedir=%{_includedir}/suitesparse \ |
---|
175 | --with-cholmod-includedir=%{_includedir}/suitesparse \ |
---|
176 | --with-cxsparse-includedir=%{_includedir}/suitesparse \ |
---|
177 | --with-umfpack-includedir=%{_includedir}/suitesparse \ |
---|
178 | --enable-java \ |
---|
179 | --with-qt=5 |
---|
180 | |
---|
181 | # Check that octave_api is set correctly (autogenerated file) |
---|
182 | make liboctave/version.h |
---|
183 | if ! grep -q '^#define OCTAVE_API_VERSION "%{octave_api}"' liboctave/version.h |
---|
184 | then |
---|
185 | echo "octave_api variable in spec does not match liboctave/version.h" |
---|
186 | exit 1 |
---|
187 | fi |
---|
188 | |
---|
189 | %{__make} %{?_smp_mflags} |
---|
190 | |
---|
191 | |
---|
192 | %install |
---|
193 | %{make_install} |
---|
194 | |
---|
195 | find %{buildroot} -name "*.oct" | xargs strip |
---|
196 | |
---|
197 | # Make library links |
---|
198 | %{__mkdir_p} ${RPM_BUILD_ROOT}/etc/ld.so.conf.d |
---|
199 | echo "%{_libdir}/octave-%{version}" > \ |
---|
200 | ${RPM_BUILD_ROOT}/etc/ld.so.conf.d/octave-%{_arch}.conf |
---|
201 | |
---|
202 | # Remove RPM_BUILD_ROOT from ls-R files |
---|
203 | %{__perl} -pi -e "s,%{buildroot},," ${RPM_BUILD_ROOT}%{_libdir}/%{name}/ls-R |
---|
204 | %{__perl} -pi -e "s,%{buildroot},," ${RPM_BUILD_ROOT}%{_datadir}/%{name}/ls-R |
---|
205 | # Make sure ls-R exists |
---|
206 | touch ${RPM_BUILD_ROOT}%{_datadir}/%{name}/ls-R |
---|
207 | |
---|
208 | # Create directories for add-on packages |
---|
209 | HOST_TYPE=`%{buildroot}%{_bindir}/octave-config -p CANONICAL_HOST_TYPE` |
---|
210 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_libdir}/%{name}/site/oct/%{octave_api}/$HOST_TYPE |
---|
211 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_libdir}/%{name}/site/oct/$HOST_TYPE |
---|
212 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/%{name}/packages |
---|
213 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_libdir}/%{name}/packages |
---|
214 | touch ${RPM_BUILD_ROOT}%{_datadir}/%{name}/octave_packages |
---|
215 | |
---|
216 | # desktop file |
---|
217 | %{__perl} -pi -e s/"Education;Science;Math;"/"Education;Science;"/g \ |
---|
218 | ${RPM_BUILD_ROOT}%{_datadir}/applications/org.octave.Octave.desktop |
---|
219 | |
---|
220 | # rpm macros |
---|
221 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{macrosdir} |
---|
222 | cp -p %{SOURCE1} ${RPM_BUILD_ROOT}%{macrosdir} |
---|
223 | |
---|
224 | |
---|
225 | %check |
---|
226 | %{__make} %{?_smp_mflags} check |
---|
227 | |
---|
228 | %clean |
---|
229 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
230 | |
---|
231 | |
---|
232 | %post -p %{_syssbindir}/ldconfig |
---|
233 | |
---|
234 | %postun -p %{_syssbindir}/ldconfig |
---|
235 | |
---|
236 | |
---|
237 | %files |
---|
238 | %defattr(-,root,root) |
---|
239 | %license COPYING |
---|
240 | %doc AUTHORS BUGS CITATION ChangeLog NEWS README |
---|
241 | %doc examples doc/interpreter/octave.pdf doc/refcard |
---|
242 | # FIXME: Create an -emacs package that has the emacs addon |
---|
243 | %config(noreplace) %{_sysconfdir}/ld.so.conf.d/octave-*.conf |
---|
244 | %{_bindir}/ |
---|
245 | %{_libdir}/octave |
---|
246 | %{_libdir}/pkgconfig/*.pc |
---|
247 | %{_includedir}/octave-%{version} |
---|
248 | %{_datadir}/applications/ |
---|
249 | %{_datadir}/icons/ |
---|
250 | %{_datadir}/metainfo/ |
---|
251 | %{_datadir}/octave |
---|
252 | %{_libexecdir}/octave |
---|
253 | %{macrosdir}/macros.octave |
---|
254 | |
---|
255 | |
---|
256 | %changelog |
---|
257 | * Sun Nov 03 2019 Toshiaki Ara <ara_t@384.jp> 5.1.0-3 |
---|
258 | - Rebuild for suitesparse 5.4.0 |
---|
259 | - change using openblas for VineSeed |
---|
260 | - add macros.octave from Fedora |
---|
261 | |
---|
262 | * Sat Aug 31 2019 Toshiaki Ara <ara_t@384.jp> 5.1.0-2 |
---|
263 | - rebuild with readline-8.0 and ncurses-6.1 |
---|
264 | |
---|
265 | * Sun Apr 21 2019 Toshiaki Ara <ara_t@384.jp> 5.1.0-1 |
---|
266 | - update to 5.1.0 |
---|
267 | - drop gui/sound option |
---|
268 | |
---|
269 | * Fri Jan 25 2019 Toshiaki Ara <ara_t@384.jp> 4.4.1-3 |
---|
270 | - rebuild with gfortran-8.2.0 |
---|
271 | |
---|
272 | * Tue Sep 04 2018 Toshiaki Ara <ara_t@384.jp> 4.4.1-2 |
---|
273 | - rebuild with qhull-2015.2 |
---|
274 | |
---|
275 | * Thu Aug 30 2018 Toshiaki Ara <ara_t@384.jp> 4.4.1-1 |
---|
276 | - update to 4.4.1 |
---|
277 | |
---|
278 | * Sun Jul 01 2018 Toshiaki Ara <ara_t@384.jp> 4.4.0-4 |
---|
279 | - using qt5 for VineSeed |
---|
280 | - add configure option: --with-qt=5 |
---|
281 | - add BuildRequires: qt5-qtbase-devel and qt5-qttools-devel |
---|
282 | - add Requires: qt5-qtbase and qt5-qttools-libs-help |
---|
283 | |
---|
284 | * Sun Jul 01 2018 Toshiaki Ara <ara_t@384.jp> 4.4.0-3 |
---|
285 | - rebuild with hdf5-1.8.20 for VineSeed |
---|
286 | |
---|
287 | * Wed Jun 06 2018 Toshiaki Ara <ara_t@384.jp> 4.4.0-2 |
---|
288 | - add BuildRequires: arpack-devel for VineSeed |
---|
289 | |
---|
290 | * Sun May 20 2018 Toshiaki Ara <ara_t@384.jp> 4.4.0-1 |
---|
291 | - update to 4.4.0 |
---|
292 | - correct License |
---|
293 | |
---|
294 | * Sun Apr 01 2018 Toshiaki Ara <ara_t@384.jp> 4.2.2-1 |
---|
295 | - update to 4.2.2 |
---|
296 | |
---|
297 | * Sun Oct 29 2017 Toshiaki Ara <ara_t@384.jp> 4.2.1-2 |
---|
298 | - rebuild under glpk-4.63 |
---|
299 | |
---|
300 | * Mon Feb 27 2017 Toshiaki Ara <ara_t@384.jp> 4.2.1-1 |
---|
301 | - update to 4.2.1 |
---|
302 | |
---|
303 | * Sat Nov 19 2016 Toshiaki Ara <ara_t@384.jp> 4.2.0-1 |
---|
304 | - update to 4.2.0 |
---|
305 | - add make check |
---|
306 | - add BuildRequires: lzip |
---|
307 | - change BuildRequires: java-devel |
---|
308 | |
---|
309 | * Mon Jul 18 2016 Toshiaki Ara <ara_t@384.jp> 4.0.3-1 |
---|
310 | - update to 4.0.3 |
---|
311 | - change BuildRequires: java-1.8.0-openjdk-devel for VineSeed |
---|
312 | |
---|
313 | * Wed May 11 2016 Toshiaki Ara <ara_t@384.jp> 4.0.2-1 |
---|
314 | - update to 4.0.2 |
---|
315 | - add BuildRequires: openssl-devel |
---|
316 | - add Requires: openssl |
---|
317 | |
---|
318 | * Wed Apr 13 2016 Toshiaki Ara <ara_t@384.jp> 4.0.1-1 |
---|
319 | - update to 4.0.1 |
---|
320 | - change dependencies |
---|
321 | |
---|
322 | * Sun Oct 05 2014 Toshiaki Ara <ara_t@384.jp> 3.6.4-2 |
---|
323 | - [BTS:0002801] add configure option --with-magick=Magick |
---|
324 | - delete BuildRequires: texlive-collection-texinfo |
---|
325 | - add BuildRequires: texlive-collection-plainextra |
---|
326 | - add BuildRequires: texlive-collection-latexextra |
---|
327 | - add BuildRequires: texlive-collection-fontsrecommended |
---|
328 | - for VineSeed |
---|
329 | |
---|
330 | * Wed Mar 06 2013 Toshiaki Ara <ara_t@384.jp> 3.6.4-1 |
---|
331 | - update to 3.6.4 |
---|
332 | - add BuildRequires: freeglut-devel and Requires: freeglut for VineSeed |
---|
333 | |
---|
334 | * Tue Sep 11 2012 Toshiaki Ara <ara_t@384.jp> 3.6.2-2 |
---|
335 | - delete octave from menu (programming) |
---|
336 | |
---|
337 | * Tue Aug 28 2012 Toshiaki Ara <ara_t@384.jp> 3.6.2-1 |
---|
338 | - update to 3.6.2 |
---|
339 | - correct spec file for version 3.6.2 |
---|
340 | - add BuildRequires: pcre-devel fltk-devel |
---|
341 | - add BuildRequires: ImageMagick-devel ImageMagick-c++-devel |
---|
342 | - add BuildRequires: gcc-gfortran |
---|
343 | - add BuildRequires: texlive texlive-common texlive-collection-basic |
---|
344 | - add BuildRequires: texlive-collection-texinfo texlive-collection-genericrecommended |
---|
345 | - chanfe Group to Applications/Edutainment |
---|
346 | |
---|
347 | * Sat Aug 23 2008 Shu KONNO <owa@bg.wakwak.com> 3.0.2-1vl5 |
---|
348 | - update to 3.0.2 |
---|
349 | - applied new versioning policy, spec in utf-8 |
---|
350 | |
---|
351 | * Sun Feb 03 2008 NAKAMURA Kenta <kenta@vinelinux.org> 3.0.0-0vl1 |
---|
352 | - update to 3.0.0 |
---|
353 | |
---|
354 | * Sat Aug 18 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.9.13-0vl2 |
---|
355 | - rebuilt for VineSeed |
---|
356 | |
---|
357 | * Fri Aug 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.9.13-0vl1 |
---|
358 | - update to 2.9.13 |
---|
359 | - rebuilt with new toolchain and environment |
---|
360 | |
---|
361 | * Sun Apr 20 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.17-0vl1 |
---|
362 | - update to 2.0.17 |
---|
363 | - rebuild with new toolchains |
---|
364 | - add BuildRequires: gcc295, gcc295-c++ |
---|
365 | |
---|
366 | * Sun Mar 3 2002 Jun Nishii <jun@vinelinux.org> 2.1.35-0vl1 |
---|
367 | - ver.up |
---|
368 | |
---|
369 | * Tue Sep 26 2000 Jun Nishii <jun@vinelinux.org> 2.0.16-0vl1 |
---|
370 | - build for Vine Linux 2.1 |
---|
371 | |
---|
372 | * Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.16-5mdk |
---|
373 | - automatically added BuildRequires |
---|
374 | |
---|
375 | * Wed Jul 26 2000 Vincent Saugey <vince@mandrakesoft.com> 2.0.16-4mdk |
---|
376 | - Macros, BM, add multiple icons sizes |
---|
377 | |
---|
378 | * Wed Apr 12 2000 Vincent Saugey <vince@mandrakesoft.com> 2.0.16-3mdk |
---|
379 | - strip oct file |
---|
380 | - add menu entry |
---|
381 | |
---|
382 | * Tue Mar 21 2000 Vincent Saugey <vince@mandrakesoft.com> 2.0.16-2mdk |
---|
383 | - corrected for new groups |
---|
384 | |
---|
385 | * Thu Mar 09 2000 Lenny Cartier <lenny@mandrakesoft.com> |
---|
386 | - mandrake build |
---|
387 | - v2.0.16 |
---|
388 | |
---|
389 | * Fri Oct 23 1998 Jeff Johnson <jbj@redhat.com> |
---|
390 | - update to 2.0.13.90 |
---|
391 | |
---|
392 | * Thu Jul 9 1998 Jeff Johnson <jbj@redhat.com> |
---|
393 | - repackage in powertools. |
---|
394 | |
---|
395 | * Thu Jun 11 1998 Andrew Veliath <andrewtv@usa.net> |
---|
396 | - Add %attr, build as user. |
---|
397 | |
---|
398 | * Mon Jun 1 1998 Andrew Veliath <andrewtv@usa.net> |
---|
399 | - Add BuildRoot, installinfo, require gnuplot, description from |
---|
400 | Octave's web page, update to Octave 2.0.13. |
---|
401 | - Adapt from existing spec file. |
---|
402 | |
---|
403 | * Tue Dec 2 1997 Otto Hammersmith <otto@redhat.com> |
---|
404 | - removed libreadline stuff from the file list |
---|
405 | |
---|
406 | * Mon Nov 24 1997 Otto Hammersmith <otto@redhat.com> |
---|
407 | - changed configure command to put things in $RPM_ARCH-rehat-linux, |
---|
408 | rather than genereated one... was causing problems between building |
---|
409 | on i686 build machine. |
---|
410 | |
---|
411 | * Mon Nov 17 1997 Otto Hammersmith <otto@redhat.com> |
---|
412 | - moved buildroot from /tmp to /var/tmp |
---|
413 | |
---|
414 | * Mon Sep 22 1997 Mike Wangsmo <wanger@redhat.com> |
---|
415 | - Upgraded to version 2.0.9 and built for glibc system |
---|
416 | |
---|
417 | * Thu May 01 1997 Michael Fulbright <msf@redhat.com> |
---|
418 | - Updated to version 2.0.5 and changed to build using a BuildRoot |
---|