File python-django-markdownx.spec of Package python-django-markdownx

# spec file for package python-django-markdownx
# Copyright (c) 2018 SUSE LINUX 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-django-markdownx
Version:        2.0.28
Release:        0
Summary:        A comprehensive Markdown plugin for Django
License:        BSD-2-Clause
Group:          Development/Languages/Python
Source:         django-markdownx-%{version}.tar.gz
BuildRequires:  %{python_module Django >= 1.8}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module Pillow}
BuildRequires:  %{python_module Markdown}
BuildRequires:  python-rpm-macros
Requires:       python3-Django >= 1.8
Requires:       python3-Pillow
Requires:       python3-Markdown
Requires:       python2-Django >= 1.8
Requires:       python2-Pillow
Requires:       python2-Markdown
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Django MarkdownX is a comprehensive Markdown plugin built for Django, the renowned high-level Python web framework, with flexibility, extensibility, and ease-of-use at its core.

Key features
* Raw editing.
* Live preview.
* Drag & drop image uploads (automatically stored in the designated location in the Media directory).
* Customizable image insertion tag.
* Definition of maximum size for an image.
* Definition of acceptable image formats (PNG, JPEG, SVG).
* Image manipulations (compression, size reduction, cropping, upscaling).
* Pre- and post- text modification.
* Easy template customization, layout modification, and personalization.
* Multiple editors per page.
* Django Admin support.

%setup -q -n django-markdownx-%{version}



%files %{python_files}