bfe1338
%{!?__python2:%global __python2 %{__python}}
bfe1338
%{!?python2_sitelib:   %global python2_sitelib         %{python_sitelib}}
bfe1338
bfe1338
%global pypi_name django-pyscss
bfe1338
bfe1338
Name:           python-%{pypi_name}
ca3bfde
Version:        1.0.5
07b23ec
Release:        2%{?dist}
bfe1338
Summary:        Makes it easier to use PySCSS in Django
bfe1338
bfe1338
License:        BSD
bfe1338
URL:            https://github.com/fusionbox/django-pyscss
ca3bfde
Source0:        https://github.com/fusionbox/django-pyscss/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
ca3bfde
Patch00:        0001-make-tests-succeed-on-Django-1.7.patch
bfe1338
BuildArch:      noarch
bfe1338
 
bfe1338
BuildRequires:  python-devel
f142604
BuildRequires:  python-setuptools
07b23ec
07b23ec
%if 0%{?fedora} > 0 
bfe1338
BuildRequires:  python-pillow
bfe1338
BuildRequires:  python-django-compressor >= 1.3
bfe1338
BuildRequires:  python-django-discover-runner
bfe1338
BuildRequires:  python-scss >= 1.2.0
bfe1338
BuildRequires:  python-django
07b23ec
%endif 
bfe1338
Requires:       python-django >= 1.4
bfe1338
Requires:       python-scss >= 1.2.0
bfe1338
bfe1338
%description
bfe1338
A collection of tools for making it easier to use
bfe1338
pyScss within Django.
bfe1338
bfe1338
%prep
bfe1338
%setup -q -n %{pypi_name}-%{version}
ca3bfde
ca3bfde
%patch0 -p1
bfe1338
# Remove bundled egg-info
bfe1338
rm -rf %{pypi_name}.egg-info
bfe1338
bfe1338
%build
bfe1338
%{__python2} setup.py build
bfe1338
bfe1338
bfe1338
%install
bfe1338
%{__python2} setup.py install --skip-build --root %{buildroot}
bfe1338
07b23ec
%if 0%{?fedora} > 0 
bfe1338
%check
bfe1338
%{__python2} setup.py test
07b23ec
%endif
bfe1338
bfe1338
%files
bfe1338
%doc README.rst LICENSE
bfe1338
%{python2_sitelib}/django_pyscss
bfe1338
%{python2_sitelib}/django_pyscss-%{version}-py?.?.egg-info
bfe1338
bfe1338
%changelog
07b23ec
* Wed Oct 22 2014 Matthias Runge <mrunge@redhat.com> - 1.0.5-2
07b23ec
- don't execute checks on RHEL
07b23ec
ca3bfde
* Fri Oct 17 2014 Matthias Runge <mrunge@redhat.com> - 1.0.5-1
ca3bfde
- update to 1.0.5
ca3bfde
- fix tests and utils.py to work with Django-1.7
ca3bfde
6b73b86
* Fri Sep 26 2014 Matthias Runge <mrunge@redhat.com> - 1.0.3-1
6b73b86
- update to 1.0.3
6b73b86
84ad375
* Thu Aug 07 2014 Matthias Runge <mrunge@redhat.com> - 1.0.2-1
84ad375
- update to 1.0.2
84ad375
f142604
* Tue Jul 08 2014 Matthias Runge <mrunge@redhat.com> - 1.0.1-2
f142604
- add br python-setuptools
f142604
bfe1338
* Tue Jul 08 2014 Matthias Runge <mrunge@redhat.com> - 1.0.1-1
bfe1338
- Initial package.