15
0
2019-01-02 13:36:28 +00:00
committed by Git OBS Bridge
parent 7be68cfe8e
commit 99b2a47ce9
2 changed files with 18 additions and 17 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 2 13:34:50 UTC 2019 - Thomas Bechtold <tbechtold@suse.com>
- convert to singlespec
-------------------------------------------------------------------
Thu Oct 20 08:41:16 UTC 2016 - tbechtold@suse.com

View File

@@ -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 <https://github.com/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}/*