File python-Mezzanine.spec of Package python-mezzanine
#
# spec file for package python-Mezzanine
#
# 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-Mezzanine
Version: 1.4.16
Release: 0
Url: http://mezzanine.jupo.org/
Summary: An open source content management platform built using the Django framework
License: BSD-2-Clause
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/M/Mezzanine/Mezzanine-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-Django
BuildRequires: python-Sphinx
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python-Django
Requires: python-django-filebrowser
Requires: python-django-grappelli
Requires: python-imaging
%if 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%else
BuildArch: noarch
%endif
%description
Mezzanine is a content management platform built using the Django
framework. It is BSD licensed and designed to provide both a consistent
interface for managing content, and a simple architecture that makes diving
in and hacking on the code as easy as possible.
Its goal is to resemble something like Wordpress, with an intuitive
interface for managing pages and blog posts. Mezzanine takes a different
approach from other Django applications in this space like Pinax or
Mingus that glue together a lot of reusable apps, instead opting to
provide most of its functionality included with the project by default.
Features
========
On top of all the usual features provided by Django such as MVC architecture,
ORM, templating, caching and the automatic admin interface, Mezzanine
provides the following features.
* Hierarchical page navigation
* Save as draft and preview on site
* Scheduled publishing
* Drag-n-drop page ordering
* WYSIWYG editing
* In-line page editing
* Drag-n-drop HTML5 forms builder with CSV export
* API for custom content types
* SEO friendly URLs and meta data
* Search engine and API
* Configurable dashboard widgets
* Multi-device detection and template handling
* Shopping cart module Cartridge
* Blogging engine
* Themes
* Tagging
* One step migration from other blogging engines
* Built-in threaded comments, or:
* Disqus integration
* Gravatar integration
* Google Analytics integration
* Twitter feed integration
* bit.ly integration
* Sharing via Facebook or Twitter
* Custom templates per page or blog post
* Built-in test suite
* 960.gs integration
Browser Support
===============
Mezzanine's admin interface works with all modern browsers.
Internet Explorer 7 and earlier are generally unsupported.
%prep
%setup -q -n Mezzanine-%{version}
##find -iname *.pyc | xargs rm
%build
python setup.py build
python setup.py build_sphinx
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Remove git/hg internal version control files
rm %{buildroot}%{python_sitelib}/mezzanine/project_template/{.hgignore,.gitignore}
# Remove lang source files from python site-packages
find %{buildroot} -type f -name "*.po" -delete -print
%files
%defattr(-,root,root)
%doc CHANGELOG LICENSE README.rst build/sphinx/html
%{_bindir}/mezzanine-project
%{python_sitelib}/*
%changelog