set STARTFILE to a local file when building for RHEL
This commit is contained in:
parent
766db92235
commit
5fbde70c1d
14
lynx.spec
14
lynx.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: A text-based Web browser
|
Summary: A text-based Web browser
|
||||||
Name: lynx
|
Name: lynx
|
||||||
Version: 2.8.7
|
Version: 2.8.7
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
Source: http://lynx.isc.org/lynx%{version}/lynx%{version}.tar.bz2
|
Source: http://lynx.isc.org/lynx%{version}/lynx%{version}.tar.bz2
|
||||||
@ -50,7 +50,11 @@ BuildRequires: telnet
|
|||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildRequires: zip
|
BuildRequires: zip
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
# provides /usr/share/doc/HTML/en-US/index.html used as STARTFILE on RHEL
|
||||||
|
%if 0%{?rhel}
|
||||||
|
Requires: redhat-indexhtml
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Lynx is a text-based Web browser. Lynx does not display any images,
|
Lynx is a text-based Web browser. Lynx does not display any images,
|
||||||
@ -74,6 +78,9 @@ exits quickly and swiftly displays web pages.
|
|||||||
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,^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
|
perl -pi -e "s,^DEFAULT_INDEX_FILE:.*,DEFAULT_INDEX_FILE:http://www.google.com/,g" lynx.cfg
|
||||||
perl -pi -e 's,^#LOCALE_CHARSET:.*,LOCALE_CHARSET:TRUE,' lynx.cfg
|
perl -pi -e 's,^#LOCALE_CHARSET:.*,LOCALE_CHARSET:TRUE,' lynx.cfg
|
||||||
|
%if 0%{?rhel}
|
||||||
|
perl -pi -e 's,^STARTFILE:.*,STARTFILE:file:/usr/share/doc/HTML/en-US/index.html,' lynx.cfg
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export PATH=`pwd`:$PATH
|
export PATH=`pwd`:$PATH
|
||||||
@ -153,6 +160,9 @@ EOF
|
|||||||
%config(noreplace,missingok) %{_sysconfdir}/lynx-site.cfg
|
%config(noreplace,missingok) %{_sysconfdir}/lynx-site.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 11 2012 Kamil Dudka <kdudka@redhat.com> - 2.8.7-12
|
||||||
|
- set STARTFILE to a local file when building for RHEL
|
||||||
|
|
||||||
* Fri Sep 07 2012 Kamil Dudka <kdudka@redhat.com> - 2.8.7-11
|
* Fri Sep 07 2012 Kamil Dudka <kdudka@redhat.com> - 2.8.7-11
|
||||||
- fix typo in the man page (#854574)
|
- fix typo in the man page (#854574)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user