6 Summary: K Desktop Environment - KDE calculator
11 Group: X11/Applications
12 Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
13 # Source0-md5: 5b3902e44e1ea5b68d0e33c1145c485a
14 URL: http://www.kde.org/
15 BuildRequires: automoc4 >= 0.9.88
16 BuildRequires: cmake >= 2.8.0
17 BuildRequires: docbook-dtd42-xml
18 BuildRequires: docbook-style-xsl
19 BuildRequires: gmp-devel
20 BuildRequires: kde4-kdebase-devel >= %{version}
21 BuildRequires: qt4-build >= %{qtver}
22 BuildRequires: qt4-qmake >= %{qtver}
23 Requires: kde4-kdebase-workspace >= 4.11.4
25 Obsoletes: kde4-kdeutils-kcalc
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %setup -q -n %{orgname}-%{version}
42 rm -rf $RPM_BUILD_ROOT
44 %{__make} -C build/ install \
45 DESTDIR=$RPM_BUILD_ROOT \
46 kde_htmldir=%{_kdedocdir}
48 %find_lang %{orgname} --with-kde
51 rm -rf $RPM_BUILD_ROOT
53 %files -f %{orgname}.lang
54 %defattr(644,root,root,755)
55 %attr(755,root,root) %{_bindir}/kcalc
56 %attr(755,root,root) %{_libdir}/libkdeinit4_kcalc.so
57 %{_datadir}/apps/kcalc
58 %{_datadir}/apps/kconf_update/kcalcrc.upd
59 %{_datadir}/config.kcfg/kcalc.kcfg
60 %{_desktopdir}/kde4/kcalc.desktop