File odpdown.spec of Package odpdown
# spec file for package odpdown
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# 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 http://bugs.opensuse.org/
#
Name: odpdown
Version: 0.4.5
Release: 0
Summary: Generate OpenDocument Presentation (odp) files from markdown
License: BSD-3-Clause
Group: Productivity/Publishing/Presentation
Url: https://github.com/bmwiedemann/odpdown.git
Source0: https://pypi.python.org/packages/source/o/odpdown/odpdown-%{version}.tar.gz
Source1: odpdown.pod
BuildRequires: python3-devel
BuildRequires: python3-odfdo >= 3.7.7
BuildRequires: python3-mistune >= 0.5
BuildRequires: python3-setuptools
BuildRequires: perl
%if 0%{?fedora} || 0%{?centos} || 0%{?rhel}
BuildRequires: python-pygments >= 1.6
%else
BuildRequires: python3-Pygments >= 1.6
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: python3-%{name} = %{version}
Requires: %{name}-template-blank
%description
Generate ODP files from markdown.
Have a tool like pandoc, latex beamer etc, that you can write (or
auto-generate) input for within your favourite hacker's editor, and
generate nice-looking slides from. Using your corporation's mandatory,
CI-compliant and lovely-artsy Impress template. Including
syntax-highlighted code snippets of your latest hack, auto-fitted into
the slides.
Usage: odpdown -h will tell you.
%package -n python3-%{name}
Summary: Generate ODP files from markdown: Python library
Requires: python3-odfdo >= 3.7.7
Requires: python3-mistune >= 0.5
%if 0%{?fedora} || 0%{?centos} || 0%{?rhel}
Requires: python-pygments >= 1.6
%else
Requires: python3-Pygments >= 1.6
%endif
%if 0%{?suse_version}
# optional runtime dependencies
Recommends: python3-Pillow >= 2.0
Recommends: python3-beautifulsoup
%else
Requires: python-Pillow >= 2.0
Requires: python-BeautifulSoup
%endif
%package -n odpdown-template-blank
Summary: Blank, unbranded slide template for odpdown
%description -n python3-%{name}
This package contains the Python library behind the odpdown command line
utility.
%description -n odpdown-template-blank
Default slide template for odpdown. This package contains a slide template
without any branding. At least one template package must be installed for
odpdown-init to work.
%prep
%setup -q -n odpdown-%{version}
%build
python3 setup.py build
pod2man -c "User Commands" -r "%{name} %{version}" %{SOURCE1} > odpdown.1
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
install -D -m 644 odpdown.1 %{buildroot}/%{_mandir}/man1/odpdown.1
%files
%defattr(-,root,root,-)
%doc LICENSE CHANGES README.md TODO.md
%{_mandir}/man1/odpdown.1%{?ext_man}
%{_bindir}/odpdown
%files -n python3-%{name}
%doc LICENSE
%{python_sitelib}/*
%changelog