!11 Update package
From: @liqiuyu123 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
d59bed2160
Binary file not shown.
BIN
Genshi-0.7.7.tar.gz
Normal file
BIN
Genshi-0.7.7.tar.gz
Normal file
Binary file not shown.
@ -1,18 +1,13 @@
|
|||||||
%global _python_bytecompile_extra 1
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: python-genshi
|
||||||
|
Version: 0.7.7
|
||||||
|
Release: 1
|
||||||
|
Summary: Toolkit for stream-based generation of output for the web
|
||||||
|
License: BSD-3-Clause
|
||||||
|
URL: http://genshi.edgewall.org/
|
||||||
|
Source0: https://files.pythonhosted.org/packages/d5/13/bdb68fb9652bb145c341756fbe9563a270fd385ff11410837b59d98ab178/Genshi-0.7.7.tar.gz
|
||||||
|
|
||||||
Name: python-genshi
|
Requires: python3-babel >= 0.8
|
||||||
Version: 0.7.6
|
|
||||||
Release: 1
|
|
||||||
Summary: Toolkit for stream-based generation of output for the web
|
|
||||||
License: BSD
|
|
||||||
URL: http://genshi.edgewall.org/
|
|
||||||
Source0: https://files.pythonhosted.org/packages/source/G/Genshi/Genshi-%{version}.tar.gz
|
|
||||||
|
|
||||||
|
|
||||||
BuildArch: noarch
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
BuildRequires: python3-six
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Genshi is a Python library that provides an integrated set of
|
Genshi is a Python library that provides an integrated set of
|
||||||
@ -20,51 +15,71 @@ components for parsing, generating, and processing HTML, XML
|
|||||||
or other textual content for output generation on the web.
|
or other textual content for output generation on the web.
|
||||||
|
|
||||||
%package -n python3-genshi
|
%package -n python3-genshi
|
||||||
Summary: Toolkit for stream-based generation of output for the web
|
Summary: Toolkit for stream-based generation of output for the web
|
||||||
BuildArch: noarch
|
Provides: python-genshi = %{version}-%{release}
|
||||||
Requires: python3-babel >= 0.8
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-six
|
||||||
%description -n python3-genshi
|
%description -n python3-genshi
|
||||||
Genshi is a Python library that provides an integrated set of
|
Genshi is a Python library that provides an integrated set of
|
||||||
components for parsing, generating, and processing HTML, XML
|
components for parsing, generating, and processing HTML, XML
|
||||||
or other textual content for output generation on the web.
|
or other textual content for output generation on the web.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Development documents and examples for Genshi
|
||||||
|
Provides: python3-genshi-doc
|
||||||
|
%description help
|
||||||
|
Genshi is a Python library that provides an integrated set of
|
||||||
|
components for parsing, generating, and processing HTML, XML
|
||||||
|
or other textual content for output generation on the web.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n Genshi-%{version} -p1
|
%autosetup -n Genshi-%{version}
|
||||||
|
|
||||||
rm -rf %{modname}.egg-info
|
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
|
|
||||||
find examples -type f | xargs chmod a-x
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export GENSHI_BUILD_SPEEDUP=0
|
|
||||||
cd %{py3dir}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
cd -
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export GENSHI_BUILD_SPEEDUP=0
|
|
||||||
cd %{py3dir}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
rm -rf %{buildroot}%{python3_sitelib}/genshi/tests
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
rm -rf %{buildroot}%{python3_sitelib}/genshi/{filters,template}/tests
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
rm -f %{buildroot}%{python3_sitelib}/genshi/*.c
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
cd -
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
pushd %{buildroot}
|
||||||
|
if [ -d usr/lib ]; then
|
||||||
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib64 ]; then
|
||||||
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/bin ]; then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/sbin ]; then
|
||||||
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
touch doclist.lst
|
||||||
|
if [ -d usr/share/man ]; then
|
||||||
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
mv %{buildroot}/filelist.lst .
|
||||||
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
%check
|
%check
|
||||||
cd %{py3dir}
|
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
cd -
|
|
||||||
|
|
||||||
%files -n python3-genshi
|
%files -n python3-genshi -f filelist.lst
|
||||||
%license COPYING
|
%dir %{python3_sitearch}/*
|
||||||
%doc ChangeLog doc examples README.txt
|
|
||||||
%{python3_sitelib}/Genshi-%{version}-py*.egg-info
|
%files help -f doclist.lst
|
||||||
%{python3_sitelib}/genshi
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 23 2022 liqiuyu <liqiuyu@kylinos.cn> - 0.7.7-1
|
||||||
|
- Update package to version 0.7.7
|
||||||
|
|
||||||
* Wed Mar 30 2022 xigaoxinyan <xigaoxinyan@huawei.com> - 0.7.6-1
|
* Wed Mar 30 2022 xigaoxinyan <xigaoxinyan@huawei.com> - 0.7.6-1
|
||||||
- update to 0.7.6
|
- update to 0.7.6
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user