Reduce build dependencies when tests are not enabled

- Add EL8 compatibility
epel9
Neal Gompa 5 years ago
parent 9178cf7597
commit 679a966caf

@ -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 <ngompa13@gmail.com> - 4.1.0-2
- Reduce build dependencies when tests are not enabled
- Add EL8 compatibility
* Tue Oct 08 2019 Neal Gompa <ngompa13@gmail.com> - 4.1.0-1
- Update to 4.1.0

Loading…
Cancel
Save