From 679a966caf7a1c51499bb24168c923775792097c Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sun, 17 Nov 2019 15:43:54 -0500 Subject: [PATCH] Reduce build dependencies when tests are not enabled - Add EL8 compatibility --- python-urlgrabber.spec | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/python-urlgrabber.spec b/python-urlgrabber.spec index a0749e6..4586127 100644 --- a/python-urlgrabber.spec +++ b/python-urlgrabber.spec @@ -11,7 +11,7 @@ Name: python-%{pypi_name} Version: %{majorver}.%{minorver}.%{patchver} -Release: 1%{?dist} +Release: 2%{?dist} Summary: A high-level cross-protocol url-grabber License: LGPLv2+ @@ -30,15 +30,17 @@ authentication, proxies and more. %description %{_description} -%package -n python3-%{pypi_name} +%package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} -%{?python_provide:%python_provide python3-%{pypi_name}} -BuildRequires: python3-devel +%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} +BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python3dist(setuptools) +%if %{with check} BuildRequires: python3dist(pycurl) BuildRequires: python3dist(six) +%endif -%description -n python3-%{pypi_name} %{_description} +%description -n python%{python3_pkgversion}-%{pypi_name} %{_description} This package provides the Python 3 version. @@ -60,7 +62,7 @@ export URLGRABBER_EXT_DOWN="%{buildroot}%{_libexecdir}/urlgrabber-ext-down" %{__python3} test/runtests.py %endif -%files -n python3-%{pypi_name} +%files -n python%{python3_pkgversion}-%{pypi_name} %license LICENSE %doc ChangeLog README TODO %{_bindir}/urlgrabber @@ -69,6 +71,10 @@ export URLGRABBER_EXT_DOWN="%{buildroot}%{_libexecdir}/urlgrabber-ext-down" %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %changelog +* Sun Nov 17 2019 Neal Gompa - 4.1.0-2 +- Reduce build dependencies when tests are not enabled +- Add EL8 compatibility + * Tue Oct 08 2019 Neal Gompa - 4.1.0-1 - Update to 4.1.0