]>
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 | ||
e0a14afa | 10 | %define kdeappsver 23.08.5 |
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} | |
e0a14afa | 16 | Version: 23.08.5 |
bba8fa18 | 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 |
e0a14afa | 21 | # Source0-md5: b2579f3ac8b0618ebd14b21d3c1342a1 |
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 |
69bfeec3 | 35 | BuildRequires: cmake >= 3.20 |
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 | |
e6a4ac90 | 120 | %cmake \ |
69bfeec3 | 121 | -B build \ |
ccf030a0 | 122 | -G Ninja \ |
c2fe3556 | 123 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
72e612e1 | 124 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
69bfeec3 WF |
125 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
126 | %ninja_build -C build | |
e6a4ac90 | 127 | |
c2fe3556 | 128 | %if %{with tests} |
69bfeec3 | 129 | ctest --test-dir build |
c2fe3556 WF |
130 | %endif |
131 | ||
132 | ||
e6a4ac90 WF |
133 | %install |
134 | rm -rf $RPM_BUILD_ROOT | |
ccf030a0 | 135 | %ninja_install -C build |
e6a4ac90 WF |
136 | |
137 | %find_lang %{kaname} --all-name --with-kde | |
138 | ||
139 | %clean | |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
142 | %post -p /sbin/ldconfig | |
143 | %postun -p /sbin/ldconfig | |
144 | ||
145 | %files -f %{kaname}.lang | |
146 | %defattr(644,root,root,755) | |
bc269900 WF |
147 | %{?with_luajit:%{_datadir}/knsrcfiles/cantor_lua.knsrc} |
148 | %attr(755,root,root) %{_bindir}/cantor_pythonserver | |
149 | %attr(755,root,root) %{_libdir}/cantor_pythonbackend.so | |
d0f93310 | 150 | %ghost %{_libdir}/libcantorlibs.so.28 |
bc269900 WF |
151 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_pythonbackend.so |
152 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/panels/cantor_filebrowserpanelplugin.so | |
153 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/panels/cantor_tocpanelplugin.so | |
154 | %{_datadir}/cantor/octave/graphic_packages.xml | |
155 | %{_datadir}/cantor/python/graphic_packages.xml | |
156 | %{_datadir}/config.kcfg/pythonbackend.kcfg | |
157 | %{_datadir}/knsrcfiles/cantor.knsrc | |
158 | %{_datadir}/knsrcfiles/cantor_kalgebra.knsrc | |
159 | %{_datadir}/knsrcfiles/cantor_maxima.knsrc | |
160 | %{_datadir}/knsrcfiles/cantor_octave.knsrc | |
161 | %{_datadir}/knsrcfiles/cantor_python.knsrc | |
162 | %{_datadir}/knsrcfiles/cantor_qalculate.knsrc | |
163 | %{_datadir}/knsrcfiles/cantor_r.knsrc | |
164 | %{_datadir}/knsrcfiles/cantor_sage.knsrc | |
165 | %{_datadir}/knsrcfiles/cantor_scilab.knsrc | |
e6a4ac90 | 166 | %attr(755,root,root) %{_bindir}/cantor |
e6a4ac90 | 167 | %attr(755,root,root) %{_bindir}/cantor_rserver |
fd17d32c | 168 | %attr(755,root,root) %{_bindir}/cantor_scripteditor |
e6a4ac90 | 169 | %attr(755,root,root) %{_libdir}/libcantor_config.so |
e6a4ac90 WF |
170 | %attr(755,root,root) %{_libdir}/libcantorlibs.so.*.*.* |
171 | %dir %{_libdir}/qt5/plugins/cantor | |
172 | %dir %{_libdir}/qt5/plugins/cantor/assistants | |
173 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_advancedplotassistant.so | |
174 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_creatematrixassistant.so | |
175 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_differentiateassistant.so | |
176 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_eigenvaluesassistant.so | |
177 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_eigenvectorsassistant.so | |
178 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_importpackageassistant.so | |
179 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_integrateassistant.so | |
180 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_invertmatrixassistant.so | |
181 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_plot2dassistant.so | |
182 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_plot3dassistant.so | |
183 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_qalculateplotassistant.so | |
184 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_runscriptassistant.so | |
185 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_solveassistant.so | |
186 | %dir %{_libdir}/qt5/plugins/cantor/backends | |
187 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_kalgebrabackend.so | |
fcd8e608 | 188 | %{?with_luajit:%attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_luabackend.so} |
e6a4ac90 | 189 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_maximabackend.so |
e6a4ac90 | 190 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_octavebackend.so |
e6a4ac90 WF |
191 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_qalculatebackend.so |
192 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_rbackend.so | |
193 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_sagebackend.so | |
194 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_scilabbackend.so | |
195 | %dir %{_libdir}/qt5/plugins/cantor/panels | |
196 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/panels/cantor_helppanelplugin.so | |
197 | %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/panels/cantor_variablemanagerplugin.so | |
e6a4ac90 | 198 | %{_desktopdir}/org.kde.cantor.desktop |
bc269900 | 199 | %dir %{_datadir}/cantor |
bc269900 WF |
200 | %{_datadir}/cantor/latex |
201 | %{_datadir}/cantor/maximabackend | |
202 | %{_datadir}/cantor/octavebackend | |
203 | %dir %{_datadir}/cantor/octave | |
204 | %dir %{_datadir}/cantor/python | |
205 | %{_datadir}/cantor/xslt | |
e6a4ac90 WF |
206 | %{_datadir}/config.kcfg/cantor.kcfg |
207 | %{_datadir}/config.kcfg/cantor_libs.kcfg | |
208 | %{_datadir}/config.kcfg/kalgebrabackend.kcfg | |
209 | %{_datadir}/config.kcfg/maximabackend.kcfg | |
e6a4ac90 WF |
210 | %{_datadir}/config.kcfg/qalculatebackend.kcfg |
211 | %{_datadir}/config.kcfg/rserver.kcfg | |
212 | %{_datadir}/config.kcfg/sagebackend.kcfg | |
213 | %{_datadir}/config.kcfg/scilabbackend.kcfg | |
214 | %{_iconsdir}/hicolor/128x128/apps/cantor.png | |
215 | %{_iconsdir}/hicolor/16x16/apps/cantor.png | |
216 | %{_iconsdir}/hicolor/22x22/apps/cantor.png | |
217 | %{_iconsdir}/hicolor/32x32/apps/cantor.png | |
218 | %{_iconsdir}/hicolor/48x48/apps/cantor.png | |
219 | %{_iconsdir}/hicolor/48x48/apps/juliabackend.png | |
220 | %{_iconsdir}/hicolor/48x48/apps/kalgebrabackend.png | |
fcd8e608 | 221 | %{?with_luajit:%{_iconsdir}/hicolor/48x48/apps/luabackend.png} |
e6a4ac90 WF |
222 | %{_iconsdir}/hicolor/48x48/apps/maximabackend.png |
223 | %{_iconsdir}/hicolor/48x48/apps/octavebackend.png | |
224 | %{_iconsdir}/hicolor/48x48/apps/pythonbackend.png | |
225 | %{_iconsdir}/hicolor/48x48/apps/qalculatebackend.png | |
226 | %{_iconsdir}/hicolor/48x48/apps/rbackend.png | |
227 | %{_iconsdir}/hicolor/48x48/apps/sagebackend.png | |
228 | %{_iconsdir}/hicolor/48x48/apps/scilabbackend.png | |
229 | %{_iconsdir}/hicolor/64x64/apps/cantor.png | |
230 | %dir %{_datadir}/kxmlgui5/cantor | |
231 | %{_datadir}/kxmlgui5/cantor/cantor_part.rc | |
232 | %{_datadir}/kxmlgui5/cantor/cantor_scripteditor.rc | |
233 | %{_datadir}/kxmlgui5/cantor/cantor_shell.rc | |
fd17d32c WF |
234 | %{_datadir}/kxmlgui5/cantor/cantor_advancedplot_assistant.rc |
235 | %{_datadir}/kxmlgui5/cantor/cantor_create_matrix_assistant.rc | |
236 | %{_datadir}/kxmlgui5/cantor/cantor_differentiate_assistant.rc | |
237 | %{_datadir}/kxmlgui5/cantor/cantor_eigenvalues_assistant.rc | |
238 | %{_datadir}/kxmlgui5/cantor/cantor_eigenvectors_assistant.rc | |
239 | %{_datadir}/kxmlgui5/cantor/cantor_import_package_assistant.rc | |
240 | %{_datadir}/kxmlgui5/cantor/cantor_integrate_assistant.rc | |
241 | %{_datadir}/kxmlgui5/cantor/cantor_invert_matrix_assistant.rc | |
242 | %{_datadir}/kxmlgui5/cantor/cantor_plot2d_assistant.rc | |
243 | %{_datadir}/kxmlgui5/cantor/cantor_plot3d_assistant.rc | |
244 | %{_datadir}/kxmlgui5/cantor/cantor_qalculateplotassistant.rc | |
245 | %{_datadir}/kxmlgui5/cantor/cantor_runscript_assistant.rc | |
246 | %{_datadir}/kxmlgui5/cantor/cantor_solve_assistant.rc | |
e6a4ac90 | 247 | %{_datadir}/metainfo/org.kde.cantor.appdata.xml |
fcd8e608 | 248 | %{?with_luajit:%{_datadir}/config.kcfg/luabackend.kcfg} |
d0f93310 | 249 | %{_datadir}/mime/packages/cantor.xml |
b34b0e7a WF |
250 | %{_libdir}/qt5/plugins/cantor/panels/cantor_documentationpanelplugin.so |
251 | %{_libdir}/qt5/plugins/kf5/parts/cantorpart.so | |
252 | %{_datadir}/config.kcfg/octavebackend.kcfg.in | |
253 | %{_datadir}/knsrcfiles/cantor-documentation.knsrc | |
e6a4ac90 WF |
254 | |
255 | %files devel | |
256 | %defattr(644,root,root,755) | |
257 | %{_includedir}/cantor | |
d0f93310 | 258 | %{_libdir}/libcantorlibs.so |
72e612e1 | 259 | %{_libdir}/cmake/Cantor |