%global devrel dev.10 Summary: A text-based Web browser Name: lynx Version: 2.9.0 Release: %{devrel}.2%{?dist}.1 License: GPLv2 Source: https://invisible-mirror.net/archives/lynx/tarballs/lynx%{version}%{devrel}.tar.bz2 URL: https://lynx.invisible-island.net/ # RH specific tweaks - directory layout, utf-8 by default, misc. configuration Patch0: lynx-2.8.9-redhat.patch # patch preparing upstream sources for rpmbuild, in particular for parallel make Patch1: lynx-2.8.9-build.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] Patch2: lynx-CVE-2008-4690.patch # add presentation type for xhtml Patch3: lynx-2.9.0dev.10-xhtml.patch Provides: webclient Provides: text-www-browser BuildRequires: dos2unix BuildRequires: gcc BuildRequires: gettext BuildRequires: libidn2-devel BuildRequires: make BuildRequires: ncurses-devel BuildRequires: openssl-devel BuildRequires: telnet BuildRequires: unzip BuildRequires: zip BuildRequires: zlib-devel # provides /usr/share/doc/HTML/en-US/index.html used as STARTFILE on RHEL %if 0%{?rhel} && !0%{?eln} Requires: redhat-indexhtml %endif %description Lynx is a text-based Web browser. Lynx does not display any images, but it does support frames, tables, and most other HTML tags. One advantage Lynx has over graphical browsers is speed; Lynx starts and exits quickly and swiftly displays web pages. %prep %setup -q -n lynx%{version}%{devrel} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} sed -e "s,^HELPFILE:.*,HELPFILE:file://localhost%{_pkgdocdir}/lynx_help/lynx_help_main.html,g" -i lynx.cfg %if 0%{?rhel} && !0%{?eln} sed -e 's,^STARTFILE:.*,STARTFILE:file:/usr/share/doc/HTML/en-US/index.html,' -i lynx.cfg %endif %build %configure --libdir=/etc \ --disable-font-switch \ --disable-rpath-hack \ --enable-addrlist-page \ --enable-charset-choice \ --enable-cgi-links \ --enable-cjk \ --enable-debug \ --enable-default-colors \ --enable-externs \ --enable-file-upload \ --enable-internal-links \ --enable-ipv6 \ --enable-japanese-utf8 \ --enable-justify-elts \ --enable-locale-charset \ --enable-kbd-layout \ --enable-libjs \ --enable-nls \ --enable-nsl-fork \ --enable-persistent-cookies \ --enable-prettysrc \ --enable-read-eta \ --enable-scrollbar \ --enable-source-cache \ --enable-warnings \ --with-screen=ncursesw \ --with-ssl=%{_libdir} \ --with-zlib \ ac_cv_path_RLOGIN=/usr/bin/rlogin make -C po make %{?_smp_mflags} # remove zero-length tests files to silence rpmlint rm -fv test/X test/nobody %install chmod -x samples/mailto-form.pl make install DESTDIR=$RPM_BUILD_ROOT # remove unneeded files with incompatible encoding rm -f docs/{OS-390.announce,README.jp} rm -f samples/*.bat # convert line endings dos2unix samples/lynx-demo.cfg dos2unix samples/midnight.lss # Install Lang dependent resources mkdir -p $RPM_BUILD_ROOT/usr/share/locale/ja/LC_MESSAGES/ cat >$RPM_BUILD_ROOT%{_sysconfdir}/lynx-site.cfg < - 2.9.0-dev.10.2.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jul 07 2022 Kamil Dudka - 2.9.0dev.10.2 - add presentation type for xhtml * Thu Jan 20 2022 Fedora Release Engineering - 2.9.0-dev.10.1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Jan 10 2022 Kamil Dudka - 2.9.0dev.10.1 - add BR for libidn2-devel (#1910971) * Fri Jan 07 2022 Thomas E. Dickey - 2.9.0dev.10 - Correct homepage URL. - Update to lynx 2.9.0dev.10, removing obsolete patches. * Tue Sep 14 2021 Sahana Prasad - 2.8.9-14 - Rebuilt with OpenSSL 3.0.0 * Tue Aug 31 2021 Kamil Dudka - 2.8.9-13 - fix disclosure of HTTP auth credentials via SNI data (CVE-2021-38165) * Thu Jul 22 2021 Fedora Release Engineering - 2.8.9-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 2.8.9-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Dec 30 2020 Kamil Dudka - 2.8.9-10 - remove unused build-time dependency on slang-devel (#1910966) * Thu Aug 06 2020 Merlin Mathesius - 2.8.9-9 - Skip RHEL-specific Requires and STARTFILE edit when building for ELN * Tue Jul 28 2020 Fedora Release Engineering - 2.8.9-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 2.8.9-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 2.8.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Mar 11 2019 Kamil Dudka - 2.8.9-5 - include license file in the package (#1686886) * Fri Feb 01 2019 Fedora Release Engineering - 2.8.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Nov 08 2018 Kamil Dudka - 2.8.9-3 - fix bugs detected by static analysis * Fri Jul 13 2018 Fedora Release Engineering - 2.8.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jul 10 2018 Kamil Dudka - 2.8.9-1 - update to the latest upstream release * Wed May 23 2018 Kamil Dudka - 2.8.9-0.23.dev19 - do not require 'rsh' installed at build time (#1581747) - update to the latest upstream pre-release * Mon Feb 19 2018 Kamil Dudka - 2.8.9-0.22.dev16 - add explicit BR for the gcc compiler * Thu Feb 08 2018 Fedora Release Engineering - 2.8.9-0.21.dev16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 2.8.9-0.20.dev16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Mon Jul 31 2017 Florian Weimer - 2.8.9-0.19.dev16 - Rebuild with binutils fix for ppc64le (#1475636) * Wed Jul 26 2017 Fedora Release Engineering - 2.8.9-0.18.dev16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Jul 25 2017 Kamil Dudka - 2.8.9-0.17.dev16 - fix rpmlint warnings - do not depend on perl - update upstream project URL - update to the latest upstream pre-release * Wed May 17 2017 Kamil Dudka - 2.8.9-0.16.dev14 - update to the latest upstream pre-release * Fri Feb 10 2017 Fedora Release Engineering - 2.8.9-0.15.dev11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 24 2017 Kamil Dudka - 2.8.9-0.14.dev11 - update to the latest upstream pre-release (fixes CVE-2016-9179) * Thu Oct 20 2016 Kamil Dudka - 2.8.9-0.13.dev9 - fix compatibility with OpenSSL 1.1 * Wed Oct 12 2016 Kamil Dudka - 2.8.9-0.12.dev9 - update to the latest upstream pre-release * Sat Feb 06 2016 Kamil Dudka - 2.8.9-0.11.dev6 - avoid using rpath for the lynx executable - remove zero-length tests files to silence rpmlint * Thu Feb 04 2016 Fedora Release Engineering - 2.8.9-0.10.dev6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Nov 09 2015 Kamil Dudka - 2.8.9-0.9.dev6 - update to the latest upstream pre-release * Wed Jun 17 2015 Fedora Release Engineering - 2.8.9-0.8.dev5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Apr 28 2015 Kamil Dudka - 2.8.9-0.7.dev5 - update to the latest upstream pre-release * Wed Feb 11 2015 Ville Skyttä - 2.8.9-0.6.dev4 - do not remove -g from our CFLAGS (#1191706) * Wed Jan 28 2015 Kamil Dudka - 2.8.9-0.5.dev4 - update to the latest upstream pre-release - drop a compiler wrapper no longer needed - do not override compiler/linker flags given by the build system * Mon Jan 05 2015 Kamil Dudka - 2.8.9-0.4.dev2 - update to the latest upstream pre-release * Sun Aug 17 2014 Fedora Release Engineering - 2.8.9-0.3.dev1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2.8.9-0.2.dev1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Apr 28 2014 Kamil Dudka - 2.8.9-0.1.dev1 - update to the latest upstream pre-release * Fri Aug 09 2013 Kamil Dudka - 2.8.8-0.3.dev16 - update to the latest upstream pre-release - make the help working with unversioned docdir (#993909) * Sat Aug 03 2013 Fedora Release Engineering - 2.8.8-0.2.dev15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Feb 13 2013 Kamil Dudka - 2.8.8-0.1.dev15 - update to the latest upstream pre-release - drop applied patches - drop lynx-2.8.6-backgrcolor.patch (#908449) * Tue Sep 11 2012 Kamil Dudka - 2.8.7-12 - set STARTFILE to a local file when building for RHEL * Fri Sep 07 2012 Kamil Dudka - 2.8.7-11 - fix typo in the man page (#854574) * Tue Aug 28 2012 Kamil Dudka - 2.8.7-10 - sync the upstream tarball with the current upstream version - fix specfile issues reported by the fedora-review script * Thu Jul 19 2012 Fedora Release Engineering - 2.8.7-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 2.8.7-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri May 27 2011 Kamil Dudka - 2.8.7-7 - include read-only text fields on form submission (#679266) * Tue Feb 08 2011 Fedora Release Engineering - 2.8.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Jul 07 2010 Kamil Dudka - 2.8.7-5 - upstream patch that limits length of parsed URIs (#605286) * Thu Apr 08 2010 Kamil Dudka - 2.8.7-4 - allow IPv6 addresses without http:// prefix (#425879) * Wed Apr 07 2010 Kamil Dudka - 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) * Tue Jan 05 2010 Kamil Dudka - 2.8.7-1 - new upstream release - dropped applied patches - fixed regression from #533004 - cleanup in BuildRequires * Fri Aug 21 2009 Tomas Mraz - 2.8.6-22 - rebuilt with new openssl * Sat Jul 25 2009 Fedora Release Engineering - 2.8.6-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 2.8.6-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Jan 17 2009 Tomas Mraz - 2.8.6-19 - rebuild with new openssl * Fri Nov 7 2008 Jiri Moskovcak - 2.8.6-18 - Fixed CVE-2008-4690 lynx: remote arbitrary command execution. via a crafted lynxcgi: URL (thoger) * Thu Aug 7 2008 Tom "spot" Callaway - 2.8.6-17 - fix license tag * Thu May 29 2008 Jiri Moskovcak - 2.8.6-16 - updated to latest stable version 2.8.6rel5 - Resolves: #214205 - added build patches from Dennis Gilmore - skipped 2 releases to correct the NVR path * Tue Feb 19 2008 Fedora Release Engineering - 2.8.6-13 - Autorebuild for GCC 4.3 * Wed Jan 30 2008 Jiri Moskovcak - 2.8.6-12 - added telnet, rsh, zip and unzip to BuildRequires - Resolves: #430508 * Tue Jan 8 2008 Jiri Moskovcak - 2.8.6-11 - fixed crash when using formatting character '$' in translation - Resolves: #426449 * Tue Dec 11 2007 Ivana Varekova - 2.8.6-10 - add default-colors option, change default setting (#409211) * Wed Dec 05 2007 Release Engineering - 2.8.6-9 - Rebuild for openssl bump * Wed Dec 5 2007 Ivana Varekova - 2.8.6-8 - rebuild * Fri Oct 12 2007 Ivana Varekova - 2.8.6-7 - add provides:text-www-browser flag * Tue Oct 2 2007 Ivana Varekova - 2.8.6-6 - fix 311031 - fix argument parsing * Tue Aug 28 2007 Fedora Release Engineering - 2.8.6-5 - Rebuild for selinux ppc32 issue. * Tue Jul 17 2007 Ivana Varekova - 2.8.6-4 - remove default-colors option * Fri Feb 23 2007 Ivana Varekova - 2.8.6-3 - incorporate package review feedback (#226113) * Wed Oct 25 2006 Ivana Varekova - 2.8.6-2 - add japanese unicode support (#143787) * Tue Oct 24 2006 Ivana Varekova - 2.8.6-1 - update to 2.8.6 * Wed Jul 12 2006 Jesse Keating - 2.8.5-28.1 - rebuild * Tue May 30 2006 Ivana Varekova - 2.8.5-28 - add buildreq gettext (#193515) * Fri Feb 10 2006 Jesse Keating - 2.8.5-27.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 2.8.5-27.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt * Sun Nov 13 2005 Tim Waugh 2.8.5-27 - Apply patch to fix CVE-2005-2929 (bug #172973). * Thu Nov 10 2005 Tomas Mraz 2.8.5-26 - rebuilt against new openssl * Wed Nov 9 2005 Tim Waugh 2.8.5-25 - Rebuild for new openssl. * Mon Oct 17 2005 Tim Waugh 2.8.5-24 - Apply patch to fix CAN-2005-3120 (bug #170253). * Tue Mar 29 2005 Tim Waugh 2.8.5-23 - Fixed fix for bug #90302 (bug #152146). * Wed Mar 2 2005 Tim Waugh 2.8.5-22 - Rebuild for new GCC. * Thu Jan 6 2005 Tim Waugh 2.8.5-21 - Fixed