]>
Commit | Line | Data |
---|---|---|
35b701f6 | 1 | %define kdeappsver 18.12.1 |
f851455e WF |
2 | %define qtver 5.9.0 |
3 | %define kaname kalgebra | |
4 | Summary: Kalgebra | |
5 | Name: ka5-%{kaname} | |
35b701f6 | 6 | Version: 18.12.1 |
f851455e WF |
7 | Release: 1 |
8 | License: GPL v2+/LGPL v2.1+ | |
9 | Group: X11/Libraries | |
10 | Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
35b701f6 | 11 | # Source0-md5: 236cf6afae6c15a1ba4fff48dcfb9447 |
f851455e WF |
12 | URL: http://www.kde.org/ |
13 | BuildRequires: Qt5Core-devel | |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
15 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
16 | BuildRequires: Qt5Network-devel >= 5.11.1 | |
17 | BuildRequires: Qt5PrintSupport-devel | |
18 | BuildRequires: Qt5Qml-devel | |
19 | BuildRequires: Qt5Quick-devel | |
20 | BuildRequires: Qt5Svg-devel | |
21 | BuildRequires: Qt5Test-devel | |
22 | BuildRequires: Qt5Widgets-devel >= 5.11.1 | |
23 | BuildRequires: Qt5Xml-devel | |
24 | BuildRequires: cmake >= 2.8.12 | |
25 | BuildRequires: gettext-devel | |
26 | BuildRequires: ka5-analitza-devel | |
27 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 | |
28 | BuildRequires: kf5-kcoreaddons-devel | |
29 | BuildRequires: kf5-ki18n-devel | |
35b701f6 | 30 | BuildRequires: ninja |
f851455e WF |
31 | BuildRequires: qt5-build >= %{qtver} |
32 | BuildRequires: rpmbuild(macros) >= 1.164 | |
33 | BuildRequires: shared-mime-info | |
34 | BuildRequires: tar >= 1:1.22 | |
35 | BuildRequires: xz | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | KAlgebra is a fully featured calculator that lets you plot different | |
40 | types of 2D and 3D functions and to calculate easy (and not so easy) | |
41 | calculations, such as addition, trigonometric functions or | |
42 | derivatives. | |
43 | ||
44 | The application has been thought to be progressively understood for | |
45 | students, so that starting to use it doesn't get in the way. The | |
46 | language is deeply integrated with the UI, providing a dictionary with | |
47 | representations for all the available operations, code highlighting | |
48 | and code completion. | |
49 | ||
50 | %prep | |
51 | %setup -q -n %{kaname}-%{version} | |
52 | ||
53 | %build | |
54 | install -d build | |
55 | cd build | |
56 | %cmake \ | |
35b701f6 | 57 | -G Ninja \ |
f851455e WF |
58 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
59 | .. | |
35b701f6 | 60 | %ninja_build |
f851455e WF |
61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
35b701f6 | 64 | %ninja_install -C build |
f851455e WF |
65 | |
66 | %find_lang %{kaname} --all-name --with-kde | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files -f %{kaname}.lang | |
72 | %defattr(644,root,root,755) | |
73 | %attr(755,root,root) %{_bindir}/calgebra | |
74 | %attr(755,root,root) %{_bindir}/kalgebra | |
75 | %attr(755,root,root) %{_bindir}/kalgebramobile | |
76 | %{_desktopdir}/org.kde.kalgebra.desktop | |
77 | %{_desktopdir}/org.kde.kalgebramobile.desktop | |
78 | %{_iconsdir}/hicolor/64x64/apps/kalgebra.png | |
79 | %{_iconsdir}/hicolor/scalable/apps/kalgebra.svgz | |
80 | %dir %{_datadir}/kalgebramobile | |
81 | %dir %{_datadir}/kalgebramobile/plugins | |
82 | %{_datadir}/kalgebramobile/plugins/About.qml | |
83 | %{_datadir}/kalgebramobile/plugins/Console.qml | |
84 | %{_datadir}/kalgebramobile/plugins/Dictionary.qml | |
85 | %{_datadir}/kalgebramobile/plugins/Plot2D.qml | |
86 | %{_datadir}/kalgebramobile/plugins/Plot3D.qml | |
87 | %{_datadir}/kalgebramobile/plugins/Tables.qml | |
88 | %{_datadir}/kalgebramobile/plugins/VariablesView.qml | |
89 | %{_datadir}/kalgebramobile/plugins/kalgebraabout.json | |
90 | %{_datadir}/kalgebramobile/plugins/kalgebraconsole.json | |
91 | %{_datadir}/kalgebramobile/plugins/kalgebradictionary.json | |
92 | %{_datadir}/kalgebramobile/plugins/kalgebraplot2d.json | |
93 | %{_datadir}/kalgebramobile/plugins/kalgebraplot3d.json | |
94 | %{_datadir}/kalgebramobile/plugins/kalgebratables.json | |
95 | %{_datadir}/kalgebramobile/plugins/kalgebravariables.json | |
96 | %dir %{_datadir}/kalgebramobile/plugins/widgets | |
97 | %{_datadir}/kalgebramobile/plugins/widgets/Action.qml | |
98 | %{_datadir}/kalgebramobile/plugins/widgets/AddButton.qml | |
99 | %{_datadir}/kalgebramobile/plugins/widgets/Button.qml | |
100 | %{_datadir}/kalgebramobile/plugins/widgets/CalcButton.qml | |
101 | %{_datadir}/kalgebramobile/plugins/widgets/ComboBox.qml | |
102 | %{_datadir}/kalgebramobile/plugins/widgets/Dialog.qml | |
103 | %{_datadir}/kalgebramobile/plugins/widgets/ExpressionInput.qml | |
104 | %{_datadir}/kalgebramobile/plugins/widgets/KAlgebraMobile.qml | |
105 | %{_datadir}/kalgebramobile/plugins/widgets/KAlgebraPage.qml | |
106 | %{_datadir}/kalgebramobile/plugins/widgets/Label.qml | |
107 | %{_datadir}/kalgebramobile/plugins/widgets/RealInput.qml | |
108 | %{_datadir}/kalgebramobile/plugins/widgets/SimpleListView.qml | |
109 | %{_datadir}/kalgebramobile/plugins/widgets/qmldir | |
110 | %{_datadir}/katepart5/syntax/kalgebra.xml | |
111 | %{_datadir}/kservices5/graphsplasmoid.desktop | |
112 | %{_datadir}/metainfo/org.kde.kalgebra.appdata.xml | |
113 | %{_datadir}/metainfo/org.kde.kalgebramobile.appdata.xml | |
114 | %dir %{_datadir}/plasma/plasmoids/org.kde.graphsplasmoid | |
115 | %dir %{_datadir}/plasma/plasmoids/org.kde.graphsplasmoid/contents | |
116 | %dir %{_datadir}/plasma/plasmoids/org.kde.graphsplasmoid/contents/ui | |
117 | %{_datadir}/plasma/plasmoids/org.kde.graphsplasmoid/contents/ui/config.ui | |
118 | %{_datadir}/plasma/plasmoids/org.kde.graphsplasmoid/contents/ui/main.qml | |
119 | %{_datadir}/plasma/plasmoids/org.kde.graphsplasmoid/metadata.desktop |