5ee52019a18022406abf85c20246476ddd44af4d
[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      19.04.1
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:        19.04.1
16 Release:        2
17 License:        GPL v2+/LGPL v2.1+
18 Group:          X11/Libraries
19 Source0:        http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
20 # Source0-md5:  0a2d78da9b7a785adeddd1094e9bbe67
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 %find_lang %{kaname} --all-name --with-kde
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post   -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
117
118 %files -f %{kaname}.lang
119 %defattr(644,root,root,755)
120 /etc/xdg/cantor.knsrc
121 /etc/xdg/cantor_kalgebra.knsrc
122 %{?with_luajit:/etc/xdg/cantor_lua.knsrc}
123 /etc/xdg/cantor_maxima.knsrc
124 /etc/xdg/cantor_octave.knsrc
125 /etc/xdg/cantor_python2.knsrc
126 /etc/xdg/cantor_python3.knsrc
127 /etc/xdg/cantor_qalculate.knsrc
128 /etc/xdg/cantor_r.knsrc
129 /etc/xdg/cantor_sage.knsrc
130 /etc/xdg/cantor_scilab.knsrc
131 %attr(755,root,root) %{_bindir}/cantor
132 %attr(755,root,root) %{_bindir}/cantor_python2server
133 %attr(755,root,root) %{_bindir}/cantor_python3server
134 %attr(755,root,root) %{_bindir}/cantor_rserver
135 %attr(755,root,root) %{_bindir}/cantor_scripteditor
136 %attr(755,root,root) %{_libdir}/libcantor_config.so
137 %attr(755,root,root) %{_libdir}/libcantor_pythonbackend.so
138 %attr(755,root,root) %ghost %{_libdir}/libcantorlibs.so.20
139 %attr(755,root,root) %{_libdir}/libcantorlibs.so.*.*.*
140 %dir %{_libdir}/qt5/plugins/cantor
141 %dir %{_libdir}/qt5/plugins/cantor/assistants
142 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_advancedplotassistant.so
143 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_creatematrixassistant.so
144 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_differentiateassistant.so
145 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_eigenvaluesassistant.so
146 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_eigenvectorsassistant.so
147 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_importpackageassistant.so
148 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_integrateassistant.so
149 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_invertmatrixassistant.so
150 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_plot2dassistant.so
151 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_plot3dassistant.so
152 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_qalculateplotassistant.so
153 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_runscriptassistant.so
154 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/assistants/cantor_solveassistant.so
155 %dir %{_libdir}/qt5/plugins/cantor/backends
156 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_kalgebrabackend.so
157 %{?with_luajit:%attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_luabackend.so}
158 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_maximabackend.so
159 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_nullbackend.so
160 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_octavebackend.so
161 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_python2backend.so
162 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_python3backend.so
163 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_qalculatebackend.so
164 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_rbackend.so
165 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_sagebackend.so
166 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_scilabbackend.so
167 %dir %{_libdir}/qt5/plugins/cantor/panels
168 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/panels/cantor_helppanelplugin.so
169 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/panels/cantor_variablemanagerplugin.so
170 %attr(755,root,root) %{_libdir}/qt5/plugins/libcantorpart.so
171 %{_desktopdir}/org.kde.cantor.desktop
172 %{_datadir}/cantor
173 %{_datadir}/config.kcfg/cantor.kcfg
174 %{_datadir}/config.kcfg/cantor_libs.kcfg
175 %{_datadir}/config.kcfg/kalgebrabackend.kcfg
176 %{_datadir}/config.kcfg/maximabackend.kcfg
177 %{_datadir}/config.kcfg/octavebackend.kcfg
178 %{_datadir}/config.kcfg/python2backend.kcfg
179 %{_datadir}/config.kcfg/python3backend.kcfg
180 %{_datadir}/config.kcfg/qalculatebackend.kcfg
181 %{_datadir}/config.kcfg/rserver.kcfg
182 %{_datadir}/config.kcfg/sagebackend.kcfg
183 %{_datadir}/config.kcfg/scilabbackend.kcfg
184 %{_iconsdir}/hicolor/128x128/apps/cantor.png
185 %{_iconsdir}/hicolor/16x16/apps/cantor.png
186 %{_iconsdir}/hicolor/22x22/apps/cantor.png
187 %{_iconsdir}/hicolor/32x32/apps/cantor.png
188 %{_iconsdir}/hicolor/48x48/apps/cantor.png
189 %{_iconsdir}/hicolor/48x48/apps/juliabackend.png
190 %{_iconsdir}/hicolor/48x48/apps/kalgebrabackend.png
191 %{?with_luajit:%{_iconsdir}/hicolor/48x48/apps/luabackend.png}
192 %{_iconsdir}/hicolor/48x48/apps/maximabackend.png
193 %{_iconsdir}/hicolor/48x48/apps/octavebackend.png
194 %{_iconsdir}/hicolor/48x48/apps/pythonbackend.png
195 %{_iconsdir}/hicolor/48x48/apps/qalculatebackend.png
196 %{_iconsdir}/hicolor/48x48/apps/rbackend.png
197 %{_iconsdir}/hicolor/48x48/apps/sagebackend.png
198 %{_iconsdir}/hicolor/48x48/apps/scilabbackend.png
199 %{_iconsdir}/hicolor/64x64/apps/cantor.png
200 %dir %{_datadir}/kxmlgui5/cantor
201 %{_datadir}/kxmlgui5/cantor/cantor_part.rc
202 %{_datadir}/kxmlgui5/cantor/cantor_scripteditor.rc
203 %{_datadir}/kxmlgui5/cantor/cantor_shell.rc
204 %{_datadir}/kxmlgui5/cantor/cantor_advancedplot_assistant.rc
205 %{_datadir}/kxmlgui5/cantor/cantor_create_matrix_assistant.rc
206 %{_datadir}/kxmlgui5/cantor/cantor_differentiate_assistant.rc
207 %{_datadir}/kxmlgui5/cantor/cantor_eigenvalues_assistant.rc
208 %{_datadir}/kxmlgui5/cantor/cantor_eigenvectors_assistant.rc
209 %{_datadir}/kxmlgui5/cantor/cantor_import_package_assistant.rc
210 %{_datadir}/kxmlgui5/cantor/cantor_integrate_assistant.rc
211 %{_datadir}/kxmlgui5/cantor/cantor_invert_matrix_assistant.rc
212 %{_datadir}/kxmlgui5/cantor/cantor_plot2d_assistant.rc
213 %{_datadir}/kxmlgui5/cantor/cantor_plot3d_assistant.rc
214 %{_datadir}/kxmlgui5/cantor/cantor_qalculateplotassistant.rc
215 %{_datadir}/kxmlgui5/cantor/cantor_runscript_assistant.rc
216 %{_datadir}/kxmlgui5/cantor/cantor_solve_assistant.rc
217 %{_datadir}/metainfo/org.kde.cantor.appdata.xml
218 %{?with_luajit:%{_datadir}/config.kcfg/luabackend.kcfg}
219
220 %files devel
221 %defattr(644,root,root,755)
222 %{_includedir}/cantor
223 %attr(755,root,root) %{_libdir}/libcantorlibs.so
224 %{_libdir}/cmake/Cantor
This page took 0.09423 seconds and 3 git commands to generate.