python-cssselect/python-cssselect.spec

59 lines
1.5 KiB
RPMSpec
Raw Permalink Normal View History

2020-02-23 00:43:06 +08:00
%global pkgname cssselect
Name: python-cssselect
2023-02-20 15:51:56 +08:00
Version: 1.2.0
Release: 1
2020-02-23 00:43:06 +08:00
Summary: CSS Selectors for Python
2022-05-10 17:12:48 +08:00
License: BSD-3-Clause
2020-02-23 00:43:06 +08:00
URL: https://github.com/scrapy/cssselect
Source0: %{url}/archive/v%{version}/%{pkgname}-%{version}.tar.gz
BuildArch: noarch
%description
Cssselect parses CSS3 Selectors and translates them to XPath 1.0 expressions.
Such expressions can be used in lxml or another XPath engine to find the
matching elements in an XML or HTML document.
%package -n python3-%{pkgname}
%{?python_provide:%python_provide python3-%{pkgname}}
Summary: %{summary}
BuildRequires: python3-devel python3-setuptools
%description -n python3-%{pkgname}
Cssselect parses CSS3 Selectors and translates them to XPath 1.0 expressions.
Such expressions can be used in lxml or another XPath engine to find the
matching elements in an XML or HTML document. This is the Python 3 version.
%prep
%autosetup -n %{pkgname}-%{version}
%build
%py3_build
%install
%py3_install
%files -n python3-%{pkgname}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pkgname}*/
%changelog
2023-02-20 15:51:56 +08:00
* Mon Feb 20 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 1.2.0-1
- Update package to version 1.2.0
2022-05-10 17:12:48 +08:00
* Tue May 10 2022 wulei <wulei80@h-partners.com> - 1.1.0-3
- License compliance rectification
2020-10-30 14:00:18 +08:00
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 1.1.0-2
- remove python2 dependency
2022-06-16 01:53:12 +00:00
* Thu Jul 16 2020 yanglongkang <yanglongkang@huawei.com> - 1.1.0-1
2020-07-16 09:35:47 +08:00
- update package to 1.1.0
2020-02-23 00:43:06 +08:00
* Sat Feb 22 2020 hy-euler <eulerstoragemt@huawei.com> - 0.9.2-10
- init package