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