update version to 0.7.7
This commit is contained in:
parent
38aceb570b
commit
14a6c76ec1
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
|
||||
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.
|
||||
|
||||
%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
|
||||
%autosetup -n Genshi-%{version} -p1
|
||||
|
||||
rm -rf %{modname}.egg-info
|
||||
rm -rf %{py3dir}
|
||||
cp -a . %{py3dir}
|
||||
|
||||
find examples -type f | xargs chmod a-x
|
||||
%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 <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
|
||||
- update to 0.7.6
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user