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