diff --git a/python-XStatic-term.js.changes b/python-XStatic-term.js.changes index 23fea5a..024121a 100644 --- a/python-XStatic-term.js.changes +++ b/python-XStatic-term.js.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 2 13:34:50 UTC 2019 - Thomas Bechtold + +- convert to singlespec + ------------------------------------------------------------------- Thu Oct 20 08:41:16 UTC 2016 - tbechtold@suse.com diff --git a/python-XStatic-term.js.spec b/python-XStatic-term.js.spec index 58d3064..30a9685 100644 --- a/python-XStatic-term.js.spec +++ b/python-XStatic-term.js.spec @@ -1,7 +1,7 @@ # # spec file for package python-XStatic-term.js # -# 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-term.js Version: 0.0.7.0 Release: 0 @@ -23,20 +24,14 @@ Summary: term.js 0.04 (XStatic packaging standard) License: MIT Group: Development/Languages/Python Url: https://github.com/chjj/term.js -Source: https://pypi.python.org/packages/source/X/XStatic-term.js/XStatic-term.js-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -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 +Source: https://files.pythonhosted.org/packages/source/X/XStatic-term.js/XStatic-term.js-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros + +%python_subpackages %description -XStatic-termjs --------------- - term.js javascript library packaged for setuptools (easy_install) / pip. * term.js project: `Github chjj/term.js `_ @@ -54,12 +49,13 @@ You can find more info about the xstatic packaging way in the package `XStatic`. %setup -q -n XStatic-term.js-%{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.rst %{python_sitelib}/*