From 1dba746e81853524addb8ccca8af76719cd22779aab45b049ce46b81c98860e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 11 Apr 2019 10:14:48 +0000 Subject: [PATCH] - Update to 0.3.0: * Add setuptools buildsystem OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yamldoc?expand=0&rev=2 --- python-yamldoc-0.3.0.tar.gz | 3 +++ python-yamldoc.changes | 6 ++++++ python-yamldoc.spec | 21 ++++++++++----------- setup.py | 2 -- yamldoc-0.2.0.tar.gz | 3 --- 5 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 python-yamldoc-0.3.0.tar.gz delete mode 100644 setup.py delete mode 100644 yamldoc-0.2.0.tar.gz diff --git a/python-yamldoc-0.3.0.tar.gz b/python-yamldoc-0.3.0.tar.gz new file mode 100644 index 0000000..7eb73c9 --- /dev/null +++ b/python-yamldoc-0.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:afe0a786a76a466ce15967fc119e02575e7fc65fd051a3001579e9cf5df312ba +size 9684 diff --git a/python-yamldoc.changes b/python-yamldoc.changes index 7f4be66..23b091f 100644 --- a/python-yamldoc.changes +++ b/python-yamldoc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 11 10:07:34 UTC 2019 - Tomáš Chvátal + +- Update to 0.3.0: + * Add setuptools buildsystem + ------------------------------------------------------------------- Wed Mar 20 09:16:17 UTC 2019 - John Vandenberg diff --git a/python-yamldoc.spec b/python-yamldoc.spec index 534d37b..8788ae3 100644 --- a/python-yamldoc.spec +++ b/python-yamldoc.spec @@ -12,24 +12,25 @@ # 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-%{**}} Name: python-yamldoc -Version: 0.2.0 +Version: 0.3.0 Release: 0 -License: GPL-3.0-or-later Summary: A module to determine file mimetypes -Url: https://github.com/smathot/python-yamldoc +License: GPL-3.0-or-later Group: Development/Languages/Python -Source: https://github.com/smathot/python-yamldoc/archive/release/%{version}.tar.gz#/yamldoc-%{version}.tar.gz -Source1: setup.py -BuildRequires: python-rpm-macros +URL: https://github.com/smathot/python-yamldoc +Source: https://files.pythonhosted.org/packages/source/p/python-yamldoc/python-yamldoc-%{version}.tar.gz +BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module setuptools} +Requires: python-PyYAML BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description @@ -39,8 +40,7 @@ have access, while mimetypes only uses the filename to determine its filetype. %prep -%setup -q -n python-yamldoc-release-%{version} -cp %{SOURCE1} . +%setup -q -n python-yamldoc-%{version} sed -i '1{/^#!/d}' yamldoc/*.py %build @@ -51,7 +51,6 @@ sed -i '1{/^#!/d}' yamldoc/*.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%doc readme.md examples %{python_sitelib}/* %changelog diff --git a/setup.py b/setup.py deleted file mode 100644 index 787fe63..0000000 --- a/setup.py +++ /dev/null @@ -1,2 +0,0 @@ -from setuptools import setup -setup(name='yamldoc', packages=['yamldoc']) diff --git a/yamldoc-0.2.0.tar.gz b/yamldoc-0.2.0.tar.gz deleted file mode 100644 index 0e90f14..0000000 --- a/yamldoc-0.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f03470108693989fe68bede720e974b123adf8801e5cb9c645521f9d263590f -size 10314