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