]> git.pld-linux.org Git - packages/ka5-cantor.git/blob - ka5-cantor.spec
f8e5337c2ddb58121d3844256364d22c3fb68a7e
[packages/ka5-cantor.git] / ka5-cantor.spec
1 %define         kdeappsver      19.04.1
2 %define         kframever       5.56.0
3 %define         qtver           5.9.0
4 %define         kaname          cantor
5 Summary:        Cantor
6 Name:           ka5-%{kaname}
7 Version:        19.04.1
8 Release:        1
9 License:        GPL v2+/LGPL v2.1+
10 Group:          X11/Libraries
11 Source0:        http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
12 # Source0-md5:  0a2d78da9b7a785adeddd1094e9bbe67
13 URL:            http://www.kde.org/
14 BuildRequires:  Qt5Core-devel >= %{qtver}
15 BuildRequires:  Qt5Gui-devel
16 BuildRequires:  Qt5Network-devel >= 5.11.1
17 BuildRequires:  Qt5PrintSupport-devel
18 BuildRequires:  Qt5Svg-devel
19 BuildRequires:  Qt5Test-devel
20 BuildRequires:  Qt5Widgets-devel
21 BuildRequires:  Qt5Xml-devel
22 BuildRequires:  Qt5XmlPatterns-devel
23 BuildRequires:  cmake >= 2.8.12
24 BuildRequires:  gettext-devel
25 BuildRequires:  kf5-extra-cmake-modules >= %{kframever}
26 BuildRequires:  kf5-karchive-devel >= %{kframever}
27 BuildRequires:  kf5-kcompletion-devel >= %{kframever}
28 BuildRequires:  kf5-kconfig-devel >= %{kframever}
29 BuildRequires:  kf5-kcoreaddons-devel >= %{kframever}
30 BuildRequires:  kf5-kcrash-devel >= %{kframever}
31 BuildRequires:  kf5-kdoctools-devel >= %{kframever}
32 BuildRequires:  kf5-ki18n-devel >= %{kframever}
33 BuildRequires:  kf5-kiconthemes-devel >= %{kframever}
34 BuildRequires:  kf5-kio-devel >= %{kframever}
35 BuildRequires:  kf5-knewstuff-devel >= %{kframever}
36 BuildRequires:  kf5-kparts-devel >= %{kframever}
37 BuildRequires:  kf5-kpty-devel >= %{kframever}
38 BuildRequires:  kf5-ktexteditor-devel >= %{kframever}
39 BuildRequires:  kf5-ktextwidgets-devel >= %{kframever}
40 BuildRequires:  kf5-kxmlgui-devel >= %{kframever}
41 BuildRequires:  kf5-syntax-highlighting-devel >= %{kframever}
42 BuildRequires:  libmarkdown-devel
43 BuildRequires:  libqalculate-devel >= 2.8.2
44 BuildRequires:  luajit-devel
45 BuildRequires:  ninja
46 BuildRequires:  qt5-build >= %{qtver}
47 BuildRequires:  rpmbuild(macros) >= 1.164
48 BuildRequires:  shared-mime-info
49 BuildRequires:  tar >= 1:1.22
50 BuildRequires:  xz
51 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53 %description
54 Cantor is a KDE Application aimed to provide a nice Interface for
55 doing Mathematics and Scientific Computing. It doesn't implement its
56 own Computation Logic, but instead is built around different Backends.
57
58 Available 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
72 Summary:        Header files for %{kaname} development
73 Summary(pl.UTF-8):      Pliki nagłówkowe dla programistów używających %{kpname}
74 Group:          X11/Development/Libraries
75 Requires:       %{name} = %{version}-%{release}
76
77 %description devel
78 Header files for %{kaname} development.
79
80 %description devel -l pl.UTF-8
81 Pliki nagłówkowe dla programistów używających %{kaname}.
82
83 %prep
84 %setup -q -n %{kaname}-%{version}
85
86 %build
87 install -d build
88 cd build
89 %cmake \
90         -G Ninja \
91         -DHTML_INSTALL_DIR=%{_kdedocdir} \
92         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
93         ..
94 %ninja_build
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98 %ninja_install -C build
99
100 %find_lang %{kaname} --all-name --with-kde
101
102 %clean
103 rm -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
112 /etc/xdg/cantor_lua.knsrc
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
122 %attr(755,root,root) %{_bindir}/cantor_python2server
123 %attr(755,root,root) %{_bindir}/cantor_python3server
124 %attr(755,root,root) %{_bindir}/cantor_rserver
125 %attr(755,root,root) %{_bindir}/cantor_scripteditor
126 %attr(755,root,root) %{_libdir}/libcantor_config.so
127 %attr(755,root,root) %{_libdir}/libcantor_pythonbackend.so
128 %attr(755,root,root) %ghost %{_libdir}/libcantorlibs.so.20
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
147 %attr(755,root,root) %{_libdir}/qt5/plugins/cantor/backends/cantor_luabackend.so
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
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
207 %{_datadir}/metainfo/org.kde.cantor.appdata.xml
208 %{_datadir}/config.kcfg/luabackend.kcfg
209
210 %files devel
211 %defattr(644,root,root,755)
212 %{_includedir}/cantor
213 %attr(755,root,root) %{_libdir}/libcantorlibs.so
214 %{_libdir}/cmake/Cantor
This page took 0.120647 seconds and 3 git commands to generate.