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 http://bugs.opensuse.org/
#
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
Url: http://www.ece.uwaterloo.ca/~aplevich/dpic/
Source0: https://ece.uwaterloo.ca/~aplevich/dpic/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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.
%prep
%setup -n %{name} -q
chmod 644 CHANGES
%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags}
%install
%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
%files
%defattr(-,root,root)
%doc README CHANGES
%exclude %{_docdir}/dpic/dpicdoc.pdf
%{_bindir}/%{name}
%{_mandir}/man1/dpic.1*
%files doc
%defattr(-,root,root)
%{_docdir}/dpic/dpicdoc.pdf
%changelog