From: Jakub Bogusz Date: Thu, 27 Apr 2006 11:38:29 +0000 (+0000) Subject: - added link patch to kill unnecessary -lnsl X-Git-Tag: auto/th/htmldoc-1_8_23-1~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fhtmldoc.git;a=commitdiff_plain;h=57443028409c5f6442caa02a6e6e70a963ed0a3d - added link patch to kill unnecessary -lnsl - added gui bcond Changed files: htmldoc.spec -> 1.19 --- diff --git a/htmldoc.spec b/htmldoc.spec index 321e593..8317408 100644 --- a/htmldoc.spec +++ b/htmldoc.spec @@ -1,3 +1,7 @@ +# +# Conditional build: +%bcond_without gui # without FLTK-based GUI +# Summary: HTML processing program Summary(pl): Program przetwarzaj±cy HTML Name: htmldoc @@ -5,20 +9,20 @@ Version: 1.8.23 Release: 1 License: GPL Group: Applications/Publishing -Source0: ftp://ftp.easysw.com/pub/%{name}/%{version}/%{name}-%{version}-source.tar.bz2 +Source0: ftp://ftp.easysw.com/pub/htmldoc/%{version}/%{name}-%{version}-source.tar.bz2 # Source0-md5: f867be6e4bdebf84ca6d58b16e4b839c +Patch0: %{name}-link.patch URL: http://www.easysw.com/htmldoc/ -BuildRequires: XFree86-devel +%{?with_gui:BuildRequires: XFree86-devel} BuildRequires: autoconf BuildRequires: automake -BuildRequires: fltk-devel +%{?with_gui:BuildRequires: fltk-devel} BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: openssl-devel >= 0.9.7d BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) - %description HTML processing program that generates HTML, PostScript, and PDF files with a table of contents. @@ -29,11 +33,13 @@ PDF ze spisem tre %prep %setup -q +%patch0 -p1 %build %{__aclocal} %{__autoconf} -%configure +%configure \ + %{!?with_gui:--without-gui} %{__make} %install