-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathodpdown.spec
78 lines (67 loc) · 2.45 KB
/
odpdown.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#
# spec file for package python-odpdown
#
# Copyright (c) 2015 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: python-odpdown
Version: 0
Release: 0
Summary: Generate OpenDocument Presentation (odp) files from markdown
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/thorstenb/odpdown.git
Source: https://pypi.python.org/packages/source/o/odpdown/odpdown-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-lpod >= 1.1.6
BuildRequires: python-mistune >= 0.7.1
BuildRequires: python-setuptools
Requires: python-lpod >= 1.1.6
Requires: python-mistune >= 0.7.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%if 0%{?fedora} || 0%{?centos} || 0%{?rhel}
BuildRequires: python-pygments >= 1.6
Requires: python-pygments >= 1.6
%else
BuildRequires: python-Pygments >= 1.6
Requires: python-Pygments >= 1.6
%endif
%if 0%{?suse_version}
# optional runtime dependencies
Recommends: python-Pillow >= 2.0
Recommends: python-beautifulsoup
%else
Requires: python-Pillow >= 2.0
Requires: python-BeautifulSoup
%endif
%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.
%prep
%setup -q -n odpdown-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE CHANGES README.md TODO.md
%{_bindir}/odpdown
%{python_sitelib}/*
%changelog