]>
Commit | Line | Data |
---|---|---|
b50c99e2 JB |
1 | # |
2 | # Conditional build: | |
ea43cc24 | 3 | %bcond_without openmp # OpenMP multi-threading |
b50c99e2 JB |
4 | %bcond_with llvm # LLVM based JIT compiler |
5 | %bcond_without gui # Qt GUI | |
b41b0e23 | 6 | %bcond_with qt4 # Qt4 instead of Qt5 |
b50c99e2 JB |
7 | %bcond_without java # Java interface |
8 | # | |
cfeccd1e | 9 | Summary: GNU Octave - a high-level language for numerical computations |
0ecc96f6 ER |
10 | Summary(cs.UTF-8): GNU Octave - vyšší programovací jazyk pro numerické výpočty |
11 | Summary(da.UTF-8): GNU Octave - et højniveausprog for numeriske beregninger | |
12 | Summary(de.UTF-8): GNU Octave - eine höhere Programmiersprache für nummerische Berechnungen | |
13 | Summary(es.UTF-8): GNU Octave - lenguaje de alto nivel para cálculos numéricos | |
14 | Summary(fr.UTF-8): GNU Octave - langage haut niveau pour les calculs numériques | |
15 | Summary(it.UTF-8): GNU Octave - linguaggio di alto livello per calcoli numerici | |
16 | Summary(ja.UTF-8): GNU Octave 数値計算用の高級言語 | |
17 | Summary(ko.UTF-8): GNU Octave 산술 계산을 위한 고차원 언어 | |
18 | Summary(nb.UTF-8): GNU Octave - et høynivåspråk for numeriske beregninger | |
19 | Summary(pl.UTF-8): GNU Octave - język programowania do obliczeń numerycznych | |
20 | Summary(pt.UTF-8): GNU Octave - uma linguagem de alto nível para cálculos numéricos | |
21 | Summary(pt_BR.UTF-8): GNU Octave - um programa para cálculo numérico e matricial | |
22 | Summary(ru.UTF-8): GNU Octave - Язык высокого уровня для выполнения математических расчетов | |
23 | Summary(sv.UTF-8): GNU Octave - ett högninvåspråk för numeriska beräkningar | |
24 | Summary(zh_CN.UTF-8): GNU Octave - 用于数字计算的高级语言。 | |
3d5955ae | 25 | Name: octave |
31bb9e57 | 26 | Version: 6.4.0 |
523f4b14 | 27 | Release: 1 |
ad79357e | 28 | Epoch: 2 |
da117854 | 29 | License: GPL v3+ |
3d5955ae | 30 | Group: Applications/Math |
523f4b14 | 31 | Source0: https://ftp.gnu.org/gnu/octave/%{name}-%{version}.tar.lz |
31bb9e57 | 32 | # Source0-md5: 10ff993735afadcf0fcf1bd68e9e1fb3 |
5c330fd0 | 33 | Source1: %{name}.desktop |
c7ad6272 | 34 | Patch0: %{name}-info.patch |
489a52fa | 35 | Patch1: %{name}-build.patch |
5a8e2ead | 36 | Patch3: octdirs.patch |
23702b6d | 37 | Patch5: %{name}-no-tex-docs.patch |
ebfdd94c | 38 | Patch6: %{name}-qthelp-texinfo7.patch |
31bb9e57 | 39 | URL: https://www.octave.org/ |
569793a8 | 40 | # TODO: SUNDIALS NVECTOR, IDA libraries (sundials < 6 as of octave 6.4.0) |
a195d247 | 41 | BuildRequires: GraphicsMagick-c++-devel |
ea43cc24 JB |
42 | BuildRequires: Mesa-libOSMesa-devel >= 9.0.0 |
43 | BuildRequires: OpenGL-devel | |
44 | BuildRequires: OpenGL-GLU-devel | |
c043dc54 JB |
45 | BuildRequires: SuiteSparse-AMD-devel >= 2.4.0 |
46 | BuildRequires: SuiteSparse-CAMD-devel | |
47 | BuildRequires: SuiteSparse-CCOLAMD-devel | |
48 | BuildRequires: SuiteSparse-CHOLMOD-devel >= 2.2.0 | |
49 | BuildRequires: SuiteSparse-COLAMD-devel | |
50 | BuildRequires: SuiteSparse-CXSparse-devel >= 2.2.0 | |
51 | BuildRequires: SuiteSparse-KLU-devel | |
52 | BuildRequires: SuiteSparse-UMFPACK-devel | |
53 | BuildRequires: SuiteSparse-config-devel | |
31bb9e57 JB |
54 | BuildRequires: arpack-ng-devel >= 3.3.0 |
55 | BuildRequires: autoconf >= 2.65 | |
56 | BuildRequires: automake >= 1:1.14 | |
df98f95a | 57 | #BuildRequires: bison >= 1.31 |
84904e40 | 58 | BuildRequires: blas-devel |
ebfdd94c | 59 | BuildRequires: bzip2-devel |
84904e40 | 60 | BuildRequires: curl-devel |
ea43cc24 | 61 | BuildRequires: desktop-file-utils |
57de1412 | 62 | BuildRequires: fftw3-devel |
3ec70e67 | 63 | BuildRequires: fftw3-single-devel |
b50c99e2 JB |
64 | #BuildRequires: flex >= 2.5.4 |
65 | BuildRequires: fltk-devel | |
3ca7f614 | 66 | BuildRequires: fltk-gl-devel |
b50c99e2 | 67 | BuildRequires: fontconfig-devel |
ebfdd94c | 68 | # pkgconfig(freetype2) >= 9.03 |
94d732b6 | 69 | BuildRequires: freetype-devel >= 2.0.9 |
3ca7f614 | 70 | BuildRequires: gcc-fortran >= 6:4.0 |
b50c99e2 | 71 | BuildRequires: gl2ps-devel |
3ca7f614 | 72 | BuildRequires: glpk-devel >= 4.14 |
b50c99e2 | 73 | BuildRequires: gnuplot |
df98f95a | 74 | #BuildRequires: gperf >= 3.0.1 |
5201de26 | 75 | BuildRequires: hdf5-devel >= 1.6.0 |
f78a5c3e | 76 | %{?with_java:BuildRequires: jdk >= 1.5} |
8e980008 | 77 | BuildRequires: lapack-devel >= 3.1.1-3 |
0c7a7181 | 78 | %{?with_openmp:BuildRequires: libgomp-devel} |
ea43cc24 | 79 | BuildRequires: libsndfile-devel |
ebfdd94c | 80 | BuildRequires: libstdc++-devel >= 6:4.7 |
2e65311a | 81 | BuildRequires: libtool >= 2:2.2.2 |
b50c99e2 | 82 | %{?with_llvm:BuildRequires: llvm-devel} |
523f4b14 | 83 | BuildRequires: lzip |
214cc87a | 84 | BuildRequires: ncurses-devel >= 5.0 |
3ec70e67 | 85 | BuildRequires: pcre-devel |
ea43cc24 | 86 | BuildRequires: perl-base |
b50c99e2 | 87 | BuildRequires: pkgconfig |
ea43cc24 | 88 | BuildRequires: portaudio-devel |
6b967a72 | 89 | BuildRequires: qhull-devel >= 2011.1 |
ebfdd94c JB |
90 | # this octave version doesn't check for libqhull_r instead of libqhull |
91 | BuildRequires: qhull-devel < 2020 | |
489a52fa | 92 | BuildRequires: qrupdate-devel |
256970ce | 93 | BuildRequires: readline-devel |
df98f95a | 94 | BuildRequires: sed >= 4.0 |
523f4b14 | 95 | BuildRequires: tar >= 1:1.22 |
b50c99e2 | 96 | BuildRequires: texinfo |
53637031 | 97 | BuildRequires: texinfo-texi2dvi |
3ca7f614 | 98 | BuildRequires: xorg-lib-libX11-devel |
b50c99e2 | 99 | BuildRequires: xorg-lib-libXft-devel |
09469247 | 100 | BuildRequires: zlib-devel |
b41b0e23 JB |
101 | %if %{with gui} |
102 | %if %{with qt4} | |
c043dc54 JB |
103 | BuildRequires: QtCore-devel >= 4.8 |
104 | BuildRequires: QtGui-devel >= 4.8 | |
105 | BuildRequires: QtNetwork-devel >= 4.8 | |
b41b0e23 | 106 | BuildRequires: qscintilla2-qt4-devel >= 2.6.0 |
c043dc54 JB |
107 | BuildRequires: qt4-assistant >= 4.8 |
108 | BuildRequires: qt4-build >= 4.8 | |
109 | BuildRequires: qt4-linguist >= 4.8 | |
b41b0e23 JB |
110 | %else |
111 | BuildRequires: Qt5Core-devel >= 5 | |
112 | BuildRequires: Qt5Gui-devel >= 5 | |
113 | BuildRequires: Qt5Help-devel >= 5 | |
114 | BuildRequires: Qt5Network-devel >= 5 | |
115 | BuildRequires: Qt5PrintSupport-devel >= 5 | |
116 | BuildRequires: Qt5Widgets-devel >= 5 | |
117 | BuildRequires: qscintilla2-qt5-devel >= 2.6.0 | |
118 | BuildRequires: qt5-assistant >= 5 | |
119 | BuildRequires: qt5-build >= 5 | |
120 | BuildRequires: qt5-linguist >= 5 | |
121 | %endif | |
122 | %endif | |
09469247 | 123 | Requires(post,postun): /sbin/ldconfig |
c043dc54 JB |
124 | Requires: SuiteSparse-AMD >= 2.4.0 |
125 | Requires: SuiteSparse-CHOLMOD >= 2.2.0 | |
126 | Requires: SuiteSparse-CXSparse >= 2.2.0 | |
14f0035e | 127 | Requires: arpack-ng >= 3.3.0 |
94d732b6 | 128 | Requires: freetype >= 2.0.9 |
3d5955ae | 129 | Requires: gnuplot |
00574c69 | 130 | Suggests: GraphicsMagick |
b3bee75d | 131 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15d9cea1 | 132 | |
31bb9e57 | 133 | %define api_dir api-v56 |
b50c99e2 | 134 | |
15d9cea1 | 135 | %description |
136 | GNU Octave is a high-level language, primarily intended for numerical | |
2e344e40 | 137 | computations. It provides a convenient command line interface for |
138 | solving linear and nonlinear problems numerically, and for performing | |
139 | other numerical experiments using a language that is mostly compatible | |
140 | with Matlab. It may also be used as a batch-oriented language. | |
15d9cea1 | 141 | |
142 | Octave has extensive tools for solving common numerical linear algebra | |
2e344e40 | 143 | problems, finding the roots of nonlinear equations, integrating |
144 | ordinary functions, manipulating polynomials, and integrating ordinary | |
145 | differential and differential-algebraic equations. It is easily | |
146 | extensible and customizable via user-defined functions written in | |
147 | Octave's own language, or using dynamically loaded modules written in | |
148 | C++, C, Fortran, or other languages. | |
15d9cea1 | 149 | |
227fa4a8 JR |
150 | %description -l cs.UTF-8 |
151 | GNU Octave je vyšší programovací jazyk, primárně určený pro numerické | |
152 | výpočty. Poskytuje pohodlné rozhraní příkazového řádku pro numerické | |
153 | řešení lineárních a nelineárních problémů a pro provádění jiných | |
154 | numerických experimentů za používání jazyku, který je téměř plně | |
155 | kompatibilní s programem Matlab. Může být používán i jako dávkový | |
cfeccd1e | 156 | jazyk. |
157 | ||
227fa4a8 JR |
158 | Octave má rozsáhlé nástroje pro řešení obvyklých numerických úloh v |
159 | lineární algebře, nalezení kořenů nelineárních rovnic, integrování | |
160 | běžných funkcí, polynomiální manipulace, integrování základních | |
161 | diferenciálních a algebraicko-diferenciálních rovnic. Je jednoduše | |
162 | rozšiřitelný a přizpůsobitelný pomocí uživatelsky definovaných funkcí | |
163 | napsaných v jeho vlastním jazyku. Může používat dynamicky zaváděné | |
164 | moduly napsané v jazycích C++, C, Fortran a jiných. | |
165 | ||
166 | %description -l da.UTF-8 | |
167 | GNU Octave er et høgniveausprog, hovedsakligen beregnet til for | |
168 | numeriska beregningar. Det har et bekvæmt kommandoradsgrænseflade for | |
169 | at løsa linjæra og ickelinjæra problem numeriskt, og for at utføra | |
cfeccd1e | 170 | andra numeriske experiment med et sprog som i stora dele er |
227fa4a8 | 171 | kompatibelt med Matlab. Det kan også bruges som et sprog for satsvis |
cfeccd1e | 172 | bearbejdning. |
173 | ||
227fa4a8 JR |
174 | Octave har omfattende værktøj for at løsa almindelige problem inom |
175 | numerisk linjær algebra, finde røtter for ickelinjæra ekvationer, | |
176 | integrere normala funktioner, behandle polynom, og integrere ordinære | |
cfeccd1e | 177 | differential og differentialalgebraiska ekvationer. Det er let at |
178 | utvidga og anpassa via brugerdefinierede funktioner skrivna i Octaves | |
179 | eget sprog, og via dynamisk laddade moduler skriven i C++, C, Fortran, | |
180 | eller andra sprog. | |
181 | ||
227fa4a8 JR |
182 | %description -l de.UTF-8 |
183 | GNU Octave ist eine High-Level-Programmiersprache, die hauptsächlich | |
184 | für nummerische Berechnungen vorgesehen ist. Sie verfügt über eine | |
185 | benutzerfreundliche Befehlszeilenoberfläche zur nummerischen Lösung | |
186 | von linearen und nichtlinearen Aufgaben und zum Ausführen weiterer | |
cfeccd1e | 187 | nummerischer Experimente unter Verwendung einer Programmiersprache, |
227fa4a8 | 188 | die größtenteils mit Matlab kompatibel ist. Die Programmiersprache |
cfeccd1e | 189 | kann auch als Batch-orientierte Sprache verwendet werden. |
190 | ||
227fa4a8 | 191 | Octave verfügt über umfangreiche Tools zum Lösen allgemeiner |
cfeccd1e | 192 | nummerischer linearer algebraischer Aufgaben, zum Ermitteln der |
227fa4a8 | 193 | Lösungen von nichtlinearen Gleichungen, zum Integrieren gewöhnlicher |
cfeccd1e | 194 | Funktionen, zum Bearbeiten von Polynomen und zum Integrieren |
227fa4a8 | 195 | gewöhnlicher Differential- und Differential-algebraischer Gleichungen. |
cfeccd1e | 196 | Octave kann mit benutzerdefinierten Funktionen, die in der speziellen |
197 | Programmiersprache von Octave geschrieben sind, oder mit dynamisch | |
198 | geladenen, in C++, C, Fortran oder einer anderen Programmiersprache | |
199 | geschriebenen Modulen erweitert und angepasst werden. | |
200 | ||
227fa4a8 JR |
201 | %description -l es.UTF-8 |
202 | GNU Octave lenguaje de alto nivel, pensado para cálculos numéricos. | |
203 | Provee un interfaz de línea de comando para resolver problemas | |
204 | lineales y no lineales numéricamente, y para realizar otros | |
205 | experimentos numéricos usando un lenguaje casi compatible con Matlab. | |
206 | Puede utilizarse también fuera de la línea de comandos. | |
207 | ||
208 | Octave tiene herramientas para resolver problemas numéricos de algebra | |
209 | lineal común, encontrar raices de ecuaciones no-lineales, integración | |
210 | de funciones ordinarias, manipulación de polinomios, e integrar | |
211 | ecuaciones diferenciales ordinarias y algebraícas diferenciales. Es | |
cfeccd1e | 212 | facilmente extensible y configurable via funciones de usuario escritas |
227fa4a8 | 213 | en el lenguaje Octave, o usando módulos dinámicos cargables escritos |
cfeccd1e | 214 | en C++, C, Fortran u otros lenguajes. |
215 | ||
227fa4a8 JR |
216 | %description -l fr.UTF-8 |
217 | GNU Octave est un langage haut niveau conçu pour le calcul numérique. | |
cfeccd1e | 218 | Il offre une interface de ligne de commande pratique permettant de |
227fa4a8 JR |
219 | résoudre numériquement des problèmes linéaires et non linéaires et |
220 | d'effectuer d'autres expériences numériques à l'aide d'un langage | |
221 | presque totalement compatible avec Matlab. Il peut également être | |
222 | utilisé comme langage à orientation par lots. | |
223 | ||
224 | Octave comporte des outils étendus permettant de résoudre des | |
225 | problèmes communs d'algèbre linéaire numérique, en trouvant les | |
226 | racines d'équations non linéaires, en intégrant des fonctions | |
227 | ordinaires, en manipulant des polynômes et en intégrant des équations | |
228 | différentielles ordinaires et différentielles algébriques. Il est | |
cfeccd1e | 229 | facilement extensible et personnalisable au moyen de fonctions |
227fa4a8 JR |
230 | définies par l'utilisateur, écrites dans le langage d'Octave, ou à |
231 | l'aide de modules chargés dynamiquement, écrits en C++, C, Fortran ou | |
cfeccd1e | 232 | autres langages. |
233 | ||
227fa4a8 JR |
234 | %description -l it.UTF-8 |
235 | GNU Octave è un linguaggio di alto livello per il calcolo numerico. | |
cfeccd1e | 236 | Fornisce una interfaccia basata sulla linea di comando per la |
237 | risoluzione numerica di problemi lineari e non lineari e per eseguire | |
227fa4a8 JR |
238 | altri esperimenti numerici usando un linguaggio per lo più compatibile |
239 | con Matlab. Può inoltre essere utilizzato come linguaggio orientato al | |
cfeccd1e | 240 | batch. |
241 | ||
242 | Octave possiede vari tool per risolvere problemi di algebra lineare, | |
243 | per la ricerca di radici di equazioni non lineari, per il calcolo di | |
244 | integrali di funzioni, per l'elaborazione di polinomi, per le | |
227fa4a8 | 245 | equazioni differenziali ordinarie e algebriche. Può essere facilmente |
cfeccd1e | 246 | esteso e personalizzato tramite nuove funzioni definite dall'utente e |
247 | scritte nel linguaggio di Octave o tramite moduli caricati in modo | |
248 | dinamico scritti in C, C++, Fortran o altri linguaggi. | |
249 | ||
227fa4a8 JR |
250 | %description -l ja.UTF-8 |
251 | GNU Octave は、主として数値計算を目的とした高レベル言語です。 | |
252 | GNU Octave は、線型/非線型問題を数値的に解いたり、Matlab | |
253 | との大部分の互換性を持った言語を使用してその他の数値的実験を行 | |
254 | ったりするための便利なコマンドラインインターフェイスを提供します。 | |
255 | バッチ指向の言語として使用することもできます。Octave は、 | |
256 | 共通の数値線型代数問題を解いたり、非線型方程式の根を見つけたり、 | |
257 | 通常の関数を積分したり、多項式を操作したり、常微分方程式や代数 | |
258 | 微分方程式を積分したりするための広範なツールを備えています。Octave | |
259 | 独自の言語で書かれたユーザー定義の関数や、C++、C、Fortlan、その他の | |
260 | 言語で書かれた動的にロードされるモジュールを使用すれば、容易に拡張 | |
261 | およびカスタマイズすることができます。 | |
262 | ||
263 | %description -l pl.UTF-8 | |
264 | GNU Octave jest językiem programowania wysokiego poziomu przeznaczonym | |
265 | głównie do obliczeń numerycznych. Octave jest w dużym stopniu | |
266 | kompatybilny z językiem Matlab. Pracować można wprost z linii poleceń | |
267 | lub uruchamiać programy stworzone za pomocą zewnętrznego edytora. | |
268 | ||
269 | %description -l pt.UTF-8 | |
270 | O Octave da GNU é uma linguagem de alto nível, vocacionada | |
271 | principalmente para o cálculo numérico. Oferece uma interface de linha | |
272 | de comandos para resolver problemas lineares e não-lineares | |
273 | numericamente, e para realizar outras experiências numéricas usando | |
274 | uma linguagem que é relativamente compatível com o Matlab. Pode também | |
cfeccd1e | 275 | ser usado como uma linguagem orientada por lotes. |
276 | ||
277 | O Octave tem ferramentas extensivas para resolver problemas comuns de | |
227fa4a8 JR |
278 | álgebra linear, descobrir as raizes de equações não-lineares, integrar |
279 | funções ordinárias, manipular polinómios e integrar equações | |
280 | diferenciais ordinárias e diferenciais algébricas. É facilmente | |
281 | extensível e personalizável através de funções definidas pelo | |
282 | utilizador, escritas na própria linguagem do Octave, ou usando módulos | |
cfeccd1e | 283 | carregados dinamicamente e feitos em C, C++, Fortran ou outras |
284 | linguagens." | |
285 | ||
227fa4a8 JR |
286 | %description -l pt_BR.UTF-8 |
287 | GNU Octave - Um programa de cálculo numérico e matricial. Possui | |
288 | linguagem de alto nível e ambiente interativo para computação numérica | |
52934cde | 289 | semelhantes ao do Matlab. |
290 | ||
227fa4a8 JR |
291 | %description -l ru.UTF-8 |
292 | GNU Octave - это язык высокого уровня, предназначенный для выполнения | |
293 | математических вычислений. Он предоставляет удобный коммандный | |
294 | интерфейс для решения линейных и нелинейных математических задач и для | |
295 | проведения других арифметических экспериментов, используя язык, в | |
296 | большенстве случаев совместимый с Mathlab. | |
297 | ||
298 | Кроме того, Octave может использоваться для пакетной обработки и имеет | |
299 | средства расширения для решения линейных алгебраических задач, | |
300 | нахождения корней нелинейных уравнений, интегрирование функций, работу | |
301 | с полиномами и решение различных дифференциальных уравнений. Язык | |
302 | можно легко расширить при помощи собственно языка Octave или используя | |
303 | динамически загружаемые модули, написанные на языках C, C++, Фортран и | |
304 | др. | |
305 | ||
306 | %description -l sv.UTF-8 | |
307 | GNU Octave är ett högnivåspråk, huvudsakligen avsett för numeriska | |
308 | beräkningar. Det har ett bekvämt kommandoradsgränssnitt för att lösa | |
309 | linjära och ickelinjära problem numeriskt, och för att utföra andra | |
310 | numeriska experiment med ett språk som i stora delar är kompatibelt | |
311 | med Matlab. Det kan också användas som ett språk för satsvis | |
cfeccd1e | 312 | bearbetning. |
313 | ||
227fa4a8 JR |
314 | Octave har omfattande verktyg för att lösa vanliga problem inom |
315 | numerisk linjär algebra, hitta rötter för ickelinjära ekvationer, | |
316 | integrera normala funktioner, hantera polynom, och integrera ordinära | |
317 | differential och differentialalgebraiska ekvationer. Det är lätt att | |
318 | utvidga och anpassa via användardefinierade funktioner skrivna i | |
319 | Octaves eget språk, och via dynamiskt laddade moduler skrivan i C++, | |
320 | C, Fortran, eller andra språk. | |
cfeccd1e | 321 | |
b50c99e2 JB |
322 | %package gui |
323 | Summary: Qt based GUI for Octave | |
324 | Summary(pl.UTF-8): Oparty na Qt graficzny interfejs do Octave | |
325 | Group: Applications/Math | |
326 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
327 | ||
328 | %description gui | |
329 | Qt based GUI for Octave. | |
330 | ||
331 | %description gui -l pl.UTF-8 | |
332 | Oparty na Qt graficzny interfejs do Octave. | |
333 | ||
3085d145 JB |
334 | %package java |
335 | Summary: Java interface for Octave | |
336 | Summary(pl.UTF-8): Interfejs do Javy dla Octave | |
337 | Group: Applications/Math | |
338 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
339 | Requires: jre | |
340 | ||
341 | %description java | |
342 | Java interface for Octave. | |
343 | ||
344 | %description java -l pl.UTF-8 | |
345 | Interfejs do Javy dla Octave. | |
346 | ||
2b6d110b | 347 | %package devel |
348 | Summary: Header files and devel docs for Octave | |
0ecc96f6 | 349 | Summary(pl.UTF-8): Pliki nagłówkowe i dodatkowa dokumentacja Octave |
2e344e40 | 350 | Group: Development/Libraries |
998919ae | 351 | Requires: %{name} = %{epoch}:%{version}-%{release} |
c043dc54 JB |
352 | Requires: SuiteSparse-AMD-devel >= 2.4.0 |
353 | Requires: SuiteSparse-CAMD-devel | |
354 | Requires: SuiteSparse-CCOLAMD-devel | |
355 | Requires: SuiteSparse-CHOLMOD-devel >= 2.2.0 | |
356 | Requires: SuiteSparse-COLAMD-devel | |
357 | Requires: SuiteSparse-CXSparse-devel >= 2.2.0 | |
358 | Requires: SuiteSparse-KLU-devel | |
359 | Requires: SuiteSparse-UMFPACK-devel | |
360 | Requires: SuiteSparse-config-devel | |
31bb9e57 | 361 | Requires: arpack-ng-devel >= 3.3.0 |
c043dc54 JB |
362 | Requires: blas-devel |
363 | Requires: curl-devel | |
364 | Requires: fftw3-devel | |
365 | Requires: fftw3-single-devel | |
366 | Requires: gcc-fortran >= 6:4.0 | |
f061f8f6 | 367 | Requires: hdf5-devel >= 1.6.0 |
c043dc54 JB |
368 | Requires: lapack-devel >= 3.1.1-3 |
369 | Requires: ncurses-devel >= 5.0 | |
370 | Requires: pcre-devel | |
371 | Requires: qrupdate-devel | |
372 | Requires: readline-devel | |
2b6d110b | 373 | |
2e41e3a3 JB |
374 | %description devel |
375 | Header files and devel docs for Octave. | |
376 | ||
227fa4a8 JR |
377 | %description devel -l pl.UTF-8 |
378 | Pliki nagłówkowe i dodatkowa dokumentacja Octave. | |
2b6d110b | 379 | |
15d9cea1 | 380 | %prep |
b7c21012 | 381 | %setup -q |
2b6d110b | 382 | %patch0 -p1 |
489a52fa | 383 | %patch1 -p1 |
5a8e2ead | 384 | %patch3 -p1 |
23702b6d | 385 | %patch5 -p1 |
ebfdd94c | 386 | %patch6 -p1 |
15d9cea1 | 387 | |
388 | %build | |
489a52fa JR |
389 | %{__libtoolize} |
390 | %{__aclocal} -I m4 | |
d0814e56 | 391 | %{__autoconf} |
489a52fa JR |
392 | %{__autoheader} |
393 | %{__automake} | |
8cc92b36 JB |
394 | # to find local sources |
395 | export CLASSPATH=. | |
396 | # Note: configure defaults to {moc,uic,rcc,lrelease}-qt5 tools, | |
397 | # but gets only qt4 (QtCore, QtGui, QtNetwork) libraries; | |
398 | # pass qt4 tools for consistency (qt5 tools refer to e.g. Qt5 specific headers) | |
09469247 | 399 | %configure \ |
c043dc54 | 400 | %if %{with qt4} |
8cc92b36 JB |
401 | MOC=moc-qt4 \ |
402 | UIC=uic-qt4 \ | |
403 | RCC=rcc \ | |
404 | LRELEASE=lrelease-qt4 \ | |
c043dc54 | 405 | %endif |
b41b0e23 | 406 | %{?with_gui:--with-qt=%{?with_qt4:4}%{!?with_qt4:5}} \ |
b50c99e2 JB |
407 | %{!?with_gui:--disable-gui} \ |
408 | %{!?with_java:--disable-java} \ | |
409 | %{?with_llvm:--enable-jit} \ | |
ea43cc24 JB |
410 | %{!?with_openmp:--disable-openmp} \ |
411 | --enable-shared \ | |
412 | --disable-silent-rules | |
ed3eaa1d | 413 | |
5a8e2ead | 414 | %{__make} |
15d9cea1 | 415 | |
416 | %install | |
417 | rm -rf $RPM_BUILD_ROOT | |
c68703d9 | 418 | |
52934cde | 419 | %{__make} install \ |
5a8e2ead | 420 | DESTDIR=$RPM_BUILD_ROOT |
3d5955ae | 421 | |
20062c0f | 422 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
f78a5c3e | 423 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
14c811ac | 424 | |
6f78d282 JR |
425 | # Create directory for add-on packages |
426 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/packages | |
427 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/packages | |
428 | touch $RPM_BUILD_ROOT%{_datadir}/%{name}/octave_packages | |
429 | ||
20062c0f | 430 | %{__rm} -f $RPM_BUILD_ROOT%{_desktopdir}/www.octave.org-octave.desktop |
489a52fa | 431 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
b50c99e2 JB |
432 | # API not exported |
433 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/liboctgui.so | |
2e344e40 | 434 | |
15d9cea1 | 435 | %clean |
436 | rm -rf $RPM_BUILD_ROOT | |
437 | ||
5efa75e0 | 438 | %post -p /sbin/postshell |
3d5955ae | 439 | /sbin/ldconfig |
5efa75e0 | 440 | -/usr/sbin/fix-info-dir -c %{_infodir} |
15d9cea1 | 441 | |
5efa75e0 | 442 | %postun -p /sbin/postshell |
c68703d9 | 443 | /sbin/ldconfig |
5efa75e0 | 444 | -/usr/sbin/fix-info-dir -c %{_infodir} |
15d9cea1 | 445 | |
a8260fac | 446 | %post devel -p /sbin/postshell |
604a1218 | 447 | -/usr/sbin/fix-info-dir -c %{_infodir} |
2b6d110b | 448 | |
a8260fac | 449 | %postun devel -p /sbin/postshell |
604a1218 | 450 | -/usr/sbin/fix-info-dir -c %{_infodir} |
2b6d110b | 451 | |
bf203277 AO |
452 | %post gui -p /sbin/postshell |
453 | /sbin/ldconfig | |
454 | ||
455 | %postun gui -p /sbin/postshell | |
456 | /sbin/ldconfig | |
457 | ||
15d9cea1 | 458 | %files |
3d5955ae | 459 | %defattr(644,root,root,755) |
ebfdd94c | 460 | %doc AUTHORS BUGS ChangeLog NEWS README examples doc/interpreter/*.{html,pdf} doc/refcard/refcard-a4.pdf |
6b967a72 JB |
461 | %attr(755,root,root) %{_bindir}/mkoctfile |
462 | %attr(755,root,root) %{_bindir}/mkoctfile-%{version} | |
463 | %attr(755,root,root) %{_bindir}/octave | |
464 | %attr(755,root,root) %{_bindir}/octave-%{version} | |
8cc92b36 JB |
465 | %attr(755,root,root) %{_bindir}/octave-cli |
466 | %attr(755,root,root) %{_bindir}/octave-cli-%{version} | |
6b967a72 | 467 | %attr(755,root,root) %{_libdir}/liboctave.so.*.*.* |
31bb9e57 | 468 | %attr(755,root,root) %ghost %{_libdir}/liboctave.so.8 |
6b967a72 | 469 | %attr(755,root,root) %{_libdir}/liboctinterp.so.*.*.* |
31bb9e57 | 470 | %attr(755,root,root) %ghost %{_libdir}/liboctinterp.so.9 |
ebfdd94c | 471 | %if "%{_libexecdir}" != "%{_libdir}" |
b3f50533 AM |
472 | %dir %{_libexecdir}/octave |
473 | %dir %{_libexecdir}/octave/%{version} | |
ebfdd94c JB |
474 | %dir %{_libexecdir}/octave/%{version}/site |
475 | %dir %{_libexecdir}/octave/site | |
476 | %endif | |
b3f50533 AM |
477 | %dir %{_libexecdir}/octave/%{version}/exec |
478 | %dir %{_libexecdir}/octave/%{version}/exec/*-pld-linux-gnu* | |
b3f50533 AM |
479 | %dir %{_libexecdir}/octave/%{version}/site/exec |
480 | %dir %{_libexecdir}/octave/%{version}/site/exec/*-pld-linux-gnu* | |
481 | %dir %{_libexecdir}/octave/%{api_dir} | |
482 | %dir %{_libexecdir}/octave/%{api_dir}/site | |
483 | %dir %{_libexecdir}/octave/%{api_dir}/site/exec | |
484 | %dir %{_libexecdir}/octave/%{api_dir}/site/exec/*-pld-linux-gnu* | |
b3f50533 AM |
485 | %dir %{_libexecdir}/octave/site/exec |
486 | %dir %{_libexecdir}/octave/site/exec/*-pld-linux-gnu* | |
b50c99e2 JB |
487 | %dir %{_libdir}/octave |
488 | %dir %{_libdir}/octave/%{version} | |
b50c99e2 | 489 | %dir %{_libdir}/octave/%{version}/oct |
913c4872 JR |
490 | %dir %{_libdir}/octave/%{version}/oct/*-pld-linux-gnu* |
491 | %{_libdir}/octave/%{version}/oct/*-pld-linux-gnu*/*.oct | |
492 | %{_libdir}/octave/%{version}/oct/*-pld-linux-gnu*/PKG_ADD | |
b50c99e2 | 493 | %dir %{_libdir}/octave/%{version}/site |
b50c99e2 | 494 | %dir %{_libdir}/octave/%{version}/site/oct |
913c4872 | 495 | %dir %{_libdir}/octave/%{version}/site/oct/*-pld-linux-gnu* |
b50c99e2 JB |
496 | %dir %{_libdir}/octave/packages |
497 | %dir %{_libdir}/octave/site | |
b50c99e2 | 498 | %dir %{_libdir}/octave/site/oct |
913c4872 | 499 | %dir %{_libdir}/octave/site/oct/*-pld-linux-gnu* |
b50c99e2 | 500 | %dir %{_libdir}/octave/site/oct/%{api_dir} |
913c4872 | 501 | %dir %{_libdir}/octave/site/oct/%{api_dir}/*-pld-linux-gnu* |
2b0adfad | 502 | %{_infodir}/octave.info* |
6b967a72 JB |
503 | %{_mandir}/man1/mkoctfile.1* |
504 | %{_mandir}/man1/octave.1* | |
8cc92b36 | 505 | %{_mandir}/man1/octave-cli.1* |
b50c99e2 JB |
506 | %dir %{_datadir}/octave |
507 | %dir %{_datadir}/octave/%{version} | |
f78a5c3e JR |
508 | %dir %{_datadir}/octave/%{version}/data |
509 | %{_datadir}/octave/%{version}/data/penny.mat | |
b50c99e2 JB |
510 | %dir %{_datadir}/octave/%{version}/etc |
511 | %{_datadir}/octave/%{version}/etc/CITATION | |
512 | %{_datadir}/octave/%{version}/etc/NEWS | |
513 | %{_datadir}/octave/%{version}/etc/built-in-docstrings | |
b50c99e2 JB |
514 | %{_datadir}/octave/%{version}/etc/doc-cache |
515 | %{_datadir}/octave/%{version}/etc/macros.texi | |
c16b5894 | 516 | %{_datadir}/octave/%{version}/etc/profiler |
b50c99e2 JB |
517 | %{_datadir}/octave/%{version}/etc/tests |
518 | %{_datadir}/octave/%{version}/imagelib | |
3085d145 | 519 | %dir %{_datadir}/octave/%{version}/m |
ebfdd94c | 520 | %{_datadir}/octave/%{version}/m/+containers |
c043dc54 | 521 | %{_datadir}/octave/%{version}/m/+matlab |
3085d145 JB |
522 | %{_datadir}/octave/%{version}/m/@ftp |
523 | %{_datadir}/octave/%{version}/m/audio | |
524 | %{_datadir}/octave/%{version}/m/deprecated | |
525 | %{_datadir}/octave/%{version}/m/elfun | |
526 | %{_datadir}/octave/%{version}/m/general | |
527 | %{_datadir}/octave/%{version}/m/geometry | |
528 | %{_datadir}/octave/%{version}/m/gui | |
529 | %{_datadir}/octave/%{version}/m/help | |
530 | %{_datadir}/octave/%{version}/m/image | |
531 | %{_datadir}/octave/%{version}/m/io | |
c043dc54 | 532 | %{_datadir}/octave/%{version}/m/legacy |
3085d145 JB |
533 | %{_datadir}/octave/%{version}/m/linear-algebra |
534 | %{_datadir}/octave/%{version}/m/miscellaneous | |
c16b5894 | 535 | %{_datadir}/octave/%{version}/m/ode |
3085d145 JB |
536 | %{_datadir}/octave/%{version}/m/optimization |
537 | %{_datadir}/octave/%{version}/m/path | |
538 | %{_datadir}/octave/%{version}/m/pkg | |
539 | %{_datadir}/octave/%{version}/m/plot | |
540 | %{_datadir}/octave/%{version}/m/polynomial | |
541 | %{_datadir}/octave/%{version}/m/prefs | |
c16b5894 | 542 | %{_datadir}/octave/%{version}/m/profiler |
3085d145 JB |
543 | %{_datadir}/octave/%{version}/m/set |
544 | %{_datadir}/octave/%{version}/m/signal | |
545 | %{_datadir}/octave/%{version}/m/sparse | |
546 | %{_datadir}/octave/%{version}/m/specfun | |
547 | %{_datadir}/octave/%{version}/m/special-matrix | |
548 | %{_datadir}/octave/%{version}/m/startup | |
549 | %{_datadir}/octave/%{version}/m/statistics | |
550 | %{_datadir}/octave/%{version}/m/strings | |
551 | %{_datadir}/octave/%{version}/m/testfun | |
552 | %{_datadir}/octave/%{version}/m/time | |
31bb9e57 | 553 | %{_datadir}/octave/%{version}/m/web |
ebfdd94c | 554 | %ghost %{_datadir}/octave/octave_packages |
b50c99e2 JB |
555 | %dir %{_datadir}/octave/%{version}/site |
556 | %dir %{_datadir}/octave/%{version}/site/m | |
b50c99e2 JB |
557 | %dir %{_datadir}/octave/packages |
558 | %dir %{_datadir}/octave/site | |
559 | %dir %{_datadir}/octave/site/%{api_dir} | |
560 | %dir %{_datadir}/octave/site/%{api_dir}/m | |
561 | %dir %{_datadir}/octave/site/m | |
562 | %dir %{_datadir}/octave/site/m/startup | |
563 | %{_datadir}/octave/site/m/startup/octaverc | |
489a52fa | 564 | %{_desktopdir}/octave.desktop |
2b6d110b | 565 | |
b50c99e2 JB |
566 | %if %{with gui} |
567 | %files gui | |
568 | %defattr(644,root,root,755) | |
569 | %attr(755,root,root) %{_libdir}/liboctgui.so.*.*.* | |
31bb9e57 | 570 | %attr(755,root,root) %ghost %{_libdir}/liboctgui.so.6 |
b3f50533 | 571 | %attr(755,root,root) %{_libexecdir}/octave/%{version}/exec/*-pld-linux-gnu*/octave-gui |
c043dc54 | 572 | %attr(755,root,root) %{_libexecdir}/octave/%{version}/exec/*-pld-linux-gnu*/octave-svgconvert |
ebfdd94c JB |
573 | %dir %{_datadir}/octave/%{version}/doc |
574 | %{_datadir}/octave/%{version}/doc/octave_interpreter.qch | |
575 | %{_datadir}/octave/%{version}/doc/octave_interpreter.qhc | |
b50c99e2 | 576 | %{_datadir}/octave/%{version}/etc/default-qt-settings |
ebfdd94c JB |
577 | # TODO: FreeSans*.otf - use system? |
578 | %{_datadir}/octave/%{version}/fonts | |
b50c99e2 JB |
579 | %dir %{_datadir}/octave/%{version}/locale |
580 | %lang(be) %{_datadir}/octave/%{version}/locale/be_BY.qm | |
ebfdd94c | 581 | %lang(ca) %{_datadir}/octave/%{version}/locale/ca_ES.qm |
b50c99e2 JB |
582 | %lang(de) %{_datadir}/octave/%{version}/locale/de_DE.qm |
583 | %lang(en) %{_datadir}/octave/%{version}/locale/en_US.qm | |
584 | %lang(es) %{_datadir}/octave/%{version}/locale/es_ES.qm | |
ebfdd94c | 585 | %lang(eu) %{_datadir}/octave/%{version}/locale/eu_ES.qm |
b50c99e2 | 586 | %lang(fr) %{_datadir}/octave/%{version}/locale/fr_FR.qm |
f78a5c3e JR |
587 | %lang(it) %{_datadir}/octave/%{version}/locale/it_IT.qm |
588 | %lang(ja) %{_datadir}/octave/%{version}/locale/ja_JP.qm | |
c043dc54 | 589 | %lang(lt) %{_datadir}/octave/%{version}/locale/lt_LT.qm |
b50c99e2 JB |
590 | %lang(nl) %{_datadir}/octave/%{version}/locale/nl_NL.qm |
591 | %lang(pt_BR) %{_datadir}/octave/%{version}/locale/pt_BR.qm | |
592 | %lang(pt) %{_datadir}/octave/%{version}/locale/pt_PT.qm | |
593 | %lang(ru) %{_datadir}/octave/%{version}/locale/ru_RU.qm | |
594 | %lang(uk) %{_datadir}/octave/%{version}/locale/uk_UA.qm | |
94d732b6 | 595 | %lang(zh_CN) %{_datadir}/octave/%{version}/locale/zh_CN.qm |
ebfdd94c JB |
596 | %{_datadir}/metainfo/org.octave.Octave.appdata.xml |
597 | %{_desktopdir}/org.octave.Octave.desktop | |
f78a5c3e JR |
598 | %{_iconsdir}/hicolor/*x*/apps/octave.png |
599 | %{_iconsdir}/hicolor/scalable/apps/octave.svg | |
b50c99e2 JB |
600 | %endif |
601 | ||
3085d145 JB |
602 | %if %{with java} |
603 | %files java | |
604 | %defattr(644,root,root,755) | |
605 | %{_datadir}/octave/%{version}/m/java | |
606 | %endif | |
607 | ||
2b6d110b | 608 | %files devel |
609 | %defattr(644,root,root,755) | |
489a52fa | 610 | %doc doc/liboctave/liboctave.{html,pdf} |
6b967a72 JB |
611 | %attr(755,root,root) %{_bindir}/octave-config |
612 | %attr(755,root,root) %{_bindir}/octave-config-%{version} | |
da117854 JB |
613 | %attr(755,root,root) %{_libdir}/liboctave.so |
614 | %attr(755,root,root) %{_libdir}/liboctinterp.so | |
c043dc54 JB |
615 | %{_includedir}/octave |
616 | %{_pkgconfigdir}/octave.pc | |
617 | %{_pkgconfigdir}/octinterp.pc | |
6b967a72 | 618 | %{_mandir}/man1/octave-config.1* |
2b0adfad | 619 | %{_infodir}/liboctave.info* |