]> git.pld-linux.org Git - packages/ka5-cantor.git/blame - ka5-cantor.spec
- rebuild with python 3.8
[packages/ka5-cantor.git] / ka5-cantor.spec
CommitLineData
fcd8e608
JR
1#
2# Conditional build:
3%bcond_without luajit # build without luajit
4#
5%ifarch x32
6%undefine with_luajit
7%endif
8
72e612e1
WF
9%define kdeappsver 19.04.1
10%define kframever 5.56.0
fd17d32c 11%define qtver 5.9.0
e6a4ac90
WF
12%define kaname cantor
13Summary: Cantor
14Name: ka5-%{kaname}
72e612e1 15Version: 19.04.1
bce5ac84 16Release: 2
e6a4ac90
WF
17License: GPL v2+/LGPL v2.1+
18Group: X11/Libraries
19Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
72e612e1 20# Source0-md5: 0a2d78da9b7a785adeddd1094e9bbe67
e6a4ac90
WF
21URL: http://www.kde.org/
22BuildRequires: Qt5Core-devel >= %{qtver}
fd17d32c
WF
23BuildRequires: Qt5Gui-devel
24BuildRequires: Qt5Network-devel >= 5.11.1
25BuildRequires: Qt5PrintSupport-devel
26BuildRequires: Qt5Svg-devel
27BuildRequires: Qt5Test-devel
28BuildRequires: Qt5Widgets-devel
29BuildRequires: Qt5Xml-devel
30BuildRequires: Qt5XmlPatterns-devel
fcd8e608 31BuildRequires: R
e6a4ac90 32BuildRequires: cmake >= 2.8.12
fd17d32c 33BuildRequires: gettext-devel
fcd8e608 34BuildRequires: ka5-analitza-devel
72e612e1
WF
35BuildRequires: kf5-extra-cmake-modules >= %{kframever}
36BuildRequires: kf5-karchive-devel >= %{kframever}
37BuildRequires: kf5-kcompletion-devel >= %{kframever}
38BuildRequires: kf5-kconfig-devel >= %{kframever}
39BuildRequires: kf5-kcoreaddons-devel >= %{kframever}
40BuildRequires: kf5-kcrash-devel >= %{kframever}
41BuildRequires: kf5-kdoctools-devel >= %{kframever}
42BuildRequires: kf5-ki18n-devel >= %{kframever}
43BuildRequires: kf5-kiconthemes-devel >= %{kframever}
44BuildRequires: kf5-kio-devel >= %{kframever}
45BuildRequires: kf5-knewstuff-devel >= %{kframever}
46BuildRequires: kf5-kparts-devel >= %{kframever}
47BuildRequires: kf5-kpty-devel >= %{kframever}
48BuildRequires: kf5-ktexteditor-devel >= %{kframever}
49BuildRequires: kf5-ktextwidgets-devel >= %{kframever}
50BuildRequires: kf5-kxmlgui-devel >= %{kframever}
51BuildRequires: kf5-syntax-highlighting-devel >= %{kframever}
52BuildRequires: libmarkdown-devel
fd17d32c 53BuildRequires: libqalculate-devel >= 2.8.2
fcd8e608 54%{?with_luajit:BuildRequires: luajit-devel}
ccf030a0 55BuildRequires: ninja
e6a4ac90
WF
56BuildRequires: qt5-build >= %{qtver}
57BuildRequires: rpmbuild(macros) >= 1.164
58BuildRequires: shared-mime-info
59BuildRequires: tar >= 1:1.22
60BuildRequires: xz
61BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62
63%description
64Cantor is a KDE Application aimed to provide a nice Interface for
65doing Mathematics and Scientific Computing. It doesn't implement its
66own Computation Logic, but instead is built around different Backends.
67
68Available Backends
69- Julia Programming Language: http://julialang.org/
70- KAlgebra for Calculation and Plotting: http://edu.kde.org/kalgebra/
fcd8e608 71%{?with_luajit:- Lua Programming Language: http://lua.org/}
e6a4ac90
WF
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
82Summary: Header files for %{kaname} development
83Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kpname}
84Group: X11/Development/Libraries
85Requires: %{name} = %{version}-%{release}
86
87%description devel
88Header files for %{kaname} development.
89
90%description devel -l pl.UTF-8
91Pliki nagłówkowe dla programistów używających %{kaname}.
92
93%prep
94%setup -q -n %{kaname}-%{version}
95
96%build
97install -d build
98cd build
99%cmake \
ccf030a0 100 -G Ninja \
72e612e1 101 -DHTML_INSTALL_DIR=%{_kdedocdir} \
e6a4ac90
WF
102 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
103 ..
ccf030a0 104%ninja_build
e6a4ac90
WF
105
106%install
107rm -rf $RPM_BUILD_ROOT
ccf030a0 108%ninja_install -C build
e6a4ac90
WF
109
110%find_lang %{kaname} --all-name --with-kde
111
112%clean
113rm -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
fcd8e608 122%{?with_luajit:/etc/xdg/cantor_lua.knsrc}
e6a4ac90
WF
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
fd17d32c 132%attr(755,root,root) %{_bindir}/cantor_python2server
e6a4ac90
WF
133%attr(755,root,root) %{_bindir}/cantor_python3server
134%attr(755,root,root) %{_bindir}/cantor_rserver
fd17d32c 135%attr(755,root,root) %{_bindir}/cantor_scripteditor
e6a4ac90
WF
136%attr(755,root,root) %{_libdir}/libcantor_config.so
137%attr(755,root,root) %{_libdir}/libcantor_pythonbackend.so
fd17d32c 138%attr(755,root,root) %ghost %{_libdir}/libcantorlibs.so.20
e6a4ac90
WF
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
fcd8e608 157%{?with_luajit:%attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_luabackend.so}
e6a4ac90
WF
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
fcd8e608 191%{?with_luajit:%{_iconsdir}/hicolor/48x48/apps/luabackend.png}
e6a4ac90
WF
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
fd17d32c
WF
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
e6a4ac90 217%{_datadir}/metainfo/org.kde.cantor.appdata.xml
fcd8e608 218%{?with_luajit:%{_datadir}/config.kcfg/luabackend.kcfg}
e6a4ac90
WF
219
220%files devel
221%defattr(644,root,root,755)
222%{_includedir}/cantor
223%attr(755,root,root) %{_libdir}/libcantorlibs.so
72e612e1 224%{_libdir}/cmake/Cantor
This page took 0.071914 seconds and 4 git commands to generate.