forked from pool/python-colander
Accepting request 795833 from devel:languages:python
- Obsolete the lang subpackage to avoid conflicts - Do not generate docu twice, it is provided online by upstream so we don't have to bother really at all - Eliminate complicated py2k constructs OBS-URL: https://build.opensuse.org/request/show/795833 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-colander?expand=0&rev=7
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 20 13:05:17 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Obsolete the lang subpackage to avoid conflicts
|
||||
- Do not generate docu twice, it is provided online by
|
||||
upstream so we don't have to bother really at all
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 20 09:19:56 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Eliminate complicated py2k constructs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 17 08:10:18 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -34,12 +34,11 @@ BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-iso8601
|
||||
Requires: python-translationstring
|
||||
Obsoletes: python2-colander-doc
|
||||
Obsoletes: python2-colander-lang
|
||||
Obsoletes: python3-colander-doc
|
||||
Obsoletes: python3-colander-lang
|
||||
BuildArch: noarch
|
||||
# SECTION documentation requirements
|
||||
BuildRequires: %{python_module Sphinx} >= 1.3.1
|
||||
BuildRequires: %{python_module docutils}
|
||||
BuildRequires: %{python_module pylons-sphinx-themes}
|
||||
# /SECTION
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module coverage}
|
||||
BuildRequires: %{python_module hupper}
|
||||
@@ -59,42 +58,16 @@ An extensible package which can be used to:
|
||||
- serialize an arbitrary data structure to a data structure composed
|
||||
of strings, mappings, and lists.
|
||||
|
||||
It is tested on Python 2.7, 3.3, 3.4, 3.5, and 3.6, and PyPy.
|
||||
|
||||
Please see http://docs.pylonsproject.org/projects/colander/en/latest/
|
||||
for documentation.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
This package contains documentation files for %{name}.
|
||||
|
||||
%package lang
|
||||
# FIXME: consider using %%lang_package macro
|
||||
Summary: Translations for package %{name}
|
||||
Requires: %{name} = %{version}
|
||||
Requires: python-base
|
||||
Supplements: %{name}
|
||||
Provides: %{name}-lang-all = %{version}
|
||||
BuildArch: noarch
|
||||
|
||||
%description lang
|
||||
Provides translations for the "%{name}" package.
|
||||
|
||||
%prep
|
||||
%setup -q -n colander-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%python_exec setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%find_lang colander
|
||||
%python_expand grep -F "%{$python_sitelib}" colander.lang > colander_%{$python_bin_suffix}.lang
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -103,23 +76,6 @@ Provides translations for the "%{name}" package.
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc CHANGES.rst README.rst
|
||||
%{python_sitelib}/*
|
||||
%exclude %{python_sitelib}/colander/locale
|
||||
|
||||
%if %{have_python2} && ! 0%{?skip_python2}
|
||||
%files -n %{python2_prefix}-colander-lang -f colander_%{python2_bin_suffix}.lang
|
||||
%license LICENSE.txt
|
||||
%{python2_sitelib}/colander/locale
|
||||
%endif
|
||||
|
||||
%if %{have_python2} && ! 0%{?skip_python3}
|
||||
%files -n %{python3_prefix}-colander-lang -f colander_%{python3_bin_suffix}.lang
|
||||
%license LICENSE.txt
|
||||
%{python3_sitelib}/colander/locale
|
||||
%endif
|
||||
|
||||
%files %{python_files doc}
|
||||
%license LICENSE.txt
|
||||
%doc build/sphinx/html
|
||||
%{python_sitelib}/colander*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user