Blob Blame History Raw
%global pypi_name XStatic-QUnit

Name:           python-%{pypi_name}
Release:        3%{?dist}
Summary:        QUnit (XStatic packaging standard)

License:        MIT
BuildArch:      noarch
BuildRequires:  python2-devel
BuildRequires:  python-setuptools
BuildRequires:  web-assets-devel

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

QUnit JavaScript library packaged for setuptools
(easy_install) / pip.

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

It intentionally does not provide any extra code
except some metadata nor has any extra requirements.

%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}/qunit'|" xstatic/pkg/qunit/

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

%{__python2} install --skip-build --root %{buildroot}
mkdir -p %{buildroot}/%{_jsdir}/qunit
mv %{buildroot}/%{python2_sitelib}/xstatic/pkg/qunit/data/* %{buildroot}/%{_jsdir}/qunit

%doc README.txt

* Thu Jun 18 2015 Fedora Release Engineering <> -
- Rebuilt for

* Thu Sep 04 2014 Matthias Runge <> -
- change BR to python2-devel (rhbz#1135448)

* Fri Aug 29 2014 Matthias Runge <> -
- Initial package.