From bf665822fc371159c9fc6630ab805638c58ab299 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Wed, 22 Sep 2010 10:53:56 -0400 Subject: snapshot of project "lynx", label v2-8-8dev_5b --- PACKAGE/debian/rules | 31 ++++++++++++++++++++++++------- PACKAGE/lynx.spec | 34 ++++++++++++++++++++++++++-------- 2 files changed, 50 insertions(+), 15 deletions(-) (limited to 'PACKAGE') 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 <