File uget.spec of Package uget
#
# spec file for package uget
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: uget
Version: 1.6.2
Release: 2
# FIXME: check if SUSE_ASNEEDED=0 is still needed (last checked: 1.6.2)
License: LGPLv2.1+
Summary: Easy-to-use GTK+ Download Manager
Url: http://urlget.sourceforge.net/
Group: Productivity/Networking/Web/Utilities
Source: %{name}-%{version}.tar.bz2
BuildRequires: glib2-devel >= 2.22
BuildRequires: gstreamer-0_10-devel
BuildRequires: gtk2-devel >= 2.22
BuildRequires: intltool
BuildRequires: libcurl-devel
BuildRequires: libnotify-devel
BuildRequires: update-desktop-files
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Uget is a easy-to-use download manager written in GTK+. It supports
pause and resume, and the ability to classify download, with every
category having an independent configuration.
%lang_package
%prep
%setup -q
%build
export SUSE_ASNEEDED=0
%configure
%__make %{?_smp_mflags}
%install
%make_install
%suse_update_desktop_file %{name}-gtk
%find_lang %{name} %{?no_lang_C}
%clean
rm -rf %{buildroot}
%post
%if 0%{?suse_version} > 1130
%desktop_database_post
%icon_theme_cache_post
%else
gtk-update-icon-cache %{_datadir}/icons/hicolor || true
%endif
%postun
%if 0%{?suse_version} > 1130
%desktop_database_postun
%icon_theme_cache_postun
%else
gtk-update-icon-cache %{_datadir}/icons/hicolor || true
%endif
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog README COPYING
%{_bindir}/%{name}-gtk
%{_datadir}/applications/%{name}-gtk.desktop
%{_datadir}/sounds/%{name}/
%{_datadir}/icons/hicolor/*/apps/%{name}-icon.*
%files lang -f %{name}.lang
%changelog