%define modulename youtube_dl_gui

Name: youtube-dl-gui
Version: 0.4
Release: alt1

%setup_python_module %modulename

Summary: Youtube-dl media downloader
License: Public Domain
Group: Networking/Other
Url: https://github.com/MrS0m30n3/youtube-dl-gui
Packager: Andrey Bychkov <dreliteam@altlinux.org>
BuildArch: noarch
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.desktop

BuildPreReq: %py_dependencies setuptools
BuildRequires: desktop-file-utils
BuildRequires: python >= 2.7.3
BuildRequires: gettext
Requires: python-module-wx >= 3

%description
A cross platform front-end GUI of the popular youtube-dl media downloader written in wxPython.

%package -n python-module-%name
Summary: Youtube-dl-gui
Group: Networking/Other

%description -n python-module-%name
YPython module for youtube downloader whith gui.

%prep
%setup -q

%build
%python_build

%install
%python_install
desktop-file-install \
--dir=${RPM_BUILD_ROOT}%{_desktopdir} \
%{SOURCE1}

%files
%{_desktopdir}/%{name}.desktop

%files -n python-module-%name
%doc AUTHORS LICENSE TODO
%python_sitelibdir/%modulename
%python_sitelibdir/*.egg-info


%changelog
* Sun Feb 26 2018 Andrey Bychkov <dreliteam@altlinux.org> 0.4-alt1 
- Initial build for Sisyphus
