]> git.pld-linux.org Git - packages/galculator.git/blob - galculator.spec
- up to 2.1.4;
[packages/galculator.git] / galculator.spec
1 #
2 # Conditional build:
3 %bcond_with     gtk3    # use GTK+ 3.x instead of 2.x
4
5 Summary:        A GTK+ 2 based scientific calculator
6 Summary(pl.UTF-8):      Kalkulator naukowy bazujący na GTK+ 2
7 Name:           galculator
8 Version:        2.1.2
9 Release:        2
10 License:        GPL v2+
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
18 BuildRequires:  flex
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)
25
26 %description
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).
30
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,
35 gradus).
36
37 %prep
38 %setup -q
39 %patch0 -p1
40
41 %build
42 %{__aclocal}
43 %{__autoconf}
44 %{__automake}
45 %configure \
46         %{__enable_disable gtk3}
47 %{__make}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{da_DK,da}
55 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{kk_KZ,kk}
56
57 %find_lang %{name}
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %post
63 %update_desktop_database
64 %update_icon_cache hicolor
65
66 %postun
67 %update_desktop_database
68 %update_icon_cache hicolor
69
70 %files -f %{name}.lang
71 %defattr(644,root,root,755)
72 %attr(755,root,root) %{_bindir}/%{name}
73 %{_mandir}/man1/%{name}.1*
74 %{_datadir}/%{name}
75 %{_desktopdir}/%{name}.desktop
76 %{_pixmapsdir}/%{name}.xpm
77 %{_iconsdir}/hicolor/*/apps/galculator.png
78 %{_iconsdir}/hicolor/*/apps/galculator.svg
This page took 0.07106 seconds and 3 git commands to generate.