about summary refs log tree commit diff stats
path: root/PACKAGE
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2010-09-22 10:53:56 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2010-09-22 10:53:56 -0400
commitbf665822fc371159c9fc6630ab805638c58ab299 (patch)
treea85a0ee9a271bf9cde1108daca90b657f0aed5f9 /PACKAGE
parent2bfdbc116276afc90c803427e7af7b44a0c11c66 (diff)
downloadlynx-snapshots-bf665822fc371159c9fc6630ab805638c58ab299.tar.gz
snapshot of project "lynx", label v2-8-8dev_5b
Diffstat (limited to 'PACKAGE')
-rwxr-xr-xPACKAGE/debian/rules31
-rw-r--r--PACKAGE/lynx.spec34
2 files changed, 50 insertions, 15 deletions
diff --git a/PACKAGE/debian/rules b/PACKAGE/debian/rules
index ca5c9ed4..ceb4e199 100755
--- a/PACKAGE/debian/rules
+++ b/PACKAGE/debian/rules
@@ -16,9 +16,11 @@ PKG_SUFFIX	= -dev
 PACKAGE		:= $(shell dpkg-parsechangelog| \
 			sed -n 's/^Source: \(.*\)$$/\1/p')
 
+docdir		:= /usr/share/doc/$(PACKAGE)
+helpdir		:= $(docdir)/help_dir
+
 DSTDIR		:= $(CURDIR)/debian/$(PACKAGE)
-BINDIR          := $(DSTDIR)/usr/bin
-DOCDIR		:= $(DSTDIR)/usr/share/doc/$(PACKAGE)
+DOCDIR		:= $(DSTDIR)$(docdir)
 
 CFLAGS =
 
@@ -37,6 +39,9 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
         INSTALL_PROGRAM += -s
 endif
 
+# This package adds the following not in Debian lynx-cur:
+# --enable-htmlized-cfg
+# --enable-local-docs
 
 configure: configure-stamp
 configure-stamp:
@@ -67,9 +72,11 @@ configure-stamp:
 		--enable-externs \
 		--enable-forms-options \
 		--enable-gzip-help \
+		--enable-htmlized-cfg \
 		--enable-ipv6 \
 		--enable-japanese-utf8 \
 		--enable-justify-elts \
+		--enable-local-docs \
 		--enable-nested-tables \
 		--enable-nls \
 		--enable-nsl-fork \
@@ -87,13 +94,19 @@ configure-stamp:
 		--without-included-gettext \
 		${DEBOP}
 
+	$(MAKE) preinstall \
+		docdir=$(docdir) \
+		helpdir=$(helpdir)
+
 	touch configure-stamp
 
 build: build-stamp
 build-stamp: configure-stamp
 	dh_testdir
 
-	$(MAKE)
+	$(MAKE) \
+		docdir=$(docdir) \
+		helpdir=$(helpdir)
 
 	touch build-stamp
 
@@ -117,7 +130,10 @@ install-stamp: build-stamp
 	dh_clean -k
 	dh_installdirs
 
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/$(PACKAGE)
+	$(MAKE) install \
+		DESTDIR=$(CURDIR)/debian/$(PACKAGE) \
+		docdir=$(docdir) \
+		helpdir=$(helpdir)
 
 	touch install-stamp
 
@@ -132,10 +148,11 @@ install-arch:
 
 	$(MAKE) install-full \
 		DESTDIR=$(DSTDIR) \
-		DOCDIR=$(DOCDIR) \
-		HELPDIR=$(DOCDIR)/lynx_help
+		docdir=$(docdir) \
+		helpdir=$(helpdir)
+
 	cd $(DOCDIR) && rm -rf samples test
-	cd $(DOCDIR) && rm -f COPY* lynx_help/COPY* CHANGES 
+	cd $(DOCDIR) && rm -f COPY*.asc CHANGES 
 
 # Build architecture-independent files here.
 binary-indep: build install
diff --git a/PACKAGE/lynx.spec b/PACKAGE/lynx.spec
index 659c7488..40e4ba85 100644
--- a/PACKAGE/lynx.spec
+++ b/PACKAGE/lynx.spec
@@ -1,4 +1,4 @@
-# $LynxId: lynx.spec,v 1.4 2010/09/17 09:52:19 tom Exp $
+# $LynxId: lynx.spec,v 1.6 2010/09/21 23:18:23 tom Exp $
 Summary: A text-based Web browser
 Name: lynx
 Version: 2.8.8
@@ -9,7 +9,7 @@ Source: lynx%{version}%{release}.tgz
 # URL: http://lynx.isc.org/
 Provides: webclient
 Provides: text-www-browser
-# BuildRequires: openssl-devel, pkgconfig, ncurses-devel >= 5.3-5, 
+# BuildRequires: openssl-devel, pkgconfig, ncurses-devel >= 5.3-5,
 # BuildRequires: zlib-devel, gettext, rsh, telnet, zip, unzip
 # Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -20,12 +20,22 @@ to use.  It will display HTML documents containing links to files residing on
 the local system, as well as files residing on remote systems running Gopher,
 HTTP, FTP, WAIS, and NNTP servers.
 
+%define lynx_doc %{_defaultdocdir}/lynx
+%define lynx_etc %{_sysconfdir}/lynx
+
 %prep
 %setup -q -n lynx%{version}%{release}
 
 %build
 CPPFLAGS="-DMISC_EXP -DEXP_HTTP_HEADERS" \
 %configure \
+	--target %{_target_platform} \
+	--prefix=%{_prefix} \
+	--bindir=%{_bindir} \
+	--datadir=%{lynx_doc} \
+	--libdir=%{lynx_etc} \
+	--mandir=%{_mandir} \
+	--sysconfdir=%{lynx_etc} \
 	--disable-font-switch \
 	--disable-internal-links \
 	--enable-8bit-toupper \
@@ -70,25 +80,33 @@ CPPFLAGS="-DMISC_EXP -DEXP_HTTP_HEADERS" \
 	--with-screen=ncursesw \
 	--with-ssl \
 	--with-zlib
-make
+make \
+	docdir=%{lynx_doc}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 chmod -x samples/mailto-form.pl
-%makeinstall mandir=$RPM_BUILD_ROOT%{_mandir}/man1 libdir=$RPM_BUILD_ROOT/etc
+
+make install-full \
+	DESTDIR=$RPM_BUILD_ROOT \
+	docdir=%{lynx_doc}
+
+cat >>$RPM_BUILD_ROOT%{lynx_etc}/lynx.cfg <<EOF
+DEFAULT_INDEX_FILE:http://www.google.com/
+LOCALE_CHARSET:TRUE
+EOF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc docs README INSTALLATION samples
-%doc test lynx.hlp lynx_help
 %{_bindir}/lynx
 %{_mandir}/*/*
 %{_datadir}/locale/*
-%config %{_sysconfdir}/lynx.cfg
-%config %{_sysconfdir}/lynx.lss
+%{lynx_doc}/*
+%config %{lynx_etc}/lynx.cfg
+%config %{lynx_etc}/lynx.lss
 
 %changelog