]>
Commit | Line | Data |
---|---|---|
f851455e WF |
1 | %define kdeappsver 18.12.0 |
2 | %define qtver 5.9.0 | |
3 | %define kaname kalgebra | |
4 | Summary: Kalgebra | |
5 | Name: ka5-%{kaname} | |
6 | Version: 18.12.0 | |
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 | |
11 | # Source0-md5: 0149b280afdf705bce796d26de87c113 | |
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 | |
30 | BuildRequires: qt5-build >= %{qtver} | |
31 | BuildRequires: rpmbuild(macros) >= 1.164 | |
32 | BuildRequires: shared-mime-info | |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: xz | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | KAlgebra is a fully featured calculator that lets you plot different | |
39 | types of 2D and 3D functions and to calculate easy (and not so easy) | |
40 | calculations, such as addition, trigonometric functions or | |
41 | derivatives. | |
42 | ||
43 | The application has been thought to be progressively understood for | |
44 | students, so that starting to use it doesn't get in the way. The | |
45 | language is deeply integrated with the UI, providing a dictionary with | |
46 | representations for all the available operations, code highlighting | |
47 | and code completion. | |
48 | ||
49 | %prep | |
50 | %setup -q -n %{kaname}-%{version} | |
51 | ||
52 | %build | |
53 | install -d build | |
54 | cd build | |
55 | %cmake \ | |
56 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
57 | .. | |
58 | %{__make} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | %{__make} -C build install \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
65 | %find_lang %{kaname} --all-name --with-kde | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files -f %{kaname}.lang | |
71 | %defattr(644,root,root,755) | |
72 | %attr(755,root,root) %{_bindir}/calgebra | |
73 | %attr(755,root,root) %{_bindir}/kalgebra | |
74 | %attr(755,root,root) %{_bindir}/kalgebramobile | |
75 | %{_desktopdir}/org.kde.kalgebra.desktop | |
76 | %{_desktopdir}/org.kde.kalgebramobile.desktop | |
77 | %{_iconsdir}/hicolor/64x64/apps/kalgebra.png | |
78 | %{_iconsdir}/hicolor/scalable/apps/kalgebra.svgz | |
79 | %dir %{_datadir}/kalgebramobile | |
80 | %dir %{_datadir}/kalgebramobile/plugins | |
81 | %{_datadir}/kalgebramobile/plugins/About.qml | |
82 | %{_datadir}/kalgebramobile/plugins/Console.qml | |
83 | %{_datadir}/kalgebramobile/plugins/Dictionary.qml | |
84 | %{_datadir}/kalgebramobile/plugins/Plot2D.qml | |
85 | %{_datadir}/kalgebramobile/plugins/Plot3D.qml | |
86 | %{_datadir}/kalgebramobile/plugins/Tables.qml | |
87 | %{_datadir}/kalgebramobile/plugins/VariablesView.qml | |
88 | %{_datadir}/kalgebramobile/plugins/kalgebraabout.json | |
89 | %{_datadir}/kalgebramobile/plugins/kalgebraconsole.json | |
90 | %{_datadir}/kalgebramobile/plugins/kalgebradictionary.json | |
91 | %{_datadir}/kalgebramobile/plugins/kalgebraplot2d.json | |
92 | %{_datadir}/kalgebramobile/plugins/kalgebraplot3d.json | |
93 | %{_datadir}/kalgebramobile/plugins/kalgebratables.json | |
94 | %{_datadir}/kalgebramobile/plugins/kalgebravariables.json | |
95 | %dir %{_datadir}/kalgebramobile/plugins/widgets | |
96 | %{_datadir}/kalgebramobile/plugins/widgets/Action.qml | |
97 | %{_datadir}/kalgebramobile/plugins/widgets/AddButton.qml | |
98 | %{_datadir}/kalgebramobile/plugins/widgets/Button.qml | |
99 | %{_datadir}/kalgebramobile/plugins/widgets/CalcButton.qml | |
100 | %{_datadir}/kalgebramobile/plugins/widgets/ComboBox.qml | |
101 | %{_datadir}/kalgebramobile/plugins/widgets/Dialog.qml | |
102 | %{_datadir}/kalgebramobile/plugins/widgets/ExpressionInput.qml | |
103 | %{_datadir}/kalgebramobile/plugins/widgets/KAlgebraMobile.qml | |
104 | %{_datadir}/kalgebramobile/plugins/widgets/KAlgebraPage.qml | |
105 | %{_datadir}/kalgebramobile/plugins/widgets/Label.qml | |
106 | %{_datadir}/kalgebramobile/plugins/widgets/RealInput.qml | |
107 | %{_datadir}/kalgebramobile/plugins/widgets/SimpleListView.qml | |
108 | %{_datadir}/kalgebramobile/plugins/widgets/qmldir | |
109 | %{_datadir}/katepart5/syntax/kalgebra.xml | |
110 | %{_datadir}/kservices5/graphsplasmoid.desktop | |
111 | %{_datadir}/metainfo/org.kde.kalgebra.appdata.xml | |
112 | %{_datadir}/metainfo/org.kde.kalgebramobile.appdata.xml | |
113 | %dir %{_datadir}/plasma/plasmoids/org.kde.graphsplasmoid | |
114 | %dir %{_datadir}/plasma/plasmoids/org.kde.graphsplasmoid/contents | |
115 | %dir %{_datadir}/plasma/plasmoids/org.kde.graphsplasmoid/contents/ui | |
116 | %{_datadir}/plasma/plasmoids/org.kde.graphsplasmoid/contents/ui/config.ui | |
117 | %{_datadir}/plasma/plasmoids/org.kde.graphsplasmoid/contents/ui/main.qml | |
118 | %{_datadir}/plasma/plasmoids/org.kde.graphsplasmoid/metadata.desktop |