%global	mainver	2.2.1

Name:		uget
Version:	2.2.1
Release:	alt2
Summary:	Download manager using GTK+ and libcurl
Summary(ru_RU.UTF-8): Менеджер загрузок с использованием GTK+ и libcurl
Packager: Ilya Mashkin <oddity@altlinux.ru>
Group:		Networking/File transfer
License:	LGPLv2+
URL:		http://ugetdm.com/
Source0:	http://downloads.sourceforge.net/urlget/%{name}-%{version}.tar.gz


# Automatically added by buildreq on Wed Jun 09 2010
BuildRequires: desktop-file-utils libgtk+3-devel gstreamer1.0-devel intltool libcurl-devel libnotify-devel libssl-devel rpm-build-gir

%description
uGet is a download manager with downloads queue, pause/resume, 
clipboard monitor, batch downloads, browser integration (Firefox & Chrome), 
multiple connections, speed limit controls, powerful category based control
and much more. Each Category has an independent configuration that can
be inherited by each download in that category.

Uget is the successor of urlgfe, which was called URLget before.

%description -l ru_RU.UTF-8
uGet-это менеджер загрузок с очередью загрузок,
паузой/возобновлением, монитор буфера обмена, пакетные загрузки,
интеграция браузера (Firefox и Chrome), множественные соединения,
управление ограничением скорости, мощное управление на основе категорий
и многое другое. Каждая категория имеет независимую конфигурацию, которая
может наследуется каждой загрузкой в этой категории.

Uget-это преемник urlgfe, который раньше назывался URLget.

%prep
%setup -q -n %{name}-%{mainver}

%build

%configure
make -k %{?_smp_mflags}

%install
make install \
	DESTDIR=$RPM_BUILD_ROOT \
	INSTALL="install -p"
desktop-file-install \
	--dir $RPM_BUILD_ROOT%{_datadir}/applications \
	--delete-original \
	$RPM_BUILD_ROOT%{_datadir}/applications/%{name}-gtk.desktop

%find_lang %{name}

%post
touch --no-create %{_datadir}/icons/hicolor
exit 0

%postun
[ $1 -eq 0 ] || exit 0
touch --no-create %{_datadir}/icons/hicolor
gtk-update-icon-cache -q %{_datadir}/icons/hicolor
exit 0

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc	AUTHORS
%doc	COPYING
%doc	ChangeLog
%doc	README
%{_bindir}/%{name}-gtk
%{_bindir}/%{name}-gtk-1to2

%{_datadir}/applications/%{name}-gtk.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}*.*
%{_datadir}/pixmaps/uget/*.*
%{_datadir}/sounds/%{name}/


%changelog
* Thu Oct 04 2018 Ilya Mashkin <oddity@altlinux.ru> 2.2.1-alt2
- rebuild

* Thu Sep 06 2018 Grigory Ustinov <grenka@altlinux.org> 2.2.1-alt1.1
- NMU: rebuild with new openssl.

* Sat Aug 18 2018 Ilya Mashkin <oddity@altlinux.ru> 2.2.1-alt1
- 2.2.1
- update URL

* Mon Jan 15 2018 Ilya Mashkin <oddity@altlinux.ru> 2.2.0-alt1
- 2.2.0

* Thu Oct 26 2017 Ilya Mashkin <oddity@altlinux.ru> 2.1.6-alt1
- 2.1.6

* Mon Oct 02 2017 Ilya Mashkin <oddity@altlinux.ru> 2.0.10-alt1
- 2.0.10

* Mon Mar 20 2017 Ilya Mashkin <oddity@altlinux.ru> 2.0.9-alt1
- 2.0.9

* Fri Jun 03 2016 Ilya Mashkin <oddity@altlinux.ru> 2.0.8-alt1
- 2.0.8

* Wed Jan 13 2016 Ilya Mashkin <oddity@altlinux.ru> 2.0.4-alt1
- 2.0.4

* Thu Oct 08 2015 Ilya Mashkin <oddity@altlinux.ru> 2.0.2-alt1
- 2.0.2

* Thu May 14 2015 Ilya Mashkin <oddity@altlinux.ru> 2.0-alt1
- 2.0 (Closes: #31001)

* Thu Sep 04 2014 Ilya Mashkin <oddity@altlinux.ru> 1.10.4-alt1
- 1.10.4
- update description

* Thu Jul 07 2011 Mykola Grechukh <gns@altlinux.ru> 1.8.0-alt1
- new stable version

* Fri Aug 20 2010 Mykola Grechukh <gns@altlinux.ru> 1.6.0-alt1
- new stable version

* Wed Jul 14 2010 Mykola Grechukh <gns@altlinux.ru> 1.5.9.2-alt2.svn317
- new snapshot

* Wed Jun 09 2010 Mykola Grechukh <gns@altlinux.ru> 1.5.9.2-alt1
- first build for ALT
