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