]>
Commit | Line | Data |
---|---|---|
41b360e0 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x | |
4 | ||
5772d48a | 5 | Summary: A GTK+ 2 based scientific calculator |
fbe915c2 | 6 | Summary(pl.UTF-8): Kalkulator naukowy bazujący na GTK+ 2 |
bc37bdae | 7 | Name: galculator |
41b360e0 | 8 | Version: 2.1.2 |
772e43bf | 9 | Release: 2 |
41b360e0 | 10 | License: GPL v2+ |
bc37bdae | 11 | Group: Applications/Math |
41b360e0 ER |
12 | Source0: http://downloads.sourceforge.net/galculator/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 01c97ec3e18c26c64af78dca9f700d43 | |
33bec421 | 14 | Patch0: %{name}-desktop.patch |
54fd8899 | 15 | URL: http://galculator.sourceforge.net/ |
bc37bdae | 16 | BuildRequires: autoconf |
3998c9bf | 17 | BuildRequires: automake |
ee3d44b6 | 18 | BuildRequires: flex |
b6d1bfb2 | 19 | BuildRequires: libglade2-devel >= 1:2.0.1 |
3998c9bf | 20 | BuildRequires: pkgconfig |
41b360e0 ER |
21 | Requires: desktop-file-utils |
22 | Requires: gtk-update-icon-cache | |
23 | Requires: hicolor-icon-theme | |
bc37bdae | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
5772d48a | 27 | GTK+ 2 based scientific calculator with ordinary notation/reverse |
bc37bdae | 28 | polish notation, different number bases (DEC, HEX, OCT, BIN) and |
29 | different angle bases (DEG, RAD, GRAD). | |
30 | ||
fb55e291 JR |
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, | |
bc37bdae | 35 | gradus). |
36 | ||
37 | %prep | |
b6d1bfb2 | 38 | %setup -q |
715905f2 | 39 | %patch0 -p1 |
bc37bdae | 40 | |
41 | %build | |
3998c9bf | 42 | %{__aclocal} |
bc37bdae | 43 | %{__autoconf} |
3998c9bf | 44 | %{__automake} |
41b360e0 ER |
45 | %configure \ |
46 | %{__enable_disable gtk3} | |
bc37bdae | 47 | %{__make} |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
bc37bdae | 51 | %{__make} install \ |
be4915bd | 52 | DESTDIR=$RPM_BUILD_ROOT |
54fd8899 | 53 | |
8da1a097 JB |
54 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{da_DK,da} |
55 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{kk_KZ,kk} | |
772e43bf | 56 | |
54fd8899 | 57 | %find_lang %{name} |
bc37bdae | 58 | |
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
41b360e0 ER |
62 | %post |
63 | %update_desktop_database | |
64 | %update_icon_cache hicolor | |
65 | ||
66 | %postun | |
67 | %update_desktop_database | |
68 | %update_icon_cache hicolor | |
69 | ||
54fd8899 | 70 | %files -f %{name}.lang |
bc37bdae | 71 | %defattr(644,root,root,755) |
086bdd6a | 72 | %attr(755,root,root) %{_bindir}/%{name} |
086bdd6a | 73 | %{_mandir}/man1/%{name}.1* |
41b360e0 ER |
74 | %{_datadir}/%{name} |
75 | %{_desktopdir}/%{name}.desktop | |
76 | %{_pixmapsdir}/%{name}.xpm | |
77 | %{_iconsdir}/hicolor/*/apps/galculator.png | |
78 | %{_iconsdir}/hicolor/*/apps/galculator.svg |