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

Name:           python-%{pypi_name}
Version:        3.2.0.0
Release:        4%{?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
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0.0-4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

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