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