File python-merengue.spec of Package python-merengue

#
# spec file for package python-merengue
#
# 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-merengue
Version:        0.9.0
Release:        0
Summary:        Django-based CMS on Steroids
License:        LGPL-3.0
Group:          Development/Languages/Python
Url:            http://www.merengueproject.org/
Source:         http://pypi.python.org/packages/source/m/merengue/merengue-%{version}.tar.gz
# PATCH-FIX-OPENSUSE -- Don't install non-program files such as documentation as "data files"
Patch0:         merengue-0.9.0-data_files.patch
BuildRequires:  fdupes
BuildRequires:  python-devel
BuildRequires:  python-setuptools
Requires:       python-beautifulsoup
Requires:       python-cmsutils
Requires:       python-cssutils
Requires:       python-django
Requires:       python-django-ajax-selects
Requires:       python-django-announcements
Requires:       python-django-autoreports
Requires:       python-django-configfield
Requires:       python-django-debug-toolbar
Requires:       python-django-extensions
Requires:       python-django-form-admin
Requires:       python-django-genericforeignkey
Requires:       python-django-inlinetrans
Requires:       python-django-inplaceedit
Requires:       python-django-mptt
Requires:       python-django-notification
Requires:       python-django-oembed
Requires:       python-django-oot
Requires:       python-django-pagination
Requires:       python-django-south
Requires:       python-django-stdfile
Requires:       python-django-tagging
Requires:       python-django-template-utils
Requires:       python-django-threadedcomments
Requires:       python-django-transmeta
Requires:       python-django_compressor
Requires:       python-encutils
Requires:       python-feedparser
Requires:       python-imaging
Requires:       python-johnny-cache
Requires:       python-searchform
Requires:       python-sorl-thumbnail
Requires:       python-transhette
Requires:       python-twitter
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%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
Merengue is a full-featured and pluggable CMS designed for creating websites,
writing less code and mantaining clean, elegant and re-usable code.

More information in http://www.merengueproject.org/

%prep
%setup -q -n merengue-%{version}
%patch0 -p1
find . -type f | xargs touch

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Remove lang source files from python site-packages
find %{buildroot} -type f -name "*.po" -delete -print
# Remove executable bits of documentation files
chmod a-x conf/scripts/{update,nginxctl,merengue}

%fdupes -s %{buildroot}

%files
%defattr(-,root,root,-)
%doc AUTHORS CHANGES COPYING.* LICENSE README conf docs
%{_bindir}/merengue-admin.py
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by