File pdftohtml.spec of Package pdftohtml
#
# spec file for package pdftohtml (Version 0.36)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: pdftohtml
BuildRequires: gcc-c++
Summary: PDF to HTML Converter
Version: 0.36
Release: 145.6
# % define version 0_35
Group: Productivity/Publishing/PDF
#Requires: xpdf
Obsoletes: pdf2html <= %version
Provides: pdf2html = %version
License: LGPL-2.1-or-later
Url: http://www.ra.informatik.uni-stuttgart.de/~gosho/pdftohtml/
Source0: %name-%{version}.tar.bz2
Patch0: pdftohtml-tmpfile.diff
Patch1: xpdf-CESA-2004-007.diff
Patch2: %{name}-HtmlLinks.h.patch
# Patch1: pdf2html-0.35.diff
Patch10: libgoo-sizet.patch
Patch12: xpdf2-underflow.patch
Patch13: xpdf-3.00pl2.patch
Patch14: xpdf-decrypt.patch
Patch15: xpdf-JBIG2Stream.patch
Patch16: xpdf-Stream.patch
Patch17: xpdf-MOAB-06-01-2007.patch
Patch18: xpdf-3.00-CVE-2007-3387.patch
Patch19: xpdf-CVE-2007-5392.patch
Patch20: xpdf-CVE-2007-5393.patch
Patch21: xpdf-CVE-2007-4352.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
pdftohtml is a command-line converter to turn PDF files (Portable
Document Format) into the HTML file format. Fine-tuning is possible
with various command-line switches.
%define INSTALL install -m755
%define INSTALL_SCRIPT install -m755
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644
%prep
%setup -q
%patch0 -p1 -b .temp
%patch10 -p 1 -b .goosizet
%patch1
%patch2
cd xpdf
%patch12 -p 2 -b .underflow
%patch13 -p1
%patch14 -p 0 -b .decrypt
cd ..
%patch15
%patch16
%patch17
%patch18 -p1
%patch19
%patch20
%patch21
%build
#CFLAGS=$RPM_OPT_FLAGS \
# ./configure --prefix=/usr %{_target_cpu}-suse-linux-gnu
# LDFLAGS=-s
# make CXX=g++ "CFLAGS=$RPM_OPT_FLAGS" prefix=/usr
make CXX=g++ DEBUG="$RPM_OPT_FLAGS" prefix=/usr
%install
%{INSTALL_DIR} $RPM_BUILD_ROOT
%{INSTALL_DIR} $RPM_BUILD_ROOT/usr/bin
%{INSTALL} pdftohtml $RPM_BUILD_ROOT/usr/bin
# make install prefix=$RPM_BUILD_ROOT/usr
# make install.man
%clean
rm -fr $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc AUTHORS BUGS CHANGES README
%license COPYING
%{_bindir}/*
# spec file ends here
%changelog