]> git.pld-linux.org Git - packages/galculator.git/blobdiff - galculator.spec
drop invalid locales
[packages/galculator.git] / galculator.spec
index 6dc20cb84f1e2619a4f4f7388ce0dc0b66c43dd4..a5f7d189ca2249895112d61ffd35dcc199777583 100644 (file)
@@ -1,30 +1,37 @@
-Summary:       A GTK 2 based scientific calculator
-Summary(pl):   Kalkulator naukowy bazuj±cy na GTK 2
+#
+# Conditional build:
+%bcond_with    gtk3    # use GTK+ 3.x instead of 2.x
+
+Summary:       A GTK+ 2 based scientific calculator
+Summary(pl.UTF-8):     Kalkulator naukowy bazujący na GTK+ 2
 Name:          galculator
-Version:       1.2.2
-Release:       1
-License:       GPL
+Version:       2.1.2
+Release:       2
+License:       GPL v2+
 Group:         Applications/Math
-Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
-# Source0-md5: 6db5f352e426ade78a993f88588a1dd6
-Patch0:                %{name}-am.patch
+Source0:       http://downloads.sourceforge.net/galculator/%{name}-%{version}.tar.bz2
+# Source0-md5: 01c97ec3e18c26c64af78dca9f700d43
+Patch0:                %{name}-desktop.patch
 URL:           http://galculator.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: flex
-BuildRequires: libglade2-devel >= 2.0.1
+BuildRequires: libglade2-devel >= 1:2.0.1
 BuildRequires: pkgconfig
+Requires:      desktop-file-utils
+Requires:      gtk-update-icon-cache
+Requires:      hicolor-icon-theme
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-GTK 2 based scientific calculator with ordinary notation/reverse
+GTK+ 2 based scientific calculator with ordinary notation/reverse
 polish notation, different number bases (DEC, HEX, OCT, BIN) and
 different angle bases (DEG, RAD, GRAD).
 
-%description -l pl
-Kalkulator naukowy bazuj±cy na GTK 2 z notacj± zwyk³± i odwrotn±
-polsk±, ró¿nymi systemami liczbowymi (dziesiêtny, szesnastkowy,
-ósemkowy, binarny) i ró¿nymi miarami k±towymi (stopieñ, radian,
+%description -l pl.UTF-8
+Kalkulator naukowy bazujący na GTK+ 2 z notacją zwykłą i odwrotną
+polską, różnymi systemami liczbowymi (dziesiętny, szesnastkowy,
+ósemkowy, binarny) i różnymi miarami kątowymi (stopień, radian,
 gradus).
 
 %prep
@@ -35,23 +42,37 @@ gradus).
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+       %{__enable_disable gtk3}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+rm -r $RPM_BUILD_ROOT%{_localedir}/da_DK
+rm -r $RPM_BUILD_ROOT%{_localedir}/kk_KZ
+
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%update_desktop_database
+%update_icon_cache hicolor
+
+%postun
+%update_desktop_database
+%update_icon_cache hicolor
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/%{name}
-%{_desktopdir}/%{name}.desktop
-%{_datadir}/%{name}
 %{_mandir}/man1/%{name}.1*
+%{_datadir}/%{name}
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{name}.xpm
+%{_iconsdir}/hicolor/*/apps/galculator.png
+%{_iconsdir}/hicolor/*/apps/galculator.svg
This page took 0.055553 seconds and 4 git commands to generate.