2021-07-15 11:15:09 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
2022-11-30 16:02:17 +08:00
|
|
|
Name: python-soupsieve
|
|
|
|
|
Version: 2.3.2.post1
|
|
|
|
|
Release: 1
|
|
|
|
|
Summary: A modern CSS selector implementation for Beautiful Soup.
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/facelessuser/soupsieve
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/f3/03/bac179d539362319b4779a00764e95f7542f4920084163db6b0fd4742d38/soupsieve-2.3.2.post1.tar.gz
|
|
|
|
|
Patch0: 0001-add-setup.py.patch
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
2021-07-15 11:15:09 +08:00
|
|
|
%description
|
|
|
|
|
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4.
|
|
|
|
|
It aims to provide selecting, matching, and filtering using modern CSS selectors.
|
|
|
|
|
Soup Sieve currently provides selectors from the CSS level 1 specifications up
|
|
|
|
|
through the latest CSS level 4 drafts and beyond (though some are not yet implemented).
|
|
|
|
|
|
|
|
|
|
%package -n python3-soupsieve
|
2022-11-30 16:02:17 +08:00
|
|
|
Summary: A modern CSS selector implementation for Beautiful Soup.
|
|
|
|
|
Provides: python-soupsieve = %{version}-%{release}
|
2021-07-15 11:15:09 +08:00
|
|
|
# Base build requires
|
2022-11-30 16:02:17 +08:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-pbr
|
|
|
|
|
BuildRequires: python3-pip
|
|
|
|
|
BuildRequires: python3-wheel
|
2021-07-15 11:15:09 +08:00
|
|
|
%description -n python3-soupsieve
|
|
|
|
|
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4.
|
|
|
|
|
It aims to provide selecting, matching, and filtering using modern CSS selectors.
|
|
|
|
|
Soup Sieve currently provides selectors from the CSS level 1 specifications up
|
|
|
|
|
through the latest CSS level 4 drafts and beyond (though some are not yet implemented).
|
|
|
|
|
|
|
|
|
|
%package help
|
2022-11-30 16:02:17 +08:00
|
|
|
Summary: Development documents and examples for soupsieve
|
|
|
|
|
Provides: python3-soupsieve-doc
|
2021-07-15 11:15:09 +08:00
|
|
|
%description help
|
|
|
|
|
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4.
|
|
|
|
|
It aims to provide selecting, matching, and filtering using modern CSS selectors.
|
|
|
|
|
Soup Sieve currently provides selectors from the CSS level 1 specifications up
|
|
|
|
|
through the latest CSS level 4 drafts and beyond (though some are not yet implemented).
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-06-15 17:03:16 +00:00
|
|
|
%autosetup -n soupsieve-%{version}
|
2021-07-15 11:15:09 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
|
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
2022-11-30 16:02:17 +08:00
|
|
|
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
|
2021-07-15 11:15:09 +08:00
|
|
|
pushd %{buildroot}
|
|
|
|
|
if [ -d usr/lib ]; then
|
2022-11-30 16:02:17 +08:00
|
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
2021-07-15 11:15:09 +08:00
|
|
|
fi
|
|
|
|
|
if [ -d usr/lib64 ]; then
|
2022-11-30 16:02:17 +08:00
|
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
2021-07-15 11:15:09 +08:00
|
|
|
fi
|
|
|
|
|
if [ -d usr/bin ]; then
|
2022-11-30 16:02:17 +08:00
|
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
2021-07-15 11:15:09 +08:00
|
|
|
fi
|
|
|
|
|
if [ -d usr/sbin ]; then
|
2022-11-30 16:02:17 +08:00
|
|
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
2021-07-15 11:15:09 +08:00
|
|
|
fi
|
|
|
|
|
touch doclist.lst
|
|
|
|
|
if [ -d usr/share/man ]; then
|
2022-11-30 16:02:17 +08:00
|
|
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
2021-07-15 11:15:09 +08:00
|
|
|
fi
|
|
|
|
|
popd
|
|
|
|
|
mv %{buildroot}/filelist.lst .
|
|
|
|
|
mv %{buildroot}/doclist.lst .
|
|
|
|
|
|
|
|
|
|
%files -n python3-soupsieve -f filelist.lst
|
|
|
|
|
%dir %{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%files help -f doclist.lst
|
|
|
|
|
%{_docdir}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-11-30 16:02:17 +08:00
|
|
|
* Wed Nov 30 2022 wangjunqi <wangjunqi@kylinos.cn> - 2.3.2.post1-1
|
|
|
|
|
- Update package to version 2.3.2.post1
|
|
|
|
|
|
2022-06-15 17:03:16 +00:00
|
|
|
* Wed Jun 15 2022 OpenStack_SIG <openstack@openeuler.org> - 2.3.1-1
|
|
|
|
|
- Upgrade package python3-soupsieve to version 2.3.1
|
|
|
|
|
|
2021-07-30 23:30:44 +08:00
|
|
|
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.2-2
|
|
|
|
|
- DESC: delete -S git from %autosetup
|
|
|
|
|
|
2021-07-15 11:15:09 +08:00
|
|
|
* Thu Jul 15 2021 OpenStack_SIG <openstack@openeuler.org> - 2.2-1
|
|
|
|
|
- Package Spec generate
|