File dpic.spec of Package dpic

# spec file for package dpic
# 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

Name:           dpic
Version:        2015.06.29
Release:        0
Summary:        Pic language processor
License:        BSD-2-Clause and CC-BY-3.0
Group:          Productivity/Publishing/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Pic language processor for LaTeX documents or web sites.

%package        doc
Summary:        Documentation for dpic
Group:          Documentation/Other
BuildArch:      noarch
Requires:       dpic

%description    doc

This package contains the documentation for dpic.

%setup -n %{name} -q
chmod 644 CHANGES

export CFLAGS="%{optflags}"
make %{?_smp_mflags}

%make_install PREFIX=%{_prefix}
install -Dm 644 doc/dpic.1 %{buildroot}%{_mandir}/man1/dpic.1
install -Dm 644 doc/dpicdoc.pdf %{buildroot}%{_docdir}/dpic/dpicdoc.pdf

%exclude %{_docdir}/dpic/dpicdoc.pdf

%files doc