File odpdown-tools.spec of Package odpdown-tools

# 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-tools
Version:        0.2.2
Release:        0
Summary:        Tools for initializing a directory with a skeleton odpdown presentation
License:        BSD-3-Clause
Group:          Productivity/Publishing/Presentation
Url:            https://github.com/jgrassler/odpdown-tools.git
Source:         https://github.com/mailprocessing/mailprocessing/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Source1:        rpmlintrc
Requires:       coreutils
Requires:       libreoffice-impress
Requires:       m4
Requires:       make
Requires:       odpdown
Requires:       odpdown-template-blank = %{version}
Requires:       tar
Requires:       python
# For presentations that contain dia images:
Recommends:     dia
# For presentations that contain SVG images:
Recommends:     inkscape
# For presentations that contain Draw images:
Recommends:     libreoffice-draw
Recommends:     pdftk

%description
Set up a skeleton odpdown presentation automatically.

This package contains a set of makefiles and scripts for building odpdown
presentations with the minimum amount of friction. It provides the odpdown-init
utility which will set up everything needed in a turnkey manner in a directory
of your choice (it's the moral equivalent to `git init`, basically). Pluggable
slide master templates are supported, so it is possible to create new template
packages if a project's or corporate slide master is updated.

%package -n odpdown-template-blank
Summary:        Blank presentation theme for odpdown-tools

%description -n odpdown-template-blank
Default slide template for odpdown. This package contains a slide template
without any branding (white background, black letters).

%prep
%setup -q -n odpdown-tools-%{version}

%build

%install
cat <<EOF > config.mk
BINDIR=%{buildroot}/%{_bindir}
DATADIR=%{_datadir}/%{name}
THEMEDIR=%{_datadir}/%{name}/themes
INSTALL_DATADIR=%{buildroot}/%{_datadir}/%{name}
INSTALL_THEMEDIR=%{buildroot}/%{_datadir}/%{name}/themes
EOF
make install

%files
%defattr(-,root,root,-)
%doc LICENSE CHANGES README.md
%{_bindir}/odpdown-init
%{_datadir}/%{name}/makefiles
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/themes
%{_datadir}/%{name}/themes/default.sh

%files -n odpdown-template-blank
%{_datadir}/%{name}/themes/blank

%changelog
openSUSE Build Service is sponsored by