SPECS: htmldoc.spec - added link patch to kill unnecessary -lnsl -...

qboosh qboosh at pld-linux.org
Thu Apr 27 13:38:34 CEST 2006


Author: qboosh                       Date: Thu Apr 27 11:38:34 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added link patch to kill unnecessary -lnsl
- added gui bcond

---- Files affected:
SPECS:
   htmldoc.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: SPECS/htmldoc.spec
diff -u SPECS/htmldoc.spec:1.18 SPECS/htmldoc.spec:1.19
--- SPECS/htmldoc.spec:1.18	Sat Mar 20 00:46:27 2004
+++ SPECS/htmldoc.spec	Thu Apr 27 13:38:29 2006
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	gui	# without FLTK-based GUI
+#
 Summary:	HTML processing program
 Summary(pl):	Program przetwarzający HTML
 Name:		htmldoc
@@ -6,20 +10,20 @@
 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.
@@ -30,11 +34,13 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__aclocal}
 %{__autoconf}
-%configure
+%configure \
+	%{!?with_gui:--without-gui}
 %{__make}
 
 %install
@@ -60,6 +66,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.19  2006/04/27 11:38:29  qboosh
+- added link patch to kill unnecessary -lnsl
+- added gui bcond
+
 Revision 1.18  2004/03/19 23:46:27  ankry
 - massive change: BR openssl-devel >= 0.9.7d
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/htmldoc.spec?r1=1.18&r2=1.19&f=u



More information about the pld-cvs-commit mailing list