2 |
%define versio_ 2-8-7 |
%define versio_ 2-8-7 |
3 |
#define subver pre.4 |
#define subver pre.4 |
4 |
%define rel 4 |
%define rel 4 |
5 |
|
%define subrel 1 |
6 |
%define release %mkrel %{rel} |
%define release %mkrel %{rel} |
7 |
|
|
8 |
Summary: Text based browser for the world wide web |
Summary: Text based browser for the world wide web |
22 |
Patch10: lynx2-8-7-tmp_dir.patch |
Patch10: lynx2-8-7-tmp_dir.patch |
23 |
Patch11: lynx2-8-6-don-t-accept-command-line-args-to-telnet.patch |
Patch11: lynx2-8-6-don-t-accept-command-line-args-to-telnet.patch |
24 |
Patch13: lynx2-8-6-format_not_a_string_literal_and_no_format_arguments.diff |
Patch13: lynx2-8-6-format_not_a_string_literal_and_no_format_arguments.diff |
25 |
|
Patch14: lynx2-8-7-CVE-2012-5821.patch |
26 |
Provides: webclient lynx-ssl |
Provides: webclient lynx-ssl |
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
|
27 |
BuildRequires: openssl-devel |
BuildRequires: openssl-devel |
28 |
BuildRequires: zlib-devel libncursesw-devel |
BuildRequires: zlib-devel libncursesw-devel |
29 |
Obsoletes: lynx-ssl |
Obsoletes: lynx-ssl |
48 |
%patch11 -p1 |
%patch11 -p1 |
49 |
%patch13 -p0 -b .format_not_a_string_literal_and_no_format_arguments |
%patch13 -p0 -b .format_not_a_string_literal_and_no_format_arguments |
50 |
perl -pi -e 's,^#LOCALE_CHARSET:.*,LOCALE_CHARSET:TRUE,' lynx.cfg |
perl -pi -e 's,^#LOCALE_CHARSET:.*,LOCALE_CHARSET:TRUE,' lynx.cfg |
51 |
|
%patch14 -p1 |
52 |
|
|
53 |
%build |
%build |
54 |
|
|
95 |
%make |
%make |
96 |
|
|
97 |
%install |
%install |
98 |
rm -rf $RPM_BUILD_ROOT |
rm -rf %{buildroot} |
99 |
%makeinstall_std install-help |
%makeinstall_std install-help |
100 |
|
|
101 |
install -d $RPM_BUILD_ROOT%{_sysconfdir} |
install -d %{buildroot}%{_sysconfdir} |
102 |
cat >$RPM_BUILD_ROOT%{_sysconfdir}/lynx-site.cfg <<EOF |
cat >%{buildroot}%{_sysconfdir}/lynx-site.cfg <<EOF |
103 |
# Place any local lynx configuration options (proxies etc.) here. |
# Place any local lynx configuration options (proxies etc.) here. |
104 |
EOF |
EOF |
105 |
|
|
106 |
%find_lang lynx |
%find_lang lynx |
107 |
|
|
108 |
%clean |
%clean |
109 |
rm -rf $RPM_BUILD_ROOT |
rm -rf %{buildroot} |
110 |
|
|
111 |
%files -f lynx.lang |
%files -f lynx.lang |
|
%defattr(-,root,root) |
|
112 |
%doc README |
%doc README |
113 |
%config(noreplace,missingok) %{_sysconfdir}/lynx-site.cfg |
%config(noreplace,missingok) %{_sysconfdir}/lynx-site.cfg |
114 |
%config(noreplace) %{_sysconfdir}/lynx.cfg |
%config(noreplace) %{_sysconfdir}/lynx.cfg |
116 |
%{_mandir}/*/* |
%{_mandir}/*/* |
117 |
%{_bindir}/* |
%{_bindir}/* |
118 |
%{_datadir}/lynx_help |
%{_datadir}/lynx_help |
|
|
|
|
|
|
|
|
|
|
|
|