File python-django-css.spec of Package python-django-css

# norootforbuild

%define modname django-css
Name:           python-%{modname}
Version:        2.1.5
Release:        1
Summary:        Django application that automates CSS compilation and compression
URL:            http://github.com/dziegler/django-css
License:        New BSD License
Group:          Development/Libraries/Python
Source:         %{modname}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-buildroot
BuildRequires:  python-devel python-setuptools
Requires:       python-django python-beautifulsoup
%{py_requires}
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch:      noarch
%endif


%description
Django-css is a fork of django_compressor
(http://github.com/mintchaos/django_compressor/tree/master) that makes it easy
to use CSS compilers with your Django projects. CSS compilers extend CSS syntax
to include more powerful features such as variables and nested blocks, and
pretty much rock all around. Django-css can currently be used with any CSS
compiler that can be called from the command line, such as HSS, Sass,
CleverCSS, or LESS.

Thanks to django_compressor, django-css will also version and compress linked
and inline javascript or CSS into a single cached file. These cached files will
get served through whatever frontend server you use for serving static files,
because serving static files through Django is just silly.

Note: The pypi version of CleverCSS is buggy and will not work with django-css.
Use the updated version on github:
http://github.com/dziegler/clevercss/tree/master
(Which the openSUSE buildservice does.)

Author:
--------
    David Ziegler <david.ziegler@gmail.com>


%prep
%setup -q -n %{modname}


%build
export CFLAGS="$RPM_OPT_FLAGS"
%{__python} setup.py build


%install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES


%clean
%{__rm} -rf %{buildroot}


%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc AUTHORS
%doc LICENSE
%doc README.rst


%changelog
openSUSE Build Service is sponsored by