14
0
forked from pool/python-pyaml

Accepting request 632474 from home:pluskalm:branches:devel:languages:python

- Update to version 17.12.1:
  * Internal changes
- Drop some useless dependencies and conditions

OBS-URL: https://build.opensuse.org/request/show/632474
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyaml?expand=0&rev=4
This commit is contained in:
Tomáš Chvátal
2018-08-31 10:49:51 +00:00
committed by Git OBS Bridge
parent 50c7a69a5e
commit 57a6aade20
4 changed files with 17 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyaml
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,33 +12,27 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-pyaml
Version: 17.10.0
Version: 17.12.1
Release: 0
Summary: Produce pretty and readable YAML-serialized data
License: WTFPL
Group: Development/Languages/Python
Url: https://github.com/mk-fg/pretty-yaml
URL: https://github.com/mk-fg/pretty-yaml
Source: https://files.pythonhosted.org/packages/source/p/pyaml/pyaml-%{version}.tar.gz
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
%if %{with test}
BuildRequires: %{python_module Unidecode}
%endif
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Recommends: python-Unidecode
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
@@ -55,14 +49,12 @@ YAML-serialized data.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc COPYING README.rst
%license COPYING
%doc README.rst
%{python_sitelib}/*
%changelog