From 880b841b093a5f22dd76080789623fab50743d39 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Apr 07 2010 12:50:17 +0000 Subject: - avoid build failure caused by mistakenly excluded --- diff --git a/lynx-2.8.7-locale.patch b/lynx-2.8.7-locale.patch new file mode 100644 index 0000000..9edcb68 --- /dev/null +++ b/lynx-2.8.7-locale.patch @@ -0,0 +1,13 @@ +diff --git a/src/LYMain.c b/src/LYMain.c +index b3a00cc..126a30f 100644 +--- a/src/LYMain.c ++++ b/src/LYMain.c +@@ -57,7 +57,7 @@ + #include + #endif + +-#if defined(LOCALE) && !defined(HAVE_LIBINTL_H) ++#if defined(LOCALE) + #undef gettext /* Solaris locale.h prototypes gettext() */ + #include + #ifndef HAVE_GETTEXT diff --git a/lynx.spec b/lynx.spec index b484954..367d963 100644 --- a/lynx.spec +++ b/lynx.spec @@ -1,16 +1,35 @@ Summary: A text-based Web browser Name: lynx Version: 2.8.7 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2 Group: Applications/Internet Source: http://lynx.isc.org/lynx%{version}/lynx%{version}.tar.bz2 URL: http://lynx.isc.org/ + +# RH specific tweaks - directory layout, utf-8 by default, misc. configuration +# and home page Patch0: lynx-2.8.6-redhat.patch + +# tweaks colors Patch1: lynx-2.8.6-backgrcolor.patch + +# patch preparing upstream sources for rpmbuild, in particular for parallel make Patch2: lynx-build-fixes.patch + +# prompt user before executing command via a lynxcgi link even in advanced mode, +# as the actual URL may not be shown but hidden behind an HTTP redirect and set +# TRUSTED_LYNXCGI:none in lynx.cfg to disable all lynxcgi URLs by default +# [CVE-2008-4690] Patch3: lynx-CVE-2008-4690.patch + +# make it possible to delete a bookmark when ~/lynx_bookmarks.html is writable +# by group (#486070) Patch4: lynx-2.8.7-bm-del.patch + +# avoid build failure caused by mistakenly excluded +Patch5: lynx-2.8.7-locale.patch + Provides: webclient Provides: text-www-browser BuildRequires: gettext @@ -33,25 +52,12 @@ exits quickly and swiftly displays web pages. %prep %setup -q -n lynx2-8-7 -# RH specific tweaks - directory layout, utf-8 by default, misc. configuration -# and home page %patch0 -p1 - -# tweaks colors %patch1 -p1 - -# patch preparing upstream sources for rpmbuild, in particular for parallel make %patch2 -p1 - -# prompt user before executing command via a lynxcgi link even in advanced mode, -# as the actual URL may not be shown but hidden behind an HTTP redirect and set -# TRUSTED_LYNXCGI:none in lynx.cfg to disable all lynxcgi URLs by default -# [CVE-2008-4690] %patch3 -p1 - -# make it possible to delete a bookmark when ~/lynx_bookmarks.html is writable -# by group (#486070) %patch4 -p1 +%patch5 -p1 perl -pi -e "s,^HELPFILE:.*,HELPFILE:file://localhost/usr/share/doc/lynx-%{version}/lynx_help/lynx_help_main.html,g" lynx.cfg perl -pi -e "s,^DEFAULT_INDEX_FILE:.*,DEFAULT_INDEX_FILE:http://www.google.com/,g" lynx.cfg @@ -63,10 +69,10 @@ cat >gcc < - 2.8.7-3 +- avoid build failure caused by mistakenly excluded + * Wed Jan 13 2010 Kamil Dudka - 2.8.7-2 - make it possible to delete a bookmark when ~/lynx_bookmarks.html is writable by group (#486070)