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