1 |
%define version 2.8.7 |
%define versio_ 2-8-8 |
2 |
%define versio_ 2-8-7 |
%define pre dev.8 |
3 |
#define subver pre.4 |
|
4 |
%define rel 4 |
Name: lynx |
5 |
%define release %mkrel %{rel} |
Version: 2.8.8 |
6 |
|
Release: %mkrel 0.%{pre} |
7 |
Summary: Text based browser for the world wide web |
Summary: Text based browser for the world wide web |
8 |
Name: lynx |
License: GPLv2 |
9 |
Version: %{version} |
URL: http://lynx.isc.org |
10 |
Release: %{release} |
Group: Networking/WWW |
11 |
License: GPL |
BuildRequires: gettext |
12 |
URL: http://lynx.isc.org |
BuildRequires: openssl-devel |
13 |
Group: Networking/WWW |
BuildRequires: ncurses-devel |
14 |
BuildRequires: gettext |
Source0: ftp://artfiles.org/lynx.isc.org/current/lynx%{version}%{pre}.tar.bz2 |
15 |
BuildRequires: openssl-devel |
Patch0: lynx2-8-7-adapt-to-modern-file-localizations.patch |
16 |
BuildRequires: ncurses-devel |
Patch1: lynx-2.8.8-mga-lynx.cfg.patch |
17 |
Source0: http://lynx.isc.org/current/%name%{version}.tar.bz2 |
Patch2: lynx2-8-6-fix-ugly-color.patch |
18 |
Patch0: lynx2-8-7-adapt-to-modern-file-localizations.patch |
Patch10: lynx2-8-7-tmp_dir.patch |
19 |
Patch1: lynx2-8-7-default-config.patch |
Patch11: lynx2-8-6-don-t-accept-command-line-args-to-telnet.patch |
20 |
Patch2: lynx2-8-6-fix-ugly-color.patch |
|
21 |
Patch10: lynx2-8-7-tmp_dir.patch |
BuildRequires: openssl-devel |
22 |
Patch11: lynx2-8-6-don-t-accept-command-line-args-to-telnet.patch |
BuildRequires: zlib-devel |
23 |
Patch13: lynx2-8-6-format_not_a_string_literal_and_no_format_arguments.diff |
BuildRequires: libncursesw-devel |
24 |
Provides: webclient lynx-ssl |
Provides: webclient = %{version}-%{release} |
25 |
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
Provides: lynx-ssl = %{version}-%{release} |
26 |
BuildRequires: openssl-devel |
Obsoletes: lynx-ssl < %{version}-%{release} |
|
BuildRequires: zlib-devel libncursesw-devel |
|
|
Obsoletes: lynx-ssl |
|
27 |
|
|
28 |
%description |
%description |
29 |
This a terminal based WWW browser. While it does not make any attempt |
This a terminal based WWW browser. While it does not make any attempt |
39 |
%prep |
%prep |
40 |
%setup -q -n %{name}%{versio_} |
%setup -q -n %{name}%{versio_} |
41 |
%patch0 -p1 |
%patch0 -p1 |
42 |
%patch1 -p1 |
%patch1 -p0 |
43 |
%patch2 -p1 |
%patch2 -p1 |
44 |
%patch10 -p1 |
%patch10 -p1 |
45 |
%patch11 -p1 |
%patch11 -p1 |
46 |
%patch13 -p0 -b .format_not_a_string_literal_and_no_format_arguments |
|
47 |
perl -pi -e 's,^#LOCALE_CHARSET:.*,LOCALE_CHARSET:TRUE,' lynx.cfg |
perl -pi -e 's,^#LOCALE_CHARSET:.*,LOCALE_CHARSET:TRUE,' lynx.cfg |
48 |
|
|
49 |
%build |
%build |
50 |
|
|
51 |
debian_options=`cat << DEBIAN |
debian_options=`cat << DEBIAN |
52 |
--enable-warnings |
--enable-warnings |
53 |
--enable-8bit-toupper |
--enable-8bit-toupper |
54 |
--enable-externs |
--enable-externs |
55 |
--enable-cgi-links |
--enable-cgi-links |
56 |
--enable-persistent-cookies --enable-nls |
--enable-persistent-cookies --enable-nls |
57 |
--enable-prettysrc --enable-source-cache |
--enable-prettysrc --enable-source-cache |
58 |
--enable-charset-choice |
--enable-charset-choice |
59 |
--enable-default-colors |
--enable-default-colors |
60 |
--enable-ipv6 |
--enable-ipv6 |
61 |
--enable-nested-tables --enable-read-eta |
--enable-nested-tables --enable-read-eta |
62 |
--with-zlib |
--with-zlib |
63 |
DEBIAN` |
DEBIAN` |
64 |
# removed --enable-exec-links --enable-exec-scripts, |
# removed --enable-exec-links --enable-exec-scripts, |
65 |
# it goes together with LOCAL_EXECUTION_LINKS_* in lynx.cfg |
# it goes together with LOCAL_EXECUTION_LINKS_* in lynx.cfg |
66 |
|
|
67 |
|
|
68 |
redhat_options=`cat << REDHAT |
redhat_options=`cat << REDHAT |
69 |
--with-screen=ncursesw |
--with-screen=ncursesw |
70 |
--enable-internal-links |
--enable-internal-links |
71 |
--enable-libjs |
--enable-libjs |
72 |
--enable-scrollbar |
--enable-scrollbar |
73 |
--enable-file-upload |
--enable-file-upload |
74 |
--enable-locale-charset |
--enable-locale-charset |
75 |
--with-ssl |
--with-ssl |
76 |
--enable-addrlist-page |
--enable-addrlist-page |
77 |
--enable-justify-elts |
--enable-justify-elts |
78 |
REDHAT` |
REDHAT` |
79 |
|
|
80 |
other_options=`cat << OTHER |
other_options=`cat << OTHER |
81 |
--enable-color-style |
--enable-color-style |
82 |
--enable-nsl-fork |
--enable-nsl-fork |
83 |
OTHER` |
OTHER` |
84 |
|
|
85 |
# (cf INSTALLATION file for more about the options) |
# (cf INSTALLATION file for more about the options) |
91 |
%make |
%make |
92 |
|
|
93 |
%install |
%install |
94 |
rm -rf $RPM_BUILD_ROOT |
rm -rf %{buildroot} |
95 |
%makeinstall_std install-help |
%makeinstall_std install-help |
96 |
|
|
97 |
install -d $RPM_BUILD_ROOT%{_sysconfdir} |
install -d %{buildroot}%{_sysconfdir} |
98 |
cat >$RPM_BUILD_ROOT%{_sysconfdir}/lynx-site.cfg <<EOF |
cat >%{buildroot}%{_sysconfdir}/lynx-site.cfg <<EOF |
99 |
# Place any local lynx configuration options (proxies etc.) here. |
# Place any local lynx configuration options (proxies etc.) here. |
100 |
EOF |
EOF |
101 |
|
|
102 |
%find_lang lynx |
%find_lang lynx |
103 |
|
|
|
%clean |
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|
104 |
%files -f lynx.lang |
%files -f lynx.lang |
|
%defattr(-,root,root) |
|
105 |
%doc README |
%doc README |
106 |
%config(noreplace,missingok) %{_sysconfdir}/lynx-site.cfg |
%config(noreplace,missingok) %{_sysconfdir}/lynx-site.cfg |
107 |
%config(noreplace) %{_sysconfdir}/lynx.cfg |
%config(noreplace) %{_sysconfdir}/lynx.cfg |
112 |
|
|
113 |
|
|
114 |
|
|
|
|
|