File db2mal.spec of Package db2mal

#
# spec file for package db2mal
#
# Copyright (c) 2017 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/
#

%define stylesheetdir /usr/share/xml/docbook/stylesheet/

Name:           db2mal
Version:        0.1
Release:        1
Summary:        DocBook to Mallard converter
License:        GPL-2.0
Group:          Productivity/Publishing/DocBook
Url:            https://github.com/projectmallard/db2mal/
Source0:        db2mal.tar.bz2
Source1:	      README
Source2:	      COPYING
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This package provides the stylesheets for converting DocBook to Mallard.

%prep
%setup -q -n db2mal-master

%build

%install
mkdir -p -m755 %{buildroot}%{stylesheetdir}/mallard
cp -a * %{buildroot}%{stylesheetdir}/mallard
install -d %{buildroot}%{_docdir}/%{name}-%{version}
install -m644 %{SOURCE1} %{buildroot}%{_docdir}/%{name}-%{version}/README
install -m644 %{SOURCE2} %{buildroot}%{_docdir}/%{name}-%{version}/COPYING

%files
%defattr(-,root,root,-)
%doc %{_docdir}/%{name}-%{version}
%dir %{stylesheetdir}
%dir %{stylesheetdir}/mallard
%{stylesheetdir}/mallard/*

%changelog
openSUSE Build Service is sponsored by