File python-django-tinymce.spec of Package python-django-tinymce
#
# spec file for package python-django-tinymce
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-django-tinymce
Version: 1.5.1b4
Release: 0
Url: http://code.google.com/p/django-tinymce/
Summary: An app that contains a widget to render a form field as a TinyMCE editor
License: MIT
Group: Development/Languages/Python
Source: django-tinymce-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python-django
Requires: python(abi) = %{py_ver}
%if 0%{?suse_version}
BuildRequires: fdupes
%if 0%{?suse_version} > 1110
BuildArch: noarch
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%endif
%endif
%description
Use the TinyMCE editor for your form textareas.
Features:
* Use as a form widget or with a view.
* Enhanced support for content languages.
* Integration with the TinyMCE spellchecker.
* Enables predefined link and image lists for dialogs.
* Can compress the TinyMCE javascript files.
* Integration with django-filebrowser.
%prep
%setup -q -n django-tinymce-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%if 0%{?suse_version}
%fdupes %{buildroot}%{python_sitelib}/
%endif
rm %{buildroot}%{python_sitelib}/testtinymce/testapp/templates/flatpages/.default.html.swp
%files
%defattr(-,root,root)
%{python_sitelib}/*
%changelog