File python-clevercss.spec of Package python-clevercss

#
# spec file for package python-clevercss
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

%define gitrev 2272da5785fd9a5a723ea12a5d7081bec20b7c9b
Name:           python-clevercss
BuildRequires:  python-devel python-setuptools
URL:            http://github.com/dziegler/clevercss/tree/master
License:        BSD
Group:          Development/Libraries/Python
Autoreqprov:    on
Version:        0.1
Release:        0
Summary:        CleverCSS - Markup language for CSS inspired by Python
Source:         http://download.github.com/dziegler-clevercss-%{gitrev}.tar.gz
Patch1:         python-clevercss-tymofij.patch
Patch2:         python-clevercss-poeml-comments.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{py_requires}

%description
An updated version Armin Ronacher's CleverCSS 0.1 that includes several bug fixes.

CleverCSS is a small markup language for CSS inspired by Python that can be used
to build a style sheet in a clean and structured way.  In many ways it's cleaner
and more powerful than CSS2 is.

The most obvious difference to CSS is the syntax: it is indentation based and
not flat.  While this is obviously against the Python Zen, it's nonetheless a
good idea for structural styles.


Copyright 2007 by Armin Ronacher, Georg Brandl.
Bugfixes from David Ziegler.

%prep
%setup -n dziegler-clevercss-%{gitrev}
%patch1 -p1
%patch2 -p1

%build
export CFLAGS="$RPM_OPT_FLAGS" 
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README BUGFIXES
%doc tests

%changelog
openSUSE Build Service is sponsored by