From 4ac97bdad75b275d2563e684892a7a6276abe815 Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 15 2020 13:41:45 +0000 Subject: Add spec-file for the distribution --- diff --git a/SPECS/lynx.spec b/SPECS/lynx.spec new file mode 100644 index 0000000..a5eb159 --- /dev/null +++ b/SPECS/lynx.spec @@ -0,0 +1,602 @@ +%global devrel 1 + +Summary: A text-based Web browser +Name: lynx +Version: 2.8.9 +Release: 2%{?dist} +License: GPLv2 +Group: Applications/Internet +Source: https://invisible-mirror.net/archives/lynx/tarballs/lynx%{version}rel.%{devrel}.tar.bz2 +URL: http://lynx.browser.org/ + +# 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 + +# avoid build failure caused by mistakenly excluded +Patch3: lynx-2.8.8-locale.patch + +# fix bugs detected by static analysis (#1602612) +Patch4: lynx-2.8.9-static-analysis.patch + +Provides: webclient +Provides: text-www-browser +BuildRequires: dos2unix +BuildRequires: gcc +BuildRequires: gettext +BuildRequires: openssl-devel +BuildRequires: ncurses-devel +BuildRequires: slang-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} +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 lynx2.8.9rel.%{devrel} + +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -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} +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.8.9-2 +- fix bugs detected by static analysis (#1602612) + +* 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