Blob Blame Raw
# Created by pyp2rpm-1.1.2
%global pypi_name XStatic-term.js

Name:           python-XStatic-termjs
Release:        1%{?dist}
Summary:        term.js (XStatic packaging standard)

License:        MIT
BuildArch:      noarch

BuildRequires:  python-setuptools
BuildRequires:  python2-devel
BuildRequires:  web-assets-devel

Requires: python-XStatic
Requires: web-assets-filesystem

term.js javascript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/termjs'|" xstatic/pkg/termjs/

# due
# this package can not be built with python-XStatic installed.
%{__python2} build

%{__python2} install --skip-build --root %{buildroot}
mkdir -p %{buildroot}/%{_jsdir}/termjs
mv %{buildroot}/%{python2_sitelib}/xstatic/pkg/termjs/data/term.js %{buildroot}/%{_jsdir}/termjs

%doc README.rst

* Thu Feb 19 2015 Matthias Runge <> -
- Initial package (rhbz#1194225).