| 1 |
# $LynxId: lynx.spec,v 1.130 2026/05/26 08:24:07 tom Exp $ |
| 2 |
Summary: A text-based Web browser |
| 3 |
Name: lynx-dev |
| 4 |
Version: 2.9.3 |
| 5 |
%global test_version 2.9.3 |
| 6 |
Release: 1 |
| 7 |
License: GPL-2.0-only |
| 8 |
Group: Applications/Internet |
| 9 |
Source: https://invisible-island.net/archives/lynx/lynx%{test_version}.tgz |
| 10 |
URL: https://lynx.invisible-island.net |
| 11 |
Provides: webclient >= 0.0 |
| 12 |
Provides: text-www-browser >= 0.0 |
| 13 |
|
| 14 |
# Fedora: |
| 15 |
BuildRequires: pkgconfig, ncurses-devel >= 5.3-5, |
| 16 |
BuildRequires: zlib-devel, gettext |
| 17 |
BuildRequires: libidn-devel |
| 18 |
# BuildRequires: openssl-devel |
| 19 |
# BuildRequires: bzip2-devel |
| 20 |
|
| 21 |
# SuSE: |
| 22 |
# BuildRequires: libbz2-devel |
| 23 |
# BuildRequires: libopenssl-1_1-devel, or |
| 24 |
# BuildRequires: libopenssl-3-devel |
| 25 |
|
| 26 |
Requires: brotli, gzip, bzip2, tar, zip, unzip, zstd |
| 27 |
|
| 28 |
%description |
| 29 |
Lynx is a fully-featured World Wide Web (WWW) client for users running |
| 30 |
cursor-addressable, character-cell display devices. It is very fast and easy |
| 31 |
to use. It will display HTML documents containing links to files residing on |
| 32 |
the local system, as well as files residing on remote systems running Gopher, |
| 33 |
HTTP, FTP, WAIS, and NNTP servers. |
| 34 |
|
| 35 |
%define lynx_doc %{_defaultdocdir}/%{name} |
| 36 |
%define lynx_etc %{_sysconfdir}/%{name} |
| 37 |
|
| 38 |
%prep |
| 39 |
|
| 40 |
%define debug_package %{nil} |
| 41 |
%setup -q -n lynx%{test_version} |
| 42 |
|
| 43 |
%build |
| 44 |
%configure \ |
| 45 |
--target %{_target_platform} \ |
| 46 |
--prefix=%{_prefix} \ |
| 47 |
--bindir=%{_bindir} \ |
| 48 |
--program-suffix=-dev \ |
| 49 |
--datadir=%{lynx_doc} \ |
| 50 |
--libdir=%{lynx_etc} \ |
| 51 |
--mandir=%{_mandir} \ |
| 52 |
--sysconfdir=%{lynx_etc} \ |
| 53 |
--with-cfg-path=%{lynx_etc}:%{lynx_doc}/samples \ |
| 54 |
--with-textdomain=%{name} \ |
| 55 |
--enable-cgi-links \ |
| 56 |
--enable-change-exec \ |
| 57 |
--enable-charset-choice \ |
| 58 |
--enable-default-colors \ |
| 59 |
--enable-exec-links \ |
| 60 |
--enable-exec-scripts \ |
| 61 |
--enable-externs \ |
| 62 |
--enable-font-switch \ |
| 63 |
--enable-gzip-help \ |
| 64 |
--enable-htmlized-cfg \ |
| 65 |
--enable-internal-links \ |
| 66 |
--enable-ipv6 \ |
| 67 |
--enable-kbd-layout \ |
| 68 |
--enable-local-docs \ |
| 69 |
--enable-nested-tables \ |
| 70 |
--enable-nls \ |
| 71 |
--enable-nsl-fork \ |
| 72 |
--enable-syslog \ |
| 73 |
--enable-warnings \ |
| 74 |
--with-screen=ncursesw6dev \ |
| 75 |
--with-ssl |
| 76 |
make \ |
| 77 |
docdir=%{lynx_doc} |
| 78 |
|
| 79 |
%install |
| 80 |
rm -rf $RPM_BUILD_ROOT |
| 81 |
chmod -x samples/mailto-form.pl |
| 82 |
|
| 83 |
make install-full \ |
| 84 |
DESTDIR=$RPM_BUILD_ROOT \ |
| 85 |
docdir=%{lynx_doc} |
| 86 |
|
| 87 |
cat >>$RPM_BUILD_ROOT%{lynx_etc}/lynx.cfg <<EOF |
| 88 |
DEFAULT_INDEX_FILE:http://www.google.com/ |
| 89 |
LOCALE_CHARSET:TRUE |
| 90 |
EOF |
| 91 |
|
| 92 |
strip $RPM_BUILD_ROOT%{_bindir}/%{name} |
| 93 |
|
| 94 |
%find_lang %{name} |
| 95 |
|
| 96 |
%files -f %{name}.lang |
| 97 |
%defattr(-,root,root,-) |
| 98 |
%{_bindir}/%{name} |
| 99 |
%{_mandir}/*/* |
| 100 |
%{lynx_doc}/* |
| 101 |
%config(noreplace) %{lynx_etc}/*.cfg |
| 102 |
%config(noreplace) %{lynx_etc}/*.lss |
| 103 |
|
| 104 |
%changelog |
| 105 |
|
| 106 |
* Tue May 26 2026 Thomas E. Dickey |
| 107 |
- testing lynx 2.9.3-1 |
| 108 |
|
| 109 |
* Thu Aug 01 2024 Thomas E. Dickey |
| 110 |
- add zstd compression |
| 111 |
|
| 112 |
* Thu Mar 14 2024 Thomas E. Dickey |
| 113 |
- trim redundant options |
| 114 |
|
| 115 |
* Mon Jan 15 2024 Thomas E. Dickey |
| 116 |
- simplified tarball name |
| 117 |
|
| 118 |
* Sun Jan 07 2024 Thomas E. Dickey |
| 119 |
- use rpm #find_lang macro for configuring language files |
| 120 |
- use noreplace flag for *.cfg and *.lss config files |
| 121 |
- remove obsolete #clean section |
| 122 |
|
| 123 |
* Tue Mar 29 2022 Thomas E. Dickey |
| 124 |
- add brotli compression |
| 125 |
|
| 126 |
* Sat Jul 31 2021 Thomas E. Dickey |
| 127 |
- align configure-options with Debian package, removing some which are not |
| 128 |
needed because they correspond to the default settings. |
| 129 |
|
| 130 |
* Thu May 17 2018 Thomas E. Dickey |
| 131 |
- use "ncursesw6dev", reflecting renaming of ncurses test-packages to avoid |
| 132 |
conflict with new packages in Fedora. |
| 133 |
|
| 134 |
* Mon Mar 12 2018 Thomas E. Dickey |
| 135 |
- rename to "lynx-dev", add a few dependencies where package names are same. |
| 136 |
|
| 137 |
* Fri Sep 17 2010 Thomas E. Dickey |
| 138 |
- initial version. |