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