Blob Blame History Raw
# Created by pyp2rpm-1.1.1
%global pypi_name XStatic-Bootstrap-Datepicker

Name:           python-%{pypi_name}
Release:        4%{?dist}
Summary:        Bootstrap-Datepicker (XStatic packaging standard)

License:        ASL 2.0
BuildArch:      noarch

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

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

Bootstrap-Datepicker 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 XStatic_Bootstrap_Datepicker.egg-info

sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/bootstrap_datepicker'|" xstatic/pkg/bootstrap_datepicker/

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

%{__python2} install --skip-build --root %{buildroot}

mkdir -p %{buildroot}/%{_jsdir}/bootstrap_datepicker
mv %{buildroot}/%{python2_sitelib}/xstatic/pkg/bootstrap_datepicker/data/* %{buildroot}/%{_jsdir}/bootstrap_datepicker

%doc README.txt

* Tue Jul 19 2016 Fedora Release Engineering <> -

* Thu Feb 04 2016 Fedora Release Engineering <> -
- Rebuilt for

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

* Fri Sep 19 2014 Matthias Runge <> -
- Initial package.