Drop py2 module

This commit is contained in:
Denis Silakov 2019-12-27 10:38:02 +03:00
parent 62e064d729
commit fb756f4e2f

View file

@ -10,11 +10,8 @@ Url: https://yt-dl.org
Source0: https://github.com/rg3/youtube-dl/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires: ffmpeg
BuildRequires: gnupg2
BuildRequires: pkgconfig(python)
BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
BuildRequires: pythonegg(nose)
BuildRequires: pythonegg(setuptools)
BuildRequires: zip
BuildArch: noarch
Requires: python3
@ -33,21 +30,6 @@ Small command-line program to download videos from YouTube and similar sites.
#-----------------------------------------------------------------------------
%package -n python-%{name}
Summary: Python 2 bindings for %{name}
Group: Development/Python
BuildArch: noarch
%description -n python-%{name}
This package contains the Python 2 bindings for %{name}.
%files -n python-%{name}
%doc LICENSE README.txt
%{py_puresitedir}/%{pypi_name}
%{py_puresitedir}/%{pypi_name}-*-py%{py_ver}.egg-info
#-----------------------------------------------------------------------------
%package -n python3-%{name}
Summary: Python 3 bindings for %{name}
Group: Development/Python
@ -67,21 +49,11 @@ This package contains the Python 3 bindings for %{name}.
%setup -qn %{name}
rm youtube-dl
cp -a . %{py3dir}
%build
%py_build
pushd %{py3dir}
%py3_build
popd
%install
%py_install
pushd %{py3dir}
%py3_install
popd
%makeinstall \
DESTDIR=%{buildroot} \