ebb2abb59f6f20f4b3c6587088efa2deac25b5c9
[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.04.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.04.0
16 Release:        1
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:  edbc7d0600041260f9d3fdec3aef1437
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:  Qt5Widgets-devel
29 BuildRequires:  Qt5Xml-devel
30 BuildRequires:  Qt5XmlPatterns-devel
31 BuildRequires:  R
32 BuildRequires:  cmake >= 2.8.12
33 BuildRequires:  gettext-devel
34 BuildRequires:  ka5-analitza-devel
35 BuildRequires:  kf5-extra-cmake-modules >= %{kframever}
36 BuildRequires:  kf5-karchive-devel >= %{kframever}
37 BuildRequires:  kf5-kcompletion-devel >= %{kframever}
38 BuildRequires:  kf5-kconfig-devel >= %{kframever}
39 BuildRequires:  kf5-kcoreaddons-devel >= %{kframever}
40 BuildRequires:  kf5-kcrash-devel >= %{kframever}
41 BuildRequires:  kf5-kdoctools-devel >= %{kframever}
42 BuildRequires:  kf5-ki18n-devel >= %{kframever}
43 BuildRequires:  kf5-kiconthemes-devel >= %{kframever}
44 BuildRequires:  kf5-kio-devel >= %{kframever}
45 BuildRequires:  kf5-knewstuff-devel >= %{kframever}
46 BuildRequires:  kf5-kparts-devel >= %{kframever}
47 BuildRequires:  kf5-kpty-devel >= %{kframever}
48 BuildRequires:  kf5-ktexteditor-devel >= %{kframever}
49 BuildRequires:  kf5-ktextwidgets-devel >= %{kframever}
50 BuildRequires:  kf5-kxmlgui-devel >= %{kframever}
51 BuildRequires:  kf5-syntax-highlighting-devel >= %{kframever}
52 BuildRequires:  libmarkdown-devel
53 BuildRequires:  libqalculate-devel >= 2.8.2
54 %{?with_luajit:BuildRequires:   luajit-devel}
55 BuildRequires:  ninja
56 BuildRequires:  qt5-build >= %{qtver}
57 BuildRequires:  rpmbuild(macros) >= 1.164
58 BuildRequires:  shared-mime-info
59 BuildRequires:  tar >= 1:1.22
60 BuildRequires:  xz
61 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62
63 %description
64 Cantor is a KDE Application aimed to provide a nice Interface for
65 doing Mathematics and Scientific Computing. It doesn't implement its
66 own Computation Logic, but instead is built around different Backends.
67
68 Available Backends
69 - Julia Programming Language: http://julialang.org/
70 - KAlgebra for Calculation and Plotting: http://edu.kde.org/kalgebra/
71   %{?with_luajit:- Lua Programming Language: http://lua.org/}
72 - Maxima Computer Algebra System: http://maxima.sourceforge.net/
73 - Octave for Numerical Computation: https://gnu.org/software/octave/
74 - Python 2 Programming Language: http://python.org/
75 - Python 3 Programming Language: http://python.org/
76 - Qalculate Desktop Calculator: http://qalculate.sourceforge.net/
77 - R Project for Statistical Computing: http://r-project.org/
78 - Sage Mathematics Software: http://sagemath.org/
79 - Scilab for Numerical Computation: http://scilab.org/
80
81 %package devel
82 Summary:        Header files for %{kaname} development
83 Summary(pl.UTF-8):      Pliki nagłówkowe dla programistów używających %{kpname}
84 Group:          X11/Development/Libraries
85 Requires:       %{name} = %{version}-%{release}
86
87 %description devel
88 Header files for %{kaname} development.
89
90 %description devel -l pl.UTF-8
91 Pliki nagłówkowe dla programistów używających %{kaname}.
92
93 %prep
94 %setup -q -n %{kaname}-%{version}
95
96 %build
97 install -d build
98 cd build
99 %cmake \
100         -G Ninja \
101         -DHTML_INSTALL_DIR=%{_kdedocdir} \
102         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
103         ..
104 %ninja_build
105
106 %install
107 rm -rf $RPM_BUILD_ROOT
108 %ninja_install -C build
109
110 sed -i -e 's#/usr/bin/env bash#/bin/bash#' $RPM_BUILD_ROOT%{_datadir}/cantor/sagebackend/cantor-execsage
111
112 %find_lang %{kaname} --all-name --with-kde
113
114 %clean
115 rm -rf $RPM_BUILD_ROOT
116
117 %post   -p /sbin/ldconfig
118 %postun -p /sbin/ldconfig
119
120 %files -f %{kaname}.lang
121 %defattr(644,root,root,755)
122 %{?with_luajit:%{_datadir}/knsrcfiles/cantor_lua.knsrc}
123 %attr(755,root,root) %{_bindir}/cantor_pythonserver
124 %attr(755,root,root) %{_libdir}/cantor_pythonbackend.so
125 %ghost %{_libdir}/libcantorlibs.so.28
126 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_pythonbackend.so
127 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/panels/cantor_filebrowserpanelplugin.so
128 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/panels/cantor_tocpanelplugin.so
129 %{_datadir}/cantor/octave/graphic_packages.xml
130 %{_datadir}/cantor/python/graphic_packages.xml
131 %{_datadir}/config.kcfg/pythonbackend.kcfg
132 %{_datadir}/knsrcfiles/cantor.knsrc
133 %{_datadir}/knsrcfiles/cantor_kalgebra.knsrc
134 %{_datadir}/knsrcfiles/cantor_maxima.knsrc
135 %{_datadir}/knsrcfiles/cantor_octave.knsrc
136 %{_datadir}/knsrcfiles/cantor_python.knsrc
137 %{_datadir}/knsrcfiles/cantor_qalculate.knsrc
138 %{_datadir}/knsrcfiles/cantor_r.knsrc
139 %{_datadir}/knsrcfiles/cantor_sage.knsrc
140 %{_datadir}/knsrcfiles/cantor_scilab.knsrc
141 %attr(755,root,root) %{_bindir}/cantor
142 %attr(755,root,root) %{_bindir}/cantor_rserver
143 %attr(755,root,root) %{_bindir}/cantor_scripteditor
144 %attr(755,root,root) %{_libdir}/libcantor_config.so
145 %attr(755,root,root) %{_libdir}/libcantorlibs.so.*.*.*
146 %dir %{_libdir}/qt5/plugins/cantor
147 %dir %{_libdir}/qt5/plugins/cantor/assistants
148 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_advancedplotassistant.so
149 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_creatematrixassistant.so
150 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_differentiateassistant.so
151 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_eigenvaluesassistant.so
152 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_eigenvectorsassistant.so
153 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_importpackageassistant.so
154 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_integrateassistant.so
155 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_invertmatrixassistant.so
156 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_plot2dassistant.so
157 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_plot3dassistant.so
158 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_qalculateplotassistant.so
159 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_runscriptassistant.so
160 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_solveassistant.so
161 %dir %{_libdir}/qt5/plugins/cantor/backends
162 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_kalgebrabackend.so
163 %{?with_luajit:%attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_luabackend.so}
164 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_maximabackend.so
165 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_octavebackend.so
166 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_qalculatebackend.so
167 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_rbackend.so
168 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_sagebackend.so
169 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_scilabbackend.so
170 %dir %{_libdir}/qt5/plugins/cantor/panels
171 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/panels/cantor_helppanelplugin.so
172 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/panels/cantor_variablemanagerplugin.so
173 %attr(755,root,root) %{_libdir}/qt5/plugins/libcantorpart.so
174 %{_desktopdir}/org.kde.cantor.desktop
175 %dir %{_datadir}/cantor
176 %dir %{_datadir}/cantor/sagebackend
177 %attr(755,root,root) %{_datadir}/cantor/sagebackend/cantor-execsage
178 %{_datadir}/cantor/latex
179 %{_datadir}/cantor/maximabackend
180 %{_datadir}/cantor/octavebackend
181 %dir %{_datadir}/cantor/octave
182 %dir %{_datadir}/cantor/python
183 %{_datadir}/cantor/xslt
184 %{_datadir}/config.kcfg/cantor.kcfg
185 %{_datadir}/config.kcfg/cantor_libs.kcfg
186 %{_datadir}/config.kcfg/kalgebrabackend.kcfg
187 %{_datadir}/config.kcfg/maximabackend.kcfg
188 %{_datadir}/config.kcfg/octavebackend.kcfg
189 %{_datadir}/config.kcfg/qalculatebackend.kcfg
190 %{_datadir}/config.kcfg/rserver.kcfg
191 %{_datadir}/config.kcfg/sagebackend.kcfg
192 %{_datadir}/config.kcfg/scilabbackend.kcfg
193 %{_iconsdir}/hicolor/128x128/apps/cantor.png
194 %{_iconsdir}/hicolor/16x16/apps/cantor.png
195 %{_iconsdir}/hicolor/22x22/apps/cantor.png
196 %{_iconsdir}/hicolor/32x32/apps/cantor.png
197 %{_iconsdir}/hicolor/48x48/apps/cantor.png
198 %{_iconsdir}/hicolor/48x48/apps/juliabackend.png
199 %{_iconsdir}/hicolor/48x48/apps/kalgebrabackend.png
200 %{?with_luajit:%{_iconsdir}/hicolor/48x48/apps/luabackend.png}
201 %{_iconsdir}/hicolor/48x48/apps/maximabackend.png
202 %{_iconsdir}/hicolor/48x48/apps/octavebackend.png
203 %{_iconsdir}/hicolor/48x48/apps/pythonbackend.png
204 %{_iconsdir}/hicolor/48x48/apps/qalculatebackend.png
205 %{_iconsdir}/hicolor/48x48/apps/rbackend.png
206 %{_iconsdir}/hicolor/48x48/apps/sagebackend.png
207 %{_iconsdir}/hicolor/48x48/apps/scilabbackend.png
208 %{_iconsdir}/hicolor/64x64/apps/cantor.png
209 %dir %{_datadir}/kxmlgui5/cantor
210 %{_datadir}/kxmlgui5/cantor/cantor_part.rc
211 %{_datadir}/kxmlgui5/cantor/cantor_scripteditor.rc
212 %{_datadir}/kxmlgui5/cantor/cantor_shell.rc
213 %{_datadir}/kxmlgui5/cantor/cantor_advancedplot_assistant.rc
214 %{_datadir}/kxmlgui5/cantor/cantor_create_matrix_assistant.rc
215 %{_datadir}/kxmlgui5/cantor/cantor_differentiate_assistant.rc
216 %{_datadir}/kxmlgui5/cantor/cantor_eigenvalues_assistant.rc
217 %{_datadir}/kxmlgui5/cantor/cantor_eigenvectors_assistant.rc
218 %{_datadir}/kxmlgui5/cantor/cantor_import_package_assistant.rc
219 %{_datadir}/kxmlgui5/cantor/cantor_integrate_assistant.rc
220 %{_datadir}/kxmlgui5/cantor/cantor_invert_matrix_assistant.rc
221 %{_datadir}/kxmlgui5/cantor/cantor_plot2d_assistant.rc
222 %{_datadir}/kxmlgui5/cantor/cantor_plot3d_assistant.rc
223 %{_datadir}/kxmlgui5/cantor/cantor_qalculateplotassistant.rc
224 %{_datadir}/kxmlgui5/cantor/cantor_runscript_assistant.rc
225 %{_datadir}/kxmlgui5/cantor/cantor_solve_assistant.rc
226 %{_datadir}/metainfo/org.kde.cantor.appdata.xml
227 %{?with_luajit:%{_datadir}/config.kcfg/luabackend.kcfg}
228 %{_datadir}/mime/packages/cantor.xml
229
230 %files devel
231 %defattr(644,root,root,755)
232 %{_includedir}/cantor
233 %{_libdir}/libcantorlibs.so
234 %{_libdir}/cmake/Cantor
This page took 0.118528 seconds and 2 git commands to generate.