2020-06-29 09:56:45 +08:00
|
|
|
%global _python_bytecompile_extra 1
|
|
|
|
|
|
2019-11-26 11:24:03 +08:00
|
|
|
Name: python-genshi
|
2020-06-29 09:56:45 +08:00
|
|
|
Version: 0.7.3
|
2020-12-22 16:16:05 +08:00
|
|
|
Release: 7
|
2020-06-29 09:56:45 +08:00
|
|
|
Summary: Toolkit for stream-based generation of output for the web
|
2019-11-26 11:24:03 +08:00
|
|
|
License: BSD
|
|
|
|
|
URL: http://genshi.edgewall.org/
|
2020-12-22 16:16:05 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/G/Genshi/Genshi-%{version}.tar.gz
|
2020-06-29 09:56:45 +08:00
|
|
|
Patch0: 0001-python-genshi-fix-some-syntax-error.patch
|
2019-11-26 11:24:03 +08:00
|
|
|
|
2020-06-29 09:56:45 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
2019-11-26 11:24:03 +08:00
|
|
|
|
|
|
|
|
%description
|
2020-06-29 09:56:45 +08:00
|
|
|
Genshi is a Python library that provides an integrated set of
|
|
|
|
|
components for parsing, generating, and processing HTML, XML
|
2019-11-26 11:24:03 +08:00
|
|
|
or other textual content for output generation on the web.
|
|
|
|
|
|
|
|
|
|
%package -n python3-genshi
|
2020-06-29 09:56:45 +08:00
|
|
|
Summary: Toolkit for stream-based generation of output for the web
|
2019-11-26 11:24:03 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: python3-babel >= 0.8
|
|
|
|
|
|
|
|
|
|
%description -n python3-genshi
|
2020-06-29 09:56:45 +08:00
|
|
|
Genshi is a Python library that provides an integrated set of
|
|
|
|
|
components for parsing, generating, and processing HTML, XML
|
2019-11-26 11:24:03 +08:00
|
|
|
or other textual content for output generation on the web.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n Genshi-%{version} -p1
|
|
|
|
|
|
|
|
|
|
rm -rf %{modname}.egg-info
|
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
|
2020-06-29 09:56:45 +08:00
|
|
|
find examples -type f | xargs chmod a-x
|
2019-11-26 11:24:03 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
cd %{py3dir}
|
2020-06-29 09:56:45 +08:00
|
|
|
%py3_build
|
2019-11-26 11:24:03 +08:00
|
|
|
cd -
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
cd %{py3dir}
|
2020-06-29 09:56:45 +08:00
|
|
|
%py3_install
|
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/genshi/tests
|
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/genshi/{filters,template}/tests
|
|
|
|
|
rm -f %{buildroot}%{python3_sitelib}/genshi/*.c
|
2019-11-26 11:24:03 +08:00
|
|
|
cd -
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
cd %{py3dir}
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
cd -
|
|
|
|
|
|
|
|
|
|
%files -n python3-genshi
|
2020-06-29 09:56:45 +08:00
|
|
|
%license COPYING
|
|
|
|
|
%doc ChangeLog doc examples README.txt
|
2019-11-26 11:24:03 +08:00
|
|
|
%{python3_sitelib}/Genshi-%{version}-py*.egg-info
|
|
|
|
|
%{python3_sitelib}/genshi
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-12-22 16:16:05 +08:00
|
|
|
* Tue Dec 22 2020 lingsheng <lingsheng@huaweu.com> - 0.7.3-7
|
|
|
|
|
- Fix wrong source0 url
|
|
|
|
|
|
2020-06-29 09:56:45 +08:00
|
|
|
* Mon Jun 28 2020 Captain Wei <captain.a.wei@gmail.com> - 0.7.3-6
|
|
|
|
|
- Upgrade package
|
|
|
|
|
|
2019-11-26 11:24:03 +08:00
|
|
|
* Mon Nov 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.7-23
|
|
|
|
|
- Package init
|