File uget.spec of Package uget

#
# spec file for package uget
#
# Copyright (c) 2014 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.10.4
Release:        0
Summary:        Easy-to-use GTK+ Download Manager
License:        LGPL-2.1+
Group:          Productivity/Networking/Web/Utilities
Url:            http://ugetdm.com
Source:         http://downloads.sourceforge.net/project/urlget/uget%20%28stable%29/1.10.4/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM uget-libgcrypt.patch dimstar@opensuse.org -- Fix linking libgcrypt when gnutls enabled
Patch0:         uget-libgcrypt.patch
BuildRequires:  intltool
%if 0%{?WITH_APPINDICATOR}
BuildRequires:  pkgconfig(appindicator3-0.1)
%endif
BuildRequires:  libcurl-devel
## FIXME - reenable on next versionupdate
#BuildRequires:  libgcrypt-devel
# Needed for patch0 - Temp disabled.
#BuildRequires:  libtool
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(glib-2.0) >= 2.32
## FIXME - reenable on next versionupdate
BuildRequires:  pkgconfig(gnutls)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.4
BuildRequires:  pkgconfig(libnotify)
Requires:       aria2
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
## PATCH disabled as it makes uget sefault on startup.
#%patch0 -p1

%build
# Needed for patch0 --temp disabled since it makes uget segfault.
#autoreconf -fiv
%configure \
## FIXME - reenable on next versionupdate
#    --enable-gnutls \
%if 0%{?WITH_APPINDICATOR}
    --enable-appindicator=yes
%endif

%__make %{?_smp_mflags} V=1

%install
%make_install
%suse_update_desktop_file %{name}-gtk
%find_lang %{name} %{?no_lang_C}

%clean
rm -rf %{buildroot}

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog README COPYING
%{_bindir}/%{name}-gtk
%{_datadir}/applications/%{name}-gtk.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}-icon.*
%{_datadir}/icons/hicolor/*/apps/%{name}-tray-*
%dir %{_datadir}/pixmaps/%{name}/
%{_datadir}/pixmaps/%{name}/logo.png
%dir %{_datadir}/sounds/%{name}/
%{_datadir}/sounds/%{name}/notification.wav

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by