diff --git a/python-warlock.changes b/python-warlock.changes index 65473a1..ba81138 100644 --- a/python-warlock.changes +++ b/python-warlock.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Aug 23 04:30:53 UTC 2017 - tbechtold@suse.com + +- convert to singlespec + ------------------------------------------------------------------- Tue Nov 15 12:40:31 UTC 2016 - dmueller@suse.com diff --git a/python-warlock.spec b/python-warlock.spec index b54aa25..67e7ffb 100644 --- a/python-warlock.spec +++ b/python-warlock.spec @@ -1,7 +1,7 @@ # # spec file for package python-warlock # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-warlock Version: 1.2.0 Release: 0 @@ -23,22 +24,21 @@ Summary: Python object model built on top of JSON schema License: Apache-2.0 Group: Development/Languages/Python Url: http://github.com/bcwaldon/warlock -Source: https://pypi.io/packages/source/w/warlock/warlock-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-jsonpatch -BuildRequires: python-jsonschema -BuildRequires: python-nose -BuildRequires: python-setuptools -BuildRequires: python-six +Source: https://files.pythonhosted.org/packages/source/w/warlock/warlock-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module jsonpatch} +BuildRequires: %{python_module jsonschema} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: python-rpm-macros Requires: python-jsonpatch >= 0.7 Requires: python-jsonschema >= 0.10 Requires: python-six BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif + +%python_subpackages %description Build self-validating python objects using JSON schemas @@ -48,15 +48,15 @@ Build self-validating python objects using JSON schemas sed -i "s|jsonschema>=0.7,<1|jsonschema>=0.7,<=1|" requirements.txt %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %check -nosetests +%python_exec %{_bindir}/nosetests -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.md %{python_sitelib}/*