]>
Commit | Line | Data |
---|---|---|
41b360e0 ER |
1 | # |
2 | # Conditional build: | |
8e4983c2 | 3 | %bcond_without gtk3 # use GTK+ 3.x instead of 2.x |
41b360e0 | 4 | |
8e4983c2 KM |
5 | Summary: A GTK+3 based scientific calculator |
6 | Summary(pl.UTF-8): Kalkulator naukowy bazujący na GTK+3 | |
bc37bdae | 7 | Name: galculator |
8e4983c2 KM |
8 | Version: 2.1.4 |
9 | Release: 1 | |
41b360e0 | 10 | License: GPL v2+ |
bc37bdae | 11 | Group: Applications/Math |
8e4983c2 KM |
12 | Source0: http://galculator.mnim.org/downloads/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 1a115d6799dc453a29760e7bd4a56374 | |
33bec421 | 14 | Patch0: %{name}-desktop.patch |
8e4983c2 | 15 | URL: http://galculator.mnim.org |
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 | |
8e4983c2 | 27 | GTK+3 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 | 31 | %description -l pl.UTF-8 |
8e4983c2 | 32 | Kalkulator naukowy bazujący na GTK+3 z notacją zwykłą i odwrotną |
fb55e291 JR |
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} |
8e4983c2 KM |
45 | # workaround for GCC10 build failure |
46 | export CFLAGS="%(echo %{optflags}) -fcommon" | |
47 | export CXXFLAGS="$CFLAGS" | |
41b360e0 ER |
48 | %configure \ |
49 | %{__enable_disable gtk3} | |
bc37bdae | 50 | %{__make} |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
bc37bdae | 54 | %{__make} install \ |
be4915bd | 55 | DESTDIR=$RPM_BUILD_ROOT |
54fd8899 | 56 | |
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 | 74 | %{_datadir}/%{name} |
8e4983c2 | 75 | %{_datadir}/appdata/galculator.appdata.xml |
41b360e0 ER |
76 | %{_desktopdir}/%{name}.desktop |
77 | %{_pixmapsdir}/%{name}.xpm | |
78 | %{_iconsdir}/hicolor/*/apps/galculator.png | |
79 | %{_iconsdir}/hicolor/*/apps/galculator.svg |