# # spec file for package htmldoc # # Copyright (c) 2017 SUSE LINUX 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: htmldoc Version: 1.8.28 Release: 0 Summary: HTML Processor that Generates HTML, PostScript, and PDF Files License: LGPL-2.1+ Group: Productivity/Publishing/HTML/Tools Url: http://htmldoc.org/ Source: http://www.msweet.org/files/project1/%{name}-%{version}-source.tar.bz2 Patch0: %{name}-docpath.diff # PATCH-FIX-UPSTREAM htmldoc-cups_rand.patch upstream bug #510 Patch1: htmldoc-cups_rand.patch BuildRequires: autoconf BuildRequires: fltk-devel BuildRequires: freeglut-devel BuildRequires: gcc-c++ BuildRequires: libXpm-devel BuildRequires: libdrm-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: openssl-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description HTMLDOC converts HTML source files into indexed HTML, PostScript, or Portable Document Format (PDF) files that can be viewed online or printed. %prep %setup -q %patch0 %patch1 -p1 %build autoconf export CFLAGS="%{optflags} -fno-strict-aliasing" %configure \ --with-gui make %{?_smp_mflags} V=1 %install make \ %{?_smp_mflags} \ bindir=%{buildroot}/%{_bindir} \ prefix=%{buildroot}/%{_usr} \ mandir=%{buildroot}/%{_mandir} \ datadir=%{buildroot}/%{_datadir} \ install %files %defattr(-,root,root) %doc cgi-bin/ CHANGES.txt COPYING.txt README.txt %{_bindir}/htmldoc %{_datadir}/htmldoc %{_mandir}/man1/htmldoc.1%{ext_man} %{_docdir}/%{name} %changelog