]> git.pld-linux.org Git - packages/htmldoc.git/blobdiff - htmldoc.spec
- added link patch to kill unnecessary -lnsl
[packages/htmldoc.git] / htmldoc.spec
index 2e97af109f75718c01a388a29ec98f4e74bee175..831740886444902a3d1b419c32c25becc144b036 100644 (file)
@@ -1,27 +1,28 @@
+#
+# Conditional build:
+%bcond_without gui     # without FLTK-based GUI
+#
 Summary:       HTML processing program
 Summary(pl):   Program przetwarzaj±cy HTML
 Name:          htmldoc
-Version:       1.8.19
+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: OpenGL-devel
-BuildRequires: XFree86-devel
+%{?with_gui:BuildRequires:     XFree86-devel}
 BuildRequires: autoconf
-BuildRequires: fltk-devel
+BuildRequires: automake
+%{?with_gui:BuildRequires:     fltk-devel}
 BuildRequires: libjpeg-devel
 BuildRequires: libpng-devel
-BuildRequires: openssl-devel
+BuildRequires: openssl-devel >= 0.9.7d
 BuildRequires: zlib-devel
-Requires:      OpenGL
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix         /usr/X11R6
-%define                _mandir         %{_prefix}/man
-%define         _noautoreqdep   libGL.so.1 libGLU.so.1
-
 %description
 HTML processing program that generates HTML, PostScript, and PDF files
 with a table of contents.
@@ -32,14 +33,13 @@ PDF ze spisem tre
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-aclocal
-autoconf
-if [ -f %{_pkgconfigdir}/libpng12.pc ] ; then
-        CPPFLAGS="`pkg-config libpng12 --cflags`";
-fi
-%configure CXXFLAGS="$CPPFLAGS"
+%{__aclocal}
+%{__autoconf}
+%configure \
+       %{!?with_gui:--without-gui}
 %{__make}
 
 %install
@@ -49,14 +49,12 @@ rm -rf $RPM_BUILD_ROOT
        mandir=$RPM_BUILD_ROOT%{_mandir} \
        bindir=$RPM_BUILD_ROOT%{_bindir}
 
-gzip -9nf CHANGES.txt README.txt
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz doc/htmldoc.html doc/htmldoc.png doc/htmldoc-fig*.png
+%doc CHANGES.txt README.txt doc/htmldoc.html doc/htmldoc.png doc/htmldoc-fig*.png
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/*
 %{_datadir}/htmldoc
This page took 0.050656 seconds and 4 git commands to generate.