]>
Commit | Line | Data |
---|---|---|
ff962de2 | 1 | # TODO: |
2 | # - fix desktop file location | |
3 | # - use find_lang, check BRs | |
779214b7 AG |
4 | Summary: A multi-purpose desktop calculator for GNU/Linux |
5 | Name: qalculate-kde | |
6 | Version: 0.9.4 | |
7 | Release: 0.1 | |
8 | License: GPL | |
9 | Group: Applications/Engineering | |
779214b7 AG |
10 | Source0: http://dl.sourceforge.net/qalculate/%{name}-%{version}.tar.gz |
11 | # Source0-md5: ec11bf96f181d6eb3ad1ddc430388701 | |
ff962de2 | 12 | URL: http://qalculate.sourceforge.net/ |
779214b7 AG |
13 | BuildRequires: gettext |
14 | BuildRequires: kdelibs-devel | |
15 | BuildRequires: libqalculate-devel | |
ff962de2 | 16 | BuildRequires: rpmbuild(macros) >= 1.129 |
779214b7 AG |
17 | Requires: gnuplot |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | Qalculate! is a modern multi-purpose desktop calculator for GNU/Linux. | |
22 | It is small and simple to use but with much power and versatility | |
23 | underneath. Features include customizable functions, units, arbitrary | |
24 | precision, plotting. | |
25 | ||
26 | This package provides a QT/KDE graphical interface for Qalculate! | |
27 | ||
28 | %prep | |
29 | %setup -q | |
30 | ||
31 | %build | |
32 | #unset QTDIR || : ; . %{_sysconfdir}/profile.d/qt.sh | |
33 | #export QTLIB=${QTDIR}/lib QTINC=${QTDIR}/include | |
34 | %configure \ | |
35 | --disable-rpath | |
36 | ||
37 | %{__make} | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %{__make} install \ | |
43 | kde_htmldir=%{_kdedocdir} \ | |
44 | DESTDIR=$RPM_BUILD_ROOT | |
45 | ||
46 | #%find_lang %{name}_kde | |
47 | # --with-kde | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | # -f %{name}.lang | |
55 | %doc AUTHORS ChangeLog COPYING | |
56 | %attr(755,root,root) %{_bindir}/qalculate-kde | |
57 | %{_iconsdir}/hicolor/*/apps/* | |
58 | %{_iconsdir}/hicolor/32x32/actions/qalculate_convert.png | |
59 | %{_datadir}/applnk/Utilities/qalculate_kde.desktop | |
60 | %{_datadir}/apps/qalculate_kde/qalculate_kdeui.rc | |
61 | %{_docdir}/kde/HTML/en/qalculate_kde/* | |
62 | # /usr/share/locale/nl/LC_MESSAGES/qalculate_kde.mo | |
63 | # /usr/share/locale/sv/LC_MESSAGES/qalculate_kde.mo | |
64 | ||
65 | #%{_datadir}/locale/sv/LC_MESSAGES/qalculate_kde.mo # FIXME consider using %find_lang |