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