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