Blob Blame History Raw
%{!?__python2:%global __python2 %{__python}}
%{!?python2_sitelib:   %global python2_sitelib         %{python_sitelib}}

%global pypi_name django-pyscss

Name:           python-%{pypi_name}
Version:        1.0.5
Release:        2%{?dist}
Summary:        Makes it easier to use PySCSS in Django

License:        BSD
URL:            https://github.com/fusionbox/django-pyscss
Source0:        https://github.com/fusionbox/django-pyscss/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch00:        0001-make-tests-succeed-on-Django-1.7.patch
BuildArch:      noarch
 
BuildRequires:  python-devel
BuildRequires:  python-setuptools

%if 0%{?fedora} > 0 
BuildRequires:  python-pillow
BuildRequires:  python-django-compressor >= 1.3
BuildRequires:  python-django-discover-runner
BuildRequires:  python-scss >= 1.2.0
BuildRequires:  python-django
%endif 
Requires:       python-django >= 1.4
Requires:       python-scss >= 1.2.0

%description
A collection of tools for making it easier to use
pyScss within Django.

%prep
%setup -q -n %{pypi_name}-%{version}

%patch0 -p1
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%{__python2} setup.py build


%install
%{__python2} setup.py install --skip-build --root %{buildroot}

%if 0%{?fedora} > 0 
%check
%{__python2} setup.py test
%endif

%files
%doc README.rst LICENSE
%{python2_sitelib}/django_pyscss
%{python2_sitelib}/django_pyscss-%{version}-py?.?.egg-info

%changelog
* Wed Oct 22 2014 Matthias Runge <mrunge@redhat.com> - 1.0.5-2
- don't execute checks on RHEL

* Fri Oct 17 2014 Matthias Runge <mrunge@redhat.com> - 1.0.5-1
- update to 1.0.5
- fix tests and utils.py to work with Django-1.7

* Fri Sep 26 2014 Matthias Runge <mrunge@redhat.com> - 1.0.3-1
- update to 1.0.3

* Thu Aug 07 2014 Matthias Runge <mrunge@redhat.com> - 1.0.2-1
- update to 1.0.2

* Tue Jul 08 2014 Matthias Runge <mrunge@redhat.com> - 1.0.1-2
- add br python-setuptools

* Tue Jul 08 2014 Matthias Runge <mrunge@redhat.com> - 1.0.1-1
- Initial package.