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