File html2ps.spec of Package html2ps

#
# spec file for package html2ps
#
# 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:           html2ps
Version:        1.0b5
Release:        0
Url:            http://user.it.uu.se/~jan/html2ps.html
Summary:        HTML to PostScript Converter
License:        GPL-2.0+
Group:          Productivity/Publishing/HTML/Tools
Source0:        http://user.it.uu.se/~jan/%name-%version.tar.gz
Source1:        html2psrc
Patch0:         %{name}-%{version}-open.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  ImageMagick
BuildRequires:  ghostscript-fonts-std
BuildRequires:  ghostscript-x11
BuildRequires:  jpeg
BuildRequires:  netpbm
BuildRequires:  perl-libwww-perl
BuildRequires:  texlive-latex
Requires:       ImageMagick
Requires:       ghostscript_any
Requires:       netpbm
Requires:       perl
Requires:       perl-libwww-perl
BuildArch:      noarch

%description
An HTML to PostScript converter written in Perl.  Html2ps understands
many of the HTML 4.0 features.	From the home page
(http://www.tdb.uu.se/~jan/html2ps.html):

* Many ways to control the appearance; this is mostly done using
   configuration files.

* Support for processing multiple documents, can be done
   automatically by recursively following links.

* A table of contents can be generated, either from the links in a
   document or automatically from document headings.

* Configurable page headers and footers that can, for example,
   contain document title, URL, page number, current heading, and
   date.

* Automatic hyphenation and text justification can be selected.



Authors:
--------
    Jan Karrman <jan@tdb.uu.se>
    Jean-Philippe Argaud <no@e.mail>

%prep
%setup
%patch0

%build

%install
install -d -m755 $RPM_BUILD_ROOT/%{_bindir}/
install -d -m755 $RPM_BUILD_ROOT/%{_prefix}/lib/html2ps/
install -d -m755 $RPM_BUILD_ROOT/%{_mandir}/man{1,5}/
install -m755 html2ps $RPM_BUILD_ROOT/%{_bindir}/
install -m644 %{S:1} hyphen.tex $RPM_BUILD_ROOT/%{_prefix}/lib/html2ps/
install -m644 html2ps.1 $RPM_BUILD_ROOT/%{_mandir}/man1/
install -m644 html2psrc.5 $RPM_BUILD_ROOT/%{_mandir}/man5/

%files
%defattr(-, root, root)
%doc COPYING README html2ps.html contrib/xhtml2ps/xhtml2ps
%doc %{_mandir}/man?/*
%{_bindir}/html2ps
%{_prefix}/lib/html2ps/

%changelog
openSUSE Build Service is sponsored by