]> git.pld-linux.org Git - packages/ka5-kcalc.git/blob - ka5-kcalc.spec
b0d029f0f459f9a592b99b5b461dd64d63177692
[packages/ka5-kcalc.git] / ka5-kcalc.spec
1 %define         kdeappsver      21.04.2
2 %define         kframever       5.56.0
3 %define         qtver           5.9.0
4 %define         kaname          kcalc
5 Summary:        Kcalc
6 Name:           ka5-%{kaname}
7 Version:        21.04.2
8 Release:        1
9 License:        GPL v2+/LGPL v2.1+
10 Group:          X11/Applications
11 Source0:        http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
12 # Source0-md5:  75f78b83d4c1a89b1bff8a98b34adf51
13 URL:            http://www.kde.org/
14 BuildRequires:  Qt5Core-devel >= %{qtver}
15 BuildRequires:  Qt5Gui-devel >= 5.11.1
16 BuildRequires:  Qt5Widgets-devel
17 BuildRequires:  cmake >= 2.8.12
18 BuildRequires:  gettext-devel
19 BuildRequires:  gmp-devel
20 BuildRequires:  kf5-extra-cmake-modules >= %{kframever}
21 BuildRequires:  kf5-kconfig-devel >= %{kframever}
22 BuildRequires:  kf5-kconfigwidgets-devel >= %{kframever}
23 BuildRequires:  kf5-kcrash-devel >= %{kframever}
24 BuildRequires:  kf5-kdoctools-devel >= %{kframever}
25 BuildRequires:  kf5-kguiaddons-devel >= %{kframever}
26 BuildRequires:  kf5-ki18n-devel >= %{kframever}
27 BuildRequires:  kf5-kinit-devel >= %{kframever}
28 BuildRequires:  kf5-knotifications-devel >= %{kframever}
29 BuildRequires:  kf5-kxmlgui-devel >= %{kframever}
30 BuildRequires:  ninja
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 KCalc is a calculator which offers many more mathematical functions
40 than meet the eye on a first glance.. Features. The usual
41 functionality offered by most scientific calculators; Trigonometric
42 functions, logic operations, and statistical calculations.
43
44 %prep
45 %setup -q -n %{kaname}-%{version}
46
47 %build
48 install -d build
49 cd build
50 %cmake \
51         -G Ninja \
52         -DHTML_INSTALL_DIR=%{_kdedocdir} \
53         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
54         ..
55 %ninja_build
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 %ninja_install -C build
60
61 rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/{lt,sr}
62 %find_lang %{kaname} --all-name --with-kde
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files -f %{kaname}.lang
68 %defattr(644,root,root,755)
69 %attr(755,root,root) %{_bindir}/kcalc
70 %attr(755,root,root) %{_libdir}/libkdeinit5_kcalc.so
71 %{_desktopdir}/org.kde.kcalc.desktop
72 %{_datadir}/config.kcfg/kcalc.kcfg
73 %{_datadir}/kcalc
74 %{_datadir}/kconf_update/kcalcrc.upd
75 %{_datadir}/kxmlgui5/kcalc
76 %{_datadir}/metainfo/org.kde.kcalc.appdata.xml
This page took 0.047737 seconds and 2 git commands to generate.