# Created by pyp2rpm-3.2.2 %global pypi_name pafy Name: python-%{pypi_name} Version: 0.5.3.1 Release: 1%{?dist} Summary: Retrieve YouTube content and metadata License: LGPLv3 URL: http://np1.github.io/pafy/ Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools %description Retreive metadata such as viewcount, duration, rating, author, thumbnail, keywords Download video or audio at requested resolution / bitrate / format / filesize Command line tool (ytdl) for downloading directly from the command line Retrieve the URL to stream the video in a player such as vlc or mplayer Works with agerestricted videos and nonembeddable videos Small, standalone, single... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} Retreive metadata such as viewcount, duration, rating, author, thumbnail, keywords Download video or audio at requested resolution / bitrate / format / filesize Command line tool (ytdl) for downloading directly from the command line Retrieve the URL to stream the video in a player such as vlc or mplayer Works with agerestricted videos and nonembeddable videos Small, standalone, single... %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install cp %{buildroot}/%{_bindir}/ytdl %{buildroot}/%{_bindir}/ytdl-%{python3_version} ln -s %{_bindir}/ytdl-%{python3_version} %{buildroot}/%{_bindir}/ytdl-3 %files -n python3-%{pypi_name} %doc README.rst %{_bindir}/ytdl %{_bindir}/ytdl-3 %{_bindir}/ytdl-%{python3_version} %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Wed Jan 31 2018 mockbuilder - 0.5.3.1-1 - Initial package.