octave-vl.spec 10.0 KB

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