From fbdb6417c74080bd71fcd4fdd3296e3a0f27f790d3ac9856a2fecde5dec4fb00 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Wed, 2 Jan 2019 12:58:34 +0000 Subject: [PATCH] - Convert to singlespec OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-XStatic-Angular-Schema-Form?expand=0&rev=2 --- python-XStatic-Angular-Schema-Form.changes | 5 +++++ python-XStatic-Angular-Schema-Form.spec | 25 +++++++++++----------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/python-XStatic-Angular-Schema-Form.changes b/python-XStatic-Angular-Schema-Form.changes index 8f3e82c..7343a91 100644 --- a/python-XStatic-Angular-Schema-Form.changes +++ b/python-XStatic-Angular-Schema-Form.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 2 12:56:33 UTC 2019 - Thomas Bechtold + +- Convert to singlespec + ------------------------------------------------------------------- Fri Sep 2 07:53:13 UTC 2016 - tbechtold@suse.com diff --git a/python-XStatic-Angular-Schema-Form.spec b/python-XStatic-Angular-Schema-Form.spec index e5d602b..da8e88e 100644 --- a/python-XStatic-Angular-Schema-Form.spec +++ b/python-XStatic-Angular-Schema-Form.spec @@ -1,7 +1,7 @@ # # spec file for package python-XStatic-Angular-Schema-Form # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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,10 +12,11 @@ # 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-XStatic-Angular-Schema-Form Version: 0.8.13.0 Release: 0 @@ -23,16 +24,15 @@ Summary: Angular-Schema-Form 0.813 (XStatic packaging standard) License: MIT Group: Development/Languages/Python Url: http://schemaform.io/ -Source: https://pypi.io/packages/source/X/XStatic-Angular-Schema-Form/XStatic-Angular-Schema-Form-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source: https://files.pythonhosted.org/packages/source/X/XStatic-Angular-Schema-Form/XStatic-Angular-Schema-Form-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch -%description -XStatic-Angular ---------------- +%python_subpackages +%description Angular JavaScript library packaged for setuptools (easy_install) / pip. This package is intended to be used by **any** project that needs these files. @@ -47,12 +47,13 @@ You can find more info about the xstatic packaging way in the package `XStatic`. %setup -q -n XStatic-Angular-Schema-Form-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.txt %{python_sitelib}/*