diff --git a/Genshi-0.7.6.tar.gz b/Genshi-0.7.6.tar.gz deleted file mode 100644 index 2a04f06c5f8b9a7836cb833f9b0e88d75bbcea47..0000000000000000000000000000000000000000 Binary files a/Genshi-0.7.6.tar.gz and /dev/null differ diff --git a/Genshi-0.7.7.tar.gz b/Genshi-0.7.7.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5ee02a0e6aea7f4556bdfb08e22cb40ece81062f Binary files /dev/null and b/Genshi-0.7.7.tar.gz differ diff --git a/python-genshi.spec b/python-genshi.spec index e43a50e546d158d6f47854486db584c0e719f490..91d7b28ed990f5764103006e173124bb566b4ef5 100644 --- a/python-genshi.spec +++ b/python-genshi.spec @@ -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 -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 +Requires: python3-babel >= 0.8 %description 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. %package -n python3-genshi -Summary: Toolkit for stream-based generation of output for the web -BuildArch: noarch -Requires: python3-babel >= 0.8 - +Summary: Toolkit for stream-based generation of output for the web +Provides: python-genshi = %{version}-%{release} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-six %description -n python3-genshi 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 -%autosetup -n Genshi-%{version} -p1 - -rm -rf %{modname}.egg-info -rm -rf %{py3dir} -cp -a . %{py3dir} +%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. -find examples -type f | xargs chmod a-x +%prep +%autosetup -n Genshi-%{version} %build -export GENSHI_BUILD_SPEEDUP=0 -cd %{py3dir} %py3_build -cd - %install -export GENSHI_BUILD_SPEEDUP=0 -cd %{py3dir} %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 -cd - +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 +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 -cd %{py3dir} %{__python3} setup.py test -cd - -%files -n python3-genshi -%license COPYING -%doc ChangeLog doc examples README.txt -%{python3_sitelib}/Genshi-%{version}-py*.egg-info -%{python3_sitelib}/genshi +%files -n python3-genshi -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Wed Nov 23 2022 liqiuyu - 0.7.7-1 +- Update package to version 0.7.7 + * Wed Mar 30 2022 xigaoxinyan - 0.7.6-1 - update to 0.7.6