Summary: Convert HTML documents into PDF or PS format
Name: htmldoc
Version: 1.8.28
Release: 7
License: GPLv2
Group: File tools
Url: http://www.htmldoc.org/
Source0: http://www.msweet.org/files/project1/%{name}-%{version}-source.tar.bz2
Patch0: htmldoc-1.8.28-compile.patch
Patch3: htmldoc-1.8.27-fixdso.patch
BuildRequires: fltk-devel
BuildRequires: jpeg-devel
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(gnutls) pkgconfig(libgcrypt)
BuildRequires: pkgconfig(zlib)
Requires: fltk
%description
HTMLDOC allow you to convert Html documents into PDF or PS format.
Links and somes specific things of PDF format can be used.
%package nogui
Summary: Convert HTML documents into PDF or PS format
Group: File tools
%description nogui
This package contains the non-GUI version of %{name}
%prep
%setup -q
%apply_patches
autoconf
%build
# first build the non gui version
%configure \
--disable-localpng \
--disable-localjpeg \
--disable-localzlib \
--without-gui
%make
mv htmldoc/htmldoc htmldoc-nogui
make clean
%configure \
--disable-localpng \
--disable-localjpeg \
--disable-localzlib \
--with-gui \
--with-openssl-libs \
--with-openssl-includes
%make
%install
%makeinstall
install -d %{buildroot}%{_bindir}
install -m0755 htmldoc-nogui %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <