File htmldoc.spec of Package htmldoc
#
# spec file for package htmldoc (Version 1.8.27)
#
# Copyright (c) 2010 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: htmldoc
BuildRequires: fltk-devel freeglut-devel gcc-c++ libdrm-devel libjpeg-devel libpng-devel openssl-devel
License: LGPLv2.1+
Group: Productivity/Publishing/HTML/Tools
Url: http://htmldoc.org/
AutoReqProv: on
Version: 1.8.27
Release: 173
Summary: HTML Processor that Generates HTML, PostScript, and PDF Files
Source: %{name}-%{version}-source.tar.bz2
Patch: %{name}-docpath.diff
Patch1: htmldoc_CVE-2009-3050_535943.diff
Patch2: htmldoc-fortify.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define DOCDIR %{_datadir}/doc/packages/%{name}
%description
HTMLDOC converts HTML source files into indexed HTML, PostScript, or
Portable Document Format (PDF) files that can be viewed online or
printed.
Authors:
--------
Michael Sweet <mike at easysw dot com>
%prep
%setup
%patch
%patch1 -p1
%patch2
%build
%{?suse_update_config:%{suse_update_config -f}}
export CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing"
autoconf
./configure \
--bindir=%{_bindir} \
--prefix=%{_usr} \
--mandir=%{_mandir} \
--with-fltk-libs=/usr/X11R6/lib \
--with-fltk-includes=/usr/X11R6/include \
--with-gui
make
%install
[ x"${RPM_BUILD_ROOT}" = x"/" ] && ( echo "your buildroot is /" && exit 0) || rm -rf "${RPM_BUILD_ROOT}"
mkdir -p \
${RPM_BUILD_ROOT}/%{_bindir} \
${RPM_BUILD_ROOT}/%{_mandir}
make \
bindir=${RPM_BUILD_ROOT}/%{_bindir} \
prefix=${RPM_BUILD_ROOT}/%{_usr} \
mandir=${RPM_BUILD_ROOT}/%{_mandir} \
install
rm -v doc/Makefile
%files
%defattr(-,root,root)
%{_bindir}/htmldoc
%{_datadir}/htmldoc
%doc %{_mandir}/man1/htmldoc.1.gz
%doc doc/ cgi-bin/ CHANGES.txt COMPILE.txt COPYING.txt README.txt
%changelog