3 %bcond_with gtk3 # use GTK+ 3.x instead of 2.x
5 Summary: A GTK+ 2 based scientific calculator
6 Summary(pl.UTF-8): Kalkulator naukowy bazujący na GTK+ 2
11 Group: Applications/Math
12 Source0: http://downloads.sourceforge.net/galculator/%{name}-%{version}.tar.bz2
13 # Source0-md5: 01c97ec3e18c26c64af78dca9f700d43
14 Patch0: %{name}-desktop.patch
15 URL: http://galculator.sourceforge.net/
16 BuildRequires: autoconf
17 BuildRequires: automake
19 BuildRequires: libglade2-devel >= 1:2.0.1
20 BuildRequires: pkgconfig
21 Requires: desktop-file-utils
22 Requires: gtk-update-icon-cache
23 Requires: hicolor-icon-theme
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 GTK+ 2 based scientific calculator with ordinary notation/reverse
28 polish notation, different number bases (DEC, HEX, OCT, BIN) and
29 different angle bases (DEG, RAD, GRAD).
31 %description -l pl.UTF-8
32 Kalkulator naukowy bazujący na GTK+ 2 z notacją zwykłą i odwrotną
33 polską, różnymi systemami liczbowymi (dziesiętny, szesnastkowy,
34 ósemkowy, binarny) i różnymi miarami kątowymi (stopień, radian,
46 %{__enable_disable gtk3}
50 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
54 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{da_DK,da}
55 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{kk_KZ,kk}
60 rm -rf $RPM_BUILD_ROOT
63 %update_desktop_database
64 %update_icon_cache hicolor
67 %update_desktop_database
68 %update_icon_cache hicolor
70 %files -f %{name}.lang
71 %defattr(644,root,root,755)
72 %attr(755,root,root) %{_bindir}/%{name}
73 %{_mandir}/man1/%{name}.1*
75 %{_desktopdir}/%{name}.desktop
76 %{_pixmapsdir}/%{name}.xpm
77 %{_iconsdir}/hicolor/*/apps/galculator.png
78 %{_iconsdir}/hicolor/*/apps/galculator.svg