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