File python-django-editarea.spec of Package python-django-editarea
# norootforbuild
Name: python-django-editarea
Version: 1.0
Release: 1
Summary: A Django app that render a form field as an EditArea editor
License: LGPL
Group: Development/Libraries/Python
Source: Django-EditArea-%{version}.tar.gz
URL: http://www.wefoundland.com/project/Django-EditArea
BuildRequires: python-devel, python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: python-django
%{py_requires}
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%endif
%description
Django-EditArea is a widget for Django. It adds HTML syntax highlighting to TextField fields on the admin side.
Django-EditArea is based on EditArea, so it has a whole bunch of features:
- Real-time syntax highlighting;
- Search and replace (with regular expressions too!);
- Auto-indenting;
- Line numbering;
- Full screen mode;
- Very easy to add to a new site or an existing one - no complicated setup.
Author:
--------
Aditya Bhargava <aditya@wefoundland.com>
%prep
%setup -q -n Django-EditArea-%{version}
%build
%{__python} setup.py build
%install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
%files -f INSTALLED_FILES
%defattr(-,root,root)