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

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

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

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

Bootstrap style library packaged for
setuptools (easy_install) / pip.

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

%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf XStatic_Bootstrap_SCSS.egg-info

# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/bootstrap_scss'|" xstatic/pkg/bootstrap_scss/

%{__python2} build

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

%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

* Thu Oct 02 2014 Matthias Runge <> -
- Initial package (rhbz#1148956).