File html2ps.spec of Package html2ps

#
# spec file for package html2ps (Version 1.0b5)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           html2ps
Version:        1.0b5
Release:        225
BuildRequires:  ImageMagick ghostscript-fonts-std ghostscript-x11 jpeg netpbm perl-libwww-perl texlive-latex
Requires:       perl perl-libwww-perl netpbm ghostscript_any
Requires:       ImageMagick
BuildArch:      noarch
AutoReqProv:    on
Group:          Productivity/Publishing/HTML/Tools
License:        GPL v2 or later
Url:            http://user.it.uu.se/~jan/html2ps.html
Summary:        HTML to PostScript Converter
Source0:        %{name}-%{version}.tar.bz2
Source1:        html2psrc
Patch0:         %{name}-%{version}-open.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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/

%clean
rm -rf $RPM_BUILD_ROOT

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

%changelog
* Fri Nov 14 2008 mrueckert@suse.de
- Always require ImageMagick. We have it in the BuildRequires
  aswell.
- make package noarch
* Sun Apr 22 2007 ro@suse.de
- use texlive for building
* Fri Oct 20 2006 mjancar@suse.cz
- update to 1.0b5
  * few bugfixes
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 10 2003 tcrhak@suse.cz
- merged fixes from 8.1, viz.
  - Don't require ImageMagick on SLES
  - fixed insecure open() calls
* Thu Oct 31 2002 tcrhak@suse.cz
- added BuildRoot
* Wed May 22 2002 kukuk@suse.de
- Put xhtml2ps from contrib into doc directory to avoid tcl/tk
  dependencies.
* Fri Feb 15 2002 kukuk@suse.de
- Change old package name in Requires with new one, replace lynx
  with perl-libwww-perl as suggested in documentation.
* Wed Aug 08 2001 adostal@suse.cz
- update to version 2.0.0
- fix install
* Fri Jul 20 2001 kukuk@suse.de
- changed neededforbuild <gs_x11> to <ghostscript-x11>
* Wed Dec 20 2000 lmuelle@suse.de
- Add needed Requires: lynx
- bzip2ed source
* Mon Dec 18 2000 lmuelle@suse.de
- Remove obsolet Requires: lynx2
* Fri Dec 15 2000 pthomas@suse.de
- Make html2ps require lynx2. This allows the user to install
  either lynx or lynxssl.
* Wed Nov 08 2000 ro@suse.de
- fixed neededforbuild for ImageMagick
* Thu Feb 24 2000 freitag@suse.de
- moved manpages to /usr/share/man
* Fri Nov 05 1999 max@suse.de
- changed wish's path to /usr/bin
* Mon Sep 20 1999 ro@suse.de
- added requires ghostscript_any
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Mon Mar 02 1998 ro@suse.de
- fixed dependency for /usr/bin/wish
* Sun Feb 15 1998 ray@suse.de
- bugfix
- include the binary and config file
* Wed Feb 11 1998 ray@suse.de
- new package (v1.0b1)
* Mon Jan 12 1998 ke@suse.de
- initial package: version 1.0 beta1.
openSUSE Build Service is sponsored by