]>
Commit | Line | Data |
---|---|---|
fcd8e608 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without luajit # build without luajit | |
4 | # | |
5 | %ifarch x32 | |
6 | %undefine with_luajit | |
7 | %endif | |
8 | ||
fb05e95f | 9 | %define kdeappsver 21.12.3 |
72e612e1 | 10 | %define kframever 5.56.0 |
fd17d32c | 11 | %define qtver 5.9.0 |
e6a4ac90 WF |
12 | %define kaname cantor |
13 | Summary: Cantor | |
14 | Name: ka5-%{kaname} | |
fb05e95f | 15 | Version: 21.12.3 |
05da9e6c | 16 | Release: 3 |
e6a4ac90 WF |
17 | License: GPL v2+/LGPL v2.1+ |
18 | Group: X11/Libraries | |
b17f4e52 | 19 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
fb05e95f | 20 | # Source0-md5: 3e267f8ce771c97325cad2f6bd56e697 |
b17f4e52 | 21 | URL: https://www.kde.org/ |
e6a4ac90 | 22 | BuildRequires: Qt5Core-devel >= %{qtver} |
fd17d32c | 23 | BuildRequires: Qt5Gui-devel |
e4aa2b8a | 24 | BuildRequires: Qt5Help-devel |
fd17d32c WF |
25 | BuildRequires: Qt5Network-devel >= 5.11.1 |
26 | BuildRequires: Qt5PrintSupport-devel | |
27 | BuildRequires: Qt5Svg-devel | |
28 | BuildRequires: Qt5Test-devel | |
e26d7e87 | 29 | BuildRequires: Qt5WebEngine-devel |
fd17d32c WF |
30 | BuildRequires: Qt5Widgets-devel |
31 | BuildRequires: Qt5Xml-devel | |
32 | BuildRequires: Qt5XmlPatterns-devel | |
fcd8e608 | 33 | BuildRequires: R |
e6a4ac90 | 34 | BuildRequires: cmake >= 2.8.12 |
fd17d32c | 35 | BuildRequires: gettext-devel |
fcd8e608 | 36 | BuildRequires: ka5-analitza-devel |
72e612e1 WF |
37 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
38 | BuildRequires: kf5-karchive-devel >= %{kframever} | |
39 | BuildRequires: kf5-kcompletion-devel >= %{kframever} | |
40 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
41 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
42 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
43 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
44 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
45 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
46 | BuildRequires: kf5-kio-devel >= %{kframever} | |
47 | BuildRequires: kf5-knewstuff-devel >= %{kframever} | |
48 | BuildRequires: kf5-kparts-devel >= %{kframever} | |
49 | BuildRequires: kf5-kpty-devel >= %{kframever} | |
50 | BuildRequires: kf5-ktexteditor-devel >= %{kframever} | |
51 | BuildRequires: kf5-ktextwidgets-devel >= %{kframever} | |
52 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
53 | BuildRequires: kf5-syntax-highlighting-devel >= %{kframever} | |
54 | BuildRequires: libmarkdown-devel | |
fd17d32c | 55 | BuildRequires: libqalculate-devel >= 2.8.2 |
fcd8e608 | 56 | %{?with_luajit:BuildRequires: luajit-devel} |
ccf030a0 | 57 | BuildRequires: ninja |
b06a73ac | 58 | BuildRequires: poppler-qt5-devel |
562cf34d | 59 | BuildRequires: qt5-assistant |
e6a4ac90 WF |
60 | BuildRequires: qt5-build >= %{qtver} |
61 | BuildRequires: rpmbuild(macros) >= 1.164 | |
62 | BuildRequires: shared-mime-info | |
63 | BuildRequires: tar >= 1:1.22 | |
64 | BuildRequires: xz | |
e4aa2b8a | 65 | ExclusiveArch: i686 %{x8664} |
e6a4ac90 WF |
66 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
67 | ||
68 | %description | |
69 | Cantor is a KDE Application aimed to provide a nice Interface for | |
70 | doing Mathematics and Scientific Computing. It doesn't implement its | |
71 | own Computation Logic, but instead is built around different Backends. | |
72 | ||
73 | Available Backends | |
74 | - Julia Programming Language: http://julialang.org/ | |
75 | - KAlgebra for Calculation and Plotting: http://edu.kde.org/kalgebra/ | |
bc269900 | 76 | %{?with_luajit:- Lua Programming Language: http://lua.org/} |
e6a4ac90 WF |
77 | - Maxima Computer Algebra System: http://maxima.sourceforge.net/ |
78 | - Octave for Numerical Computation: https://gnu.org/software/octave/ | |
79 | - Python 2 Programming Language: http://python.org/ | |
80 | - Python 3 Programming Language: http://python.org/ | |
81 | - Qalculate Desktop Calculator: http://qalculate.sourceforge.net/ | |
82 | - R Project for Statistical Computing: http://r-project.org/ | |
83 | - Sage Mathematics Software: http://sagemath.org/ | |
84 | - Scilab for Numerical Computation: http://scilab.org/ | |
85 | ||
7f9fa5ad | 86 | %description -l pl.UTF-8 |
b34b0e7a WF |
87 | Cantor jest programem KDE, którego celem jest dostarczenie miłego |
88 | interfejsu do obliczeń naukowych. Cantor nie implementuje własnej | |
89 | logiki obliczeń, zamiast tego jest zbudowany wokół różnych backendów. | |
7f9fa5ad WF |
90 | |
91 | Dostępne backendy: | |
92 | - język programowania Julia: http://julialang.org/ | |
93 | - KAlgebra do obliczeń i rysowania: http://edu.kde.org/kalgebra/ | |
b34b0e7a | 94 | %{?with_luajit:- język Lua: http://lua.org/} |
7f9fa5ad WF |
95 | - system komputerowej algebry Maxima: http://maxima.sourceforge.net/ |
96 | - Octave do obliczeń numerycznych: https://gnu.org/software/octave/ | |
97 | - język Python 3: http://python.org/ | |
98 | - kalkulator biurkowy Qalculate: http://qalculate.sourceforge.net/ | |
99 | - projekt R do obliczeń statystycznych: http://r-project.org/ | |
100 | - oprogramowanie matematyczne Sage: http://sagemath.org/ | |
101 | - Scilab do obliczeń numerycznych: http://scilab.org/ | |
102 | ||
e6a4ac90 WF |
103 | %package devel |
104 | Summary: Header files for %{kaname} development | |
105 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kpname} | |
106 | Group: X11/Development/Libraries | |
107 | Requires: %{name} = %{version}-%{release} | |
108 | ||
109 | %description devel | |
110 | Header files for %{kaname} development. | |
111 | ||
112 | %description devel -l pl.UTF-8 | |
113 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
114 | ||
115 | %prep | |
116 | %setup -q -n %{kaname}-%{version} | |
117 | ||
118 | %build | |
119 | install -d build | |
120 | cd build | |
121 | %cmake \ | |
ccf030a0 | 122 | -G Ninja \ |
72e612e1 | 123 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
e6a4ac90 WF |
124 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
125 | .. | |
ccf030a0 | 126 | %ninja_build |
e6a4ac90 WF |
127 | |
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
ccf030a0 | 130 | %ninja_install -C build |
e6a4ac90 | 131 | |
bc269900 WF |
132 | sed -i -e 's#/usr/bin/env bash#/bin/bash#' $RPM_BUILD_ROOT%{_datadir}/cantor/sagebackend/cantor-execsage |
133 | ||
e6a4ac90 WF |
134 | %find_lang %{kaname} --all-name --with-kde |
135 | ||
136 | %clean | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
139 | %post -p /sbin/ldconfig | |
140 | %postun -p /sbin/ldconfig | |
141 | ||
142 | %files -f %{kaname}.lang | |
143 | %defattr(644,root,root,755) | |
bc269900 WF |
144 | %{?with_luajit:%{_datadir}/knsrcfiles/cantor_lua.knsrc} |
145 | %attr(755,root,root) %{_bindir}/cantor_pythonserver | |
146 | %attr(755,root,root) %{_libdir}/cantor_pythonbackend.so | |
d0f93310 | 147 | %ghost %{_libdir}/libcantorlibs.so.28 |
bc269900 WF |
148 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_pythonbackend.so |
149 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/panels/cantor_filebrowserpanelplugin.so | |
150 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/panels/cantor_tocpanelplugin.so | |
151 | %{_datadir}/cantor/octave/graphic_packages.xml | |
152 | %{_datadir}/cantor/python/graphic_packages.xml | |
153 | %{_datadir}/config.kcfg/pythonbackend.kcfg | |
154 | %{_datadir}/knsrcfiles/cantor.knsrc | |
155 | %{_datadir}/knsrcfiles/cantor_kalgebra.knsrc | |
156 | %{_datadir}/knsrcfiles/cantor_maxima.knsrc | |
157 | %{_datadir}/knsrcfiles/cantor_octave.knsrc | |
158 | %{_datadir}/knsrcfiles/cantor_python.knsrc | |
159 | %{_datadir}/knsrcfiles/cantor_qalculate.knsrc | |
160 | %{_datadir}/knsrcfiles/cantor_r.knsrc | |
161 | %{_datadir}/knsrcfiles/cantor_sage.knsrc | |
162 | %{_datadir}/knsrcfiles/cantor_scilab.knsrc | |
e6a4ac90 | 163 | %attr(755,root,root) %{_bindir}/cantor |
e6a4ac90 | 164 | %attr(755,root,root) %{_bindir}/cantor_rserver |
fd17d32c | 165 | %attr(755,root,root) %{_bindir}/cantor_scripteditor |
e6a4ac90 | 166 | %attr(755,root,root) %{_libdir}/libcantor_config.so |
e6a4ac90 WF |
167 | %attr(755,root,root) %{_libdir}/libcantorlibs.so.*.*.* |
168 | %dir %{_libdir}/qt5/plugins/cantor | |
169 | %dir %{_libdir}/qt5/plugins/cantor/assistants | |
170 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_advancedplotassistant.so | |
171 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_creatematrixassistant.so | |
172 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_differentiateassistant.so | |
173 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_eigenvaluesassistant.so | |
174 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_eigenvectorsassistant.so | |
175 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_importpackageassistant.so | |
176 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_integrateassistant.so | |
177 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_invertmatrixassistant.so | |
178 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_plot2dassistant.so | |
179 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_plot3dassistant.so | |
180 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_qalculateplotassistant.so | |
181 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_runscriptassistant.so | |
182 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_solveassistant.so | |
183 | %dir %{_libdir}/qt5/plugins/cantor/backends | |
184 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_kalgebrabackend.so | |
fcd8e608 | 185 | %{?with_luajit:%attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_luabackend.so} |
e6a4ac90 | 186 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_maximabackend.so |
e6a4ac90 | 187 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_octavebackend.so |
e6a4ac90 WF |
188 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_qalculatebackend.so |
189 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_rbackend.so | |
190 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_sagebackend.so | |
191 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_scilabbackend.so | |
192 | %dir %{_libdir}/qt5/plugins/cantor/panels | |
193 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/panels/cantor_helppanelplugin.so | |
194 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/panels/cantor_variablemanagerplugin.so | |
e6a4ac90 | 195 | %{_desktopdir}/org.kde.cantor.desktop |
bc269900 WF |
196 | %dir %{_datadir}/cantor |
197 | %dir %{_datadir}/cantor/sagebackend | |
198 | %attr(755,root,root) %{_datadir}/cantor/sagebackend/cantor-execsage | |
199 | %{_datadir}/cantor/latex | |
200 | %{_datadir}/cantor/maximabackend | |
201 | %{_datadir}/cantor/octavebackend | |
202 | %dir %{_datadir}/cantor/octave | |
203 | %dir %{_datadir}/cantor/python | |
204 | %{_datadir}/cantor/xslt | |
e6a4ac90 WF |
205 | %{_datadir}/config.kcfg/cantor.kcfg |
206 | %{_datadir}/config.kcfg/cantor_libs.kcfg | |
207 | %{_datadir}/config.kcfg/kalgebrabackend.kcfg | |
208 | %{_datadir}/config.kcfg/maximabackend.kcfg | |
e6a4ac90 WF |
209 | %{_datadir}/config.kcfg/qalculatebackend.kcfg |
210 | %{_datadir}/config.kcfg/rserver.kcfg | |
211 | %{_datadir}/config.kcfg/sagebackend.kcfg | |
212 | %{_datadir}/config.kcfg/scilabbackend.kcfg | |
213 | %{_iconsdir}/hicolor/128x128/apps/cantor.png | |
214 | %{_iconsdir}/hicolor/16x16/apps/cantor.png | |
215 | %{_iconsdir}/hicolor/22x22/apps/cantor.png | |
216 | %{_iconsdir}/hicolor/32x32/apps/cantor.png | |
217 | %{_iconsdir}/hicolor/48x48/apps/cantor.png | |
218 | %{_iconsdir}/hicolor/48x48/apps/juliabackend.png | |
219 | %{_iconsdir}/hicolor/48x48/apps/kalgebrabackend.png | |
fcd8e608 | 220 | %{?with_luajit:%{_iconsdir}/hicolor/48x48/apps/luabackend.png} |
e6a4ac90 WF |
221 | %{_iconsdir}/hicolor/48x48/apps/maximabackend.png |
222 | %{_iconsdir}/hicolor/48x48/apps/octavebackend.png | |
223 | %{_iconsdir}/hicolor/48x48/apps/pythonbackend.png | |
224 | %{_iconsdir}/hicolor/48x48/apps/qalculatebackend.png | |
225 | %{_iconsdir}/hicolor/48x48/apps/rbackend.png | |
226 | %{_iconsdir}/hicolor/48x48/apps/sagebackend.png | |
227 | %{_iconsdir}/hicolor/48x48/apps/scilabbackend.png | |
228 | %{_iconsdir}/hicolor/64x64/apps/cantor.png | |
229 | %dir %{_datadir}/kxmlgui5/cantor | |
230 | %{_datadir}/kxmlgui5/cantor/cantor_part.rc | |
231 | %{_datadir}/kxmlgui5/cantor/cantor_scripteditor.rc | |
232 | %{_datadir}/kxmlgui5/cantor/cantor_shell.rc | |
fd17d32c WF |
233 | %{_datadir}/kxmlgui5/cantor/cantor_advancedplot_assistant.rc |
234 | %{_datadir}/kxmlgui5/cantor/cantor_create_matrix_assistant.rc | |
235 | %{_datadir}/kxmlgui5/cantor/cantor_differentiate_assistant.rc | |
236 | %{_datadir}/kxmlgui5/cantor/cantor_eigenvalues_assistant.rc | |
237 | %{_datadir}/kxmlgui5/cantor/cantor_eigenvectors_assistant.rc | |
238 | %{_datadir}/kxmlgui5/cantor/cantor_import_package_assistant.rc | |
239 | %{_datadir}/kxmlgui5/cantor/cantor_integrate_assistant.rc | |
240 | %{_datadir}/kxmlgui5/cantor/cantor_invert_matrix_assistant.rc | |
241 | %{_datadir}/kxmlgui5/cantor/cantor_plot2d_assistant.rc | |
242 | %{_datadir}/kxmlgui5/cantor/cantor_plot3d_assistant.rc | |
243 | %{_datadir}/kxmlgui5/cantor/cantor_qalculateplotassistant.rc | |
244 | %{_datadir}/kxmlgui5/cantor/cantor_runscript_assistant.rc | |
245 | %{_datadir}/kxmlgui5/cantor/cantor_solve_assistant.rc | |
e6a4ac90 | 246 | %{_datadir}/metainfo/org.kde.cantor.appdata.xml |
fcd8e608 | 247 | %{?with_luajit:%{_datadir}/config.kcfg/luabackend.kcfg} |
d0f93310 | 248 | %{_datadir}/mime/packages/cantor.xml |
b34b0e7a WF |
249 | %{_libdir}/qt5/plugins/cantor/panels/cantor_documentationpanelplugin.so |
250 | %{_libdir}/qt5/plugins/kf5/parts/cantorpart.so | |
251 | %{_datadir}/config.kcfg/octavebackend.kcfg.in | |
252 | %{_datadir}/knsrcfiles/cantor-documentation.knsrc | |
e6a4ac90 WF |
253 | |
254 | %files devel | |
255 | %defattr(644,root,root,755) | |
256 | %{_includedir}/cantor | |
d0f93310 | 257 | %{_libdir}/libcantorlibs.so |
72e612e1 | 258 | %{_libdir}/cmake/Cantor |