14
0
Tomáš Chvátal
2020-05-20 07:13:03 +00:00
committed by Git OBS Bridge
parent 237d268449
commit a6afe92912

View File

@@ -17,7 +17,6 @@
%define _libexecdir /usr/libexec
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname urlgrabber
Name: python-urlgrabber
@@ -25,7 +24,6 @@ Version: 4.1.0
Release: 0
Summary: A high-level cross-protocol url-grabber
License: LGPL-2.1-only
Group: Development/Libraries/Python
URL: https://github.com/rpm-software-management/urlgrabber
Source: https://github.com/rpm-software-management/%{modname}/releases/download/%{modname}-4-1-0/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module pycurl}
@@ -33,7 +31,7 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: %{name}-ext-down
Requires: %{modname}-ext-down
Requires: python-pycurl
Requires: python-six
Requires(post): update-alternatives
@@ -46,11 +44,10 @@ A high-level cross-protocol url-grabber for python supporting HTTP, FTP
and file locations. Features include keepalive, byte ranges,
throttling, authentication, proxies and more.
%package ext-down
%package -n %{modname}-ext-down
Summary: External Downloader
Group: Development/Libraries/Python
%description ext-down
%description -n %{modname}-ext-down
A very simple external downloader.
%prep
@@ -79,7 +76,7 @@ rm -rf %{buildroot}%{_datadir}/doc/urlgrabber-%{version} # Remove wrongly instal
%python_alternative %{_bindir}/urlgrabber
%{python_sitelib}/*
%files ext-down
%files -n %{modname}-ext-down
%{_libexecdir}/urlgrabber-ext-down
%changelog