File dpic.spec of Package dpic

#
# spec file for package dpic
#
# Copyright (c) 2014 SUSE LINUX Products 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:        2014.01.01
Release:        0
%define src_ver 2014.Jan.01
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}-%{src_ver}.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

%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

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%doc README CHANGES
%{_mandir}/man1/dpic.1*

%files doc
%defattr(-,root,root)
%doc doc/dpicdoc.pdf

%changelog
openSUSE Build Service is sponsored by