Accepting request 486206 from devel:languages:python:singlespec

1

OBS-URL: https://build.opensuse.org/request/show/486206
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Genshi?expand=0&rev=10
This commit is contained in:
Todd R 2017-04-06 16:31:21 +00:00 committed by Git OBS Bridge
parent f0f3533abf
commit df0f3bb2f9
2 changed files with 36 additions and 19 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Apr 6 15:53:52 UTC 2017 - toddrme2178@gmail.com
- Update singlespec build
- Use pypi download url
-------------------------------------------------------------------
Mon Dec 19 17:34:46 UTC 2016 - jmatejek@suse.com
- update for multipython build
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jul 24 20:36:31 UTC 2015 - seife+obs@b1-systems.com Fri Jul 24 20:36:31 UTC 2015 - seife+obs@b1-systems.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-Genshi # spec file for package python-Genshi
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,6 +16,7 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Genshi Name: python-Genshi
Version: 0.7 Version: 0.7
Release: 0 Release: 0
@ -23,22 +24,25 @@ Url: http://genshi.edgewall.org/
Summary: A toolkit for generation of output for the web Summary: A toolkit for generation of output for the web
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
Source: http://ftp.edgewall.com/pub/genshi/Genshi-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/G/Genshi/Genshi-%{version}.tar.gz
# FIX-UPSTREAM http://genshi.edgewall.org/ticket/566 # PATCH-FIX-UPSTREAM http://genshi.edgewall.org/ticket/566
Patch1: changeset_r1242.diff Patch1: changeset_r1242.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes
BuildRequires: python-Babel BuildRequires: python-rpm-macros
BuildRequires: python-devel BuildRequires: %{python_module Babel}
BuildRequires: python-setuptools BuildRequires: %{python_module devel}
BuildRequires: python-xml BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module xml}
Requires: python-Babel Requires: python-Babel
Requires: python-xml Requires: python-xml
Provides: python-genshi = %{version} %define oldpython python
Obsoletes: python-genshi < %{version} %ifpython2
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 Obsoletes: %{oldpython}-genshi < %{version}
%{!?python_sitearch: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")} Provides: %{oldpython}-genshi = %{version}
%{py_requires}
%endif %endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages
%description %description
Genshi is a Python library that provides an integrated set of Genshi is a Python library that provides an integrated set of
@ -47,7 +51,6 @@ 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.
%package doc %package 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
Requires: %{name} = %{version} Requires: %{name} = %{version}
@ -66,19 +69,22 @@ This package contains documentation and examples.
sed -i "1d" examples/{basic/run,basic/kidrun,tutorial/geddit/controller}.py # Fix non-excutable bits sed -i "1d" examples/{basic/run,basic/kidrun,tutorial/geddit/controller}.py # Fix non-excutable bits
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%files %{python_expand %fdupes %{buildroot}%{$python_sitearch} }
%files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING ChangeLog README.txt %doc COPYING ChangeLog README.txt
%{python_sitearch}/genshi/ %{python_sitearch}/genshi/
%{python_sitearch}/Genshi-%{version}-py*.egg-info %{python_sitearch}/Genshi-%{version}-py*.egg-info
%files doc %files %{python_files doc}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc doc examples %doc doc/
%doc examples/
%changelog %changelog