14
0

- 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
This commit is contained in:
Tomáš Chvátal
2019-04-11 10:14:48 +00:00
committed by Git OBS Bridge
parent 9efbdedd95
commit 1dba746e81
5 changed files with 19 additions and 16 deletions

View File

@@ -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