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