From dcab5b3017120ce9bf8096c459b600005a996335183780cae873300c8f3dd387 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Wed, 2 Jan 2019 13:33:21 +0000 Subject: [PATCH] - convert to singlespec OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-XStatic-objectpath?expand=0&rev=2 --- python-XStatic-objectpath.changes | 5 +++++ python-XStatic-objectpath.spec | 25 +++++++++++++------------ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/python-XStatic-objectpath.changes b/python-XStatic-objectpath.changes index ec42bf5..ea4beea 100644 --- a/python-XStatic-objectpath.changes +++ b/python-XStatic-objectpath.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 2 13:33:08 UTC 2019 - Thomas Bechtold + +- convert to singlespec + ------------------------------------------------------------------- Fri Sep 2 08:04:36 UTC 2016 - tbechtold@suse.com diff --git a/python-XStatic-objectpath.spec b/python-XStatic-objectpath.spec index d560279..67538a8 100644 --- a/python-XStatic-objectpath.spec +++ b/python-XStatic-objectpath.spec @@ -1,7 +1,7 @@ # # spec file for package python-XStatic-objectpath # -# 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-objectpath Version: 1.2.1.0 Release: 0 @@ -23,16 +24,15 @@ Summary: objectpath 1.21 (XStatic packaging standard) License: MIT Group: Development/Languages/Python Url: https://github.com/mike-marcacci/objectpath -Source: https://pypi.python.org/packages/source/X/XStatic-objectpath/XStatic-objectpath-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source: https://files.pythonhosted.org/packages/source/X/XStatic-objectpath/XStatic-objectpath-%{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-objectpath-%{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}/*