f730321
%global pypi_name XStatic-QUnit
f730321
f730321
Name:           python-%{pypi_name}
f730321
Version:        1.14.0.2
e24d85c
Release:        3%{?dist}
f730321
Summary:        QUnit (XStatic packaging standard)
f730321
f730321
License:        MIT
f730321
URL:            http://qunitjs.com
f730321
Source0:        https://pypi.python.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
f730321
BuildArch:      noarch
f730321
 
f730321
BuildRequires:  python2-devel
f730321
BuildRequires:  python-setuptools
f730321
BuildRequires:  web-assets-devel
f730321
f730321
Requires: python-XStatic
f730321
Requires: web-assets-filesystem
f730321
f730321
f730321
%description
f730321
QUnit JavaScript library packaged for setuptools
f730321
(easy_install) / pip.
f730321
f730321
This package is intended to be used by any project
f730321
that needs these files.
f730321
f730321
It intentionally does not provide any extra code
f730321
except some metadata nor has any extra requirements.
f730321
f730321
%prep
f730321
%setup -q -n %{pypi_name}-%{version}
f730321
# Remove bundled egg-info
f730321
rm -rf %{pypi_name}.egg-info
f730321
f730321
# patch to use webassets dir
f730321
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/qunit'|" xstatic/pkg/qunit/__init__.py
f730321
f730321
%build
f730321
# due 
f730321
# https://bitbucket.org/thomaswaldmann/xstatic/issue/2/
f730321
# this package can not be built with python-XStatic installed.
f730321
%{__python2} setup.py build
f730321
f730321
f730321
%install
f730321
%{__python2} setup.py install --skip-build --root %{buildroot}
f730321
mkdir -p %{buildroot}/%{_jsdir}/qunit
f730321
mv %{buildroot}/%{python2_sitelib}/xstatic/pkg/qunit/data/* %{buildroot}/%{_jsdir}/qunit
f730321
f730321
f730321
f730321
%files
f730321
%doc README.txt
f730321
%{python2_sitelib}/xstatic/pkg/qunit
f730321
%{python2_sitelib}/XStatic_QUnit-%{version}-py%{python_version}.egg-info
f730321
%{python2_sitelib}/XStatic_QUnit-%{version}-py%{python_version}-nspkg.pth
f730321
%{_jsdir}/qunit
f730321
f730321
%changelog
e24d85c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.0.2-3
e24d85c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e24d85c
f730321
* Thu Sep 04 2014 Matthias Runge <mrunge@redhat.com> - 1.14.0.2-2
f730321
- change BR to python2-devel (rhbz#1135448)
f730321
f730321
* Fri Aug 29 2014 Matthias Runge <mrunge@redhat.com> - 1.14.0.2-1
f730321
- Initial package.