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

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

License:        MIT
URL:            http://getbootstrap.com/
Source0:        https://pypi.python.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python2-devel
BuildRequires:  python-setuptools
BuildRequires:  web-assets-devel

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

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

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

%prep
%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/__init__.py


%build
%{__python2} setup.py build


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



%files
%doc README.txt
%{python2_sitelib}/xstatic/pkg/bootstrap_scss
%{python2_sitelib}/XStatic_Bootstrap_SCSS-%{version}-py%{python_version}.egg-info
%{python2_sitelib}/XStatic_Bootstrap_SCSS-%{version}-py%{python_version}-nspkg.pth
%{_jsdir}/bootstrap_scss

%changelog
* Thu Oct 02 2014 Matthias Runge <mrunge@redhat.com> - 3.2.0.0-1
- Initial package (rhbz#1148956).