|
@@ -1,10 +1,6 @@
|
|
|
%define pkg_name octave
|
|
|
-%define pkg_version 4.4.1
|
|
|
-%define pkg_release 2%{?_dist_release}
|
|
|
-
|
|
|
-%define gui 1
|
|
|
-%define sound 1
|
|
|
-
|
|
|
+%define pkg_version 5.1.0
|
|
|
+%define pkg_release 1%{?_dist_release}
|
|
|
|
|
|
Summary: GNU Octave -- a high-level language for numerical computations
|
|
|
Summary(ja): 数値計算のための高級言語
|
|
@@ -49,7 +45,6 @@ BuildRequires: xz-devel
|
|
|
BuildRequires: libtool-ltdl-devel
|
|
|
BuildRequires: libXext-devel
|
|
|
BuildRequires: openssl-devel
|
|
|
-%if %{gui}
|
|
|
BuildRequires: desktop-file-utils
|
|
|
BuildRequires: freeglut-devel
|
|
|
BuildRequires: fltk-devel
|
|
@@ -62,11 +57,8 @@ BuildRequires: qscintilla-devel
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
BuildRequires: qt5-qttools-devel
|
|
|
%endif
|
|
|
-%endif
|
|
|
-%if %{sound}
|
|
|
BuildRequires: portaudio-devel
|
|
|
BuildRequires: libsndfile-devel
|
|
|
-%endif
|
|
|
BuildRequires: lzip
|
|
|
|
|
|
Requires: ghostscript
|
|
@@ -89,7 +81,6 @@ Requires: suitesparse
|
|
|
Requires: zlib
|
|
|
Requires: openssl
|
|
|
Requires: pstoedit epstool transfig
|
|
|
-%if %{gui}
|
|
|
Requires: freeglut
|
|
|
Requires: fltk
|
|
|
Requires: gl2ps
|
|
@@ -101,11 +92,8 @@ Requires: qscintilla
|
|
|
Requires: qt5-qtbase
|
|
|
Requires: qt5-qttools-libs-help
|
|
|
%endif
|
|
|
-%endif
|
|
|
-%if %{sound}
|
|
|
Requires: portaudio
|
|
|
Requires: libsndfile
|
|
|
-%endif
|
|
|
|
|
|
Requires(post): /sbin/install-info
|
|
|
Requires(postun): /sbin/ldconfig
|
|
@@ -143,14 +131,12 @@ GNU Octave は数値計算用に開発の始められた高級言語です。線
|
|
|
Octave の言語でユーザが関数を定義したり、C++, C, Fortran その他の言語で
|
|
|
書いた動的ライブラリを用いて容易に拡張やカスタマイズを行うことができます。
|
|
|
|
|
|
-%if %{gui}
|
|
|
(注意)
|
|
|
デフォルトではグラフの描画にOpenGL/fltkを使用してます。
|
|
|
もし不安定な場合には、
|
|
|
gnuplotをデフォルトとするために ~/.octaverc に
|
|
|
graphics_toolkit("gnuplot");
|
|
|
を追加してから起動して下さい。
|
|
|
-%endif
|
|
|
|
|
|
|
|
|
%prep
|
|
@@ -173,16 +159,7 @@ graphics_toolkit("gnuplot");
|
|
|
--with-cxsparse-includedir=%{_includedir}/suitesparse \
|
|
|
--with-umfpack-includedir=%{_includedir}/suitesparse \
|
|
|
--enable-java \
|
|
|
-%if %{gui}
|
|
|
- --with-qt=5 \
|
|
|
-%endif
|
|
|
-%if !%{gui}
|
|
|
- --without-opengl \
|
|
|
- --without-fltk \
|
|
|
-%endif
|
|
|
-%if !%{sound}
|
|
|
- --without-sndfile --without-portaudio \
|
|
|
-%endif
|
|
|
+ --with-qt=5
|
|
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
@@ -197,11 +174,9 @@ find %{buildroot} -name "*.oct" | xargs strip
|
|
|
echo "%{_libdir}/octave-%{version}" > \
|
|
|
${RPM_BUILD_ROOT}/etc/ld.so.conf.d/octave-%{_arch}.conf
|
|
|
|
|
|
-%if %{gui}
|
|
|
# desktop file
|
|
|
%{__perl} -pi -e s/"Education;Science;Math;"/"Education;Science;"/g \
|
|
|
${RPM_BUILD_ROOT}%{_datadir}/applications/org.octave.Octave.desktop
|
|
|
-%endif
|
|
|
|
|
|
%check
|
|
|
%{__make} %{?_smp_mflags} check
|
|
@@ -222,10 +197,9 @@ echo "%{_libdir}/octave-%{version}" > \
|
|
|
%config(noreplace) /etc/ld.so.conf.d/
|
|
|
%{_bindir}/
|
|
|
%{_libdir}/octave
|
|
|
+%{_libdir}/pkgconfig/*.pc
|
|
|
%{_includedir}/octave-%{version}
|
|
|
-%if %{gui}
|
|
|
%{_datadir}/applications/
|
|
|
-%endif
|
|
|
%{_datadir}/icons/
|
|
|
%{_datadir}/metainfo/
|
|
|
%{_datadir}/octave
|
|
@@ -233,6 +207,13 @@ echo "%{_libdir}/octave-%{version}" > \
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Apr 21 2019 Toshiaki Ara <ara_t@384.jp> 5.1.0-1
|
|
|
+- update to 5.1.0
|
|
|
+- drop gui/sound option
|
|
|
+
|
|
|
+* Fri Jan 25 2019 Toshiaki Ara <ara_t@384.jp> 4.4.1-3
|
|
|
+- rebuild with gfortran-8.2.0
|
|
|
+
|
|
|
* Tue Sep 04 2018 Toshiaki Ara <ara_t@384.jp> 4.4.1-2
|
|
|
- rebuild with qhull-2015.2
|
|
|
|