| |
@@ -2,14 +2,9 @@
|
| |
|
| |
%global modname parsel
|
| |
|
| |
- %global w3lib_ver 1.8.0
|
| |
- %global lxml_ver 2.3
|
| |
- %global six_ver 1.5.2
|
| |
- %global cssselect_ver 0.9
|
| |
-
|
| |
Name: python-%{modname}
|
| |
Version: 1.5.0
|
| |
- Release: 2%{?dist}
|
| |
+ Release: 3%{?dist}
|
| |
Summary: Library to extract data from HTML and XML using XPath and CSS selectors
|
| |
|
| |
License: BSD
|
| |
@@ -21,24 +16,6 @@
|
| |
%description
|
| |
%{summary}.
|
| |
|
| |
- %package -n python2-%{modname}
|
| |
- Summary: %{summary}
|
| |
- %{?python_provide:%python_provide python2-%{modname}}
|
| |
- BuildRequires: python2-devel
|
| |
- BuildRequires: python2-setuptools
|
| |
- BuildRequires: python2-pytest
|
| |
- BuildRequires: python2-pytest-runner
|
| |
- BuildRequires: python2-w3lib >= %{w3lib_ver}
|
| |
- BuildRequires: python2-lxml >= %{lxml_ver}
|
| |
- BuildRequires: python2-six >= %{six_ver}
|
| |
- BuildRequires: python2-cssselect >= %{cssselect_ver}
|
| |
- BuildRequires: python2-functools32
|
| |
-
|
| |
- %description -n python2-%{modname}
|
| |
- %{summary}.
|
| |
-
|
| |
- Python 2 version.
|
| |
-
|
| |
%package -n python3-%{modname}
|
| |
Summary: %{summary}
|
| |
%{?python_provide:%python_provide python3-%{modname}}
|
| |
@@ -46,10 +23,10 @@
|
| |
BuildRequires: python3-setuptools
|
| |
BuildRequires: python3-pytest
|
| |
BuildRequires: python3-pytest-runner
|
| |
- BuildRequires: python3-w3lib >= %{w3lib_ver}
|
| |
- BuildRequires: python3-lxml >= %{lxml_ver}
|
| |
- BuildRequires: python3-six >= %{six_ver}
|
| |
- BuildRequires: python3-cssselect >= %{cssselect_ver}
|
| |
+ BuildRequires: python3-w3lib >= 1.8.0
|
| |
+ BuildRequires: python3-lxml >= 2.3
|
| |
+ BuildRequires: python3-six >= 1.5.2
|
| |
+ BuildRequires: python3-cssselect >= 0.9
|
| |
|
| |
%description -n python3-%{modname}
|
| |
%{summary}.
|
| |
@@ -60,23 +37,14 @@
|
| |
%autosetup -n %{modname}-%{version}
|
| |
|
| |
%build
|
| |
- %py2_build
|
| |
%py3_build
|
| |
|
| |
%install
|
| |
- %py2_install
|
| |
%py3_install
|
| |
|
| |
%check
|
| |
- %{__python2} setup.py ptr
|
| |
%{__python3} setup.py ptr
|
| |
|
| |
- %files -n python2-%{modname}
|
| |
- %license LICENSE
|
| |
- %doc README.rst NEWS
|
| |
- %{python2_sitelib}/%{modname}-*.egg-info/
|
| |
- %{python2_sitelib}/%{modname}/
|
| |
-
|
| |
%files -n python3-%{modname}
|
| |
%license LICENSE
|
| |
%doc README.rst NEWS
|
| |
@@ -84,6 +52,10 @@
|
| |
%{python3_sitelib}/%{modname}/
|
| |
|
| |
%changelog
|
| |
+ * Fri Dec 07 2018 Petr Viktorin <pviktori@redhat.com> - 1.5.0-3
|
| |
+ - Remove the Python 2 subpackage
|
| |
+ https://bugzilla.redhat.com/show_bug.cgi?id=1654012
|
| |
+
|
| |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
| |
|
| |
https://bugzilla.redhat.com/show_bug.cgi?id=1654012