Accepting request 1082234 from home:dirkmueller:acdc:as_python3_module
- Switch documentation to be within the main package. OBS-URL: https://build.opensuse.org/request/show/1082234 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Genshi?expand=0&rev=33
This commit is contained in:
parent
06a6284ccd
commit
a9a956ac5c
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 23 01:39:49 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Switch documentation to be within the main package.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 21 12:20:40 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Fri Apr 21 12:20:40 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-Genshi
|
Name: python-Genshi
|
||||||
@ -50,6 +49,7 @@ components for parsing, generating, and processing HTML, XML or
|
|||||||
other textual content for output generation on the web. The major
|
other textual content for output generation on the web. The major
|
||||||
feature is a template language, which is heavily inspired by Kid.
|
feature is a template language, which is heavily inspired by Kid.
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
%package -n %{name}-doc
|
%package -n %{name}-doc
|
||||||
Summary: A toolkit for generation of output for the web - Documentation
|
Summary: A toolkit for generation of output for the web - Documentation
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
@ -63,6 +63,7 @@ other textual content for output generation on the web. The major
|
|||||||
feature is a template language, which is heavily inspired by Kid.
|
feature is a template language, which is heavily inspired by Kid.
|
||||||
|
|
||||||
This package contains documentation and examples.
|
This package contains documentation and examples.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n Genshi-%{version}
|
%autosetup -p1 -n Genshi-%{version}
|
||||||
@ -76,12 +77,6 @@ This package contains documentation and examples.
|
|||||||
%python_expand find %{buildroot}%{$python_sitearch}/genshi -name '*.c' -delete
|
%python_expand find %{buildroot}%{$python_sitearch}/genshi -name '*.c' -delete
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
# install (flavor-agnostic) examples
|
|
||||||
mkdir -p %{buildroot}%{_docdir}/%{name}-doc/
|
|
||||||
cp -r examples %{buildroot}%{_docdir}/%{name}-doc/
|
|
||||||
sed -i '1{s/env python.*/python3/}' %{buildroot}%{_docdir}/%{name}-doc/examples/tutorial/geddit/controller.py
|
|
||||||
%fdupes %{buildroot}%{_docdir}/%{name}-doc/
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
# calling unittest directly fails on Leap
|
# calling unittest directly fails on Leap
|
||||||
@ -94,10 +89,11 @@ sed -i '1{s/env python.*/python3/}' %{buildroot}%{_docdir}/%{name}-doc/examples/
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
%doc ChangeLog README.txt
|
%doc ChangeLog README.txt
|
||||||
%{python_sitearch}/genshi/
|
%{python_sitearch}/genshi/
|
||||||
%{python_sitearch}/Genshi-%{version}-py%{python_version}.egg-info
|
%{python_sitearch}/Genshi-%{version}*-info
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
%files -n %{name}-doc
|
%files -n %{name}-doc
|
||||||
%doc doc
|
%doc doc
|
||||||
%doc %{_docdir}/%{name}-doc/examples
|
%endif
|
||||||
|
%doc examples
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user