python-genshi/python-genshi.spec

81 lines
2.2 KiB
RPMSpec
Raw Permalink Normal View History

2020-06-29 09:56:45 +08:00
%global _python_bytecompile_extra 1
2019-11-26 11:24:03 +08:00
Name: python-genshi
2022-10-24 17:50:02 +08:00
Version: 0.7.6
Release: 1
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
2019-11-26 11:24:03 +08:00
2020-06-29 09:56:45 +08:00
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-six
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
2022-10-24 17:50:02 +08:00
export GENSHI_BUILD_SPEEDUP=0
2019-11-26 11:24:03 +08:00
cd %{py3dir}
2020-06-29 09:56:45 +08:00
%py3_build
2019-11-26 11:24:03 +08:00
cd -
%install
2022-10-24 17:50:02 +08:00
export GENSHI_BUILD_SPEEDUP=0
2019-11-26 11:24:03 +08:00
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
2022-10-24 17:50:02 +08:00
* Mon Oct 24 2022 Ge Wang <wangge20@h-partners.com> - 0.7.6-1
- Update to version 0.7.6
* Thu Jan 6 2022 yaoxin <yaoxin30@huawei.com> - 0.7.5-1
- Fixed the issue that python-genshi could not recognize the parameter use_2to3 in the %build stage due to the upgrade of python-setuptools to version 59.4.0
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