From d75e76f83e7a889133a158b20f5989b3fae1b8f679b48c3109e22e9862c95b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 12:19:59 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main elinks revision 8324c357e4d1c808e8347c968106e179 --- .gitattributes | 23 ++++ elinks-0.17.0.tar.xz | 3 + elinks.changes | 248 +++++++++++++++++++++++++++++++++++++++++++ elinks.spec | 145 +++++++++++++++++++++++++ 4 files changed, 419 insertions(+) create mode 100644 .gitattributes create mode 100644 elinks-0.17.0.tar.xz create mode 100644 elinks.changes create mode 100644 elinks.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/elinks-0.17.0.tar.xz b/elinks-0.17.0.tar.xz new file mode 100644 index 0000000..3e9c1ad --- /dev/null +++ b/elinks-0.17.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58c73a6694dbb7ccf4e22cee362cf14f1a20c09aaa4273343e8b7df9378b330e +size 2076460 diff --git a/elinks.changes b/elinks.changes new file mode 100644 index 0000000..b79b6b5 --- /dev/null +++ b/elinks.changes @@ -0,0 +1,248 @@ +------------------------------------------------------------------- +Sun Jan 14 02:31:22 UTC 2024 - Muhammad Akbar Yanuar Mantari + +- update to 0.17.0: + * Avoid division by zero. Refs #276 + * fix for some 32-bit systems and select-only builds + * configuration files are now saved to ~/.config/elinks/ or + $XDG_CONFIG_HOME/elinks/ #199 + * User must copy files from ~/.elinks/ to ~/.config/elinks/ + himself or herself + * HOME_ETC support was dropped, you can set with ELINKS_CONFDIR + * idn2 in place of idn #206 + * libcss support (a few netsurf's libraries are required). + Set document.css.libcss = 1 to enable + * experimental libsixel support (image/*; img2sixel %s; + copiousoutput) in ~/.mailcap + * Must be enabled in a few places in configuration: set + document.plain.sixel = 1 + * and in terminal options. Do not try it on metered remote + connections + * testing libcurl support (explicit FTPS and SFTP among others) + * To enable set protocol.ftp.use_curl = 1 + * set protocol.http.use_curl = 1 for http/https + * ui.sessions.postpone_unlink option. Delete temporary files at + exit instead of immediately after + * closing viewer #257 + * redefined isspace #249 + * Serbian translation update + * compilation fixes +- Add pkgconfig(libdom) BuildRequires: fix build to enable js. +- Enable gemini support +- Removed unneeded patches: + * perl-5.38.patch + * 0006-elinks-0.16.0-libidn2.patch + +------------------------------------------------------------------- +Thu Aug 3 13:10:56 UTC 2023 - Dominique Leuenberger + +- Add perl-5.38.patch: Fix compilation with Perl 5.38 + (gh#rkd77/elinks#243). + +------------------------------------------------------------------- +Thu May 4 17:00:50 UTC 2023 - Dirk Müller + +- update to 0.16.1.1: + * updated POTFILES + +------------------------------------------------------------------- +Mon May 1 03:49:11 UTC 2023 - Muhammad Akbar Yanuar Mantari + +- Update to version 0.16.1 + * handle SECTION html element #207 + * allocate more memory for BLOCKQUOTE #214 + * encode A href to terminal codepage and encode bytes with + highest bit set as %HEX #221 + * Serbian translation update + * install doc by default in meson #224 + * tests fixes + +------------------------------------------------------------------- +Sun Apr 30 02:08:20 UTC 2023 - Muhammad Akbar Yanuar Mantari + +- Update to rkd77 git version 0.16.0 +- Enable javascript with mujs on Tumbleweed (missing libxml++-5.0 on leap) +- Use LuaJIT for lua compiler until someone fix it with standart Lua +- Removed unneeded patches: + * build-with-new-ruby.patch +- Added the following patches: + * 0006-elinks-0.16.0-libidn2.patch + +------------------------------------------------------------------- +Wed Aug 24 10:44:19 UTC 2022 - Andreas Schwab + +- Makefile is not parallel-safe + +------------------------------------------------------------------- +Mon Jun 13 12:48:36 UTC 2022 - Dominique Leuenberger + +- Require perl in the same version as we built against: elinks + links to libperl.so, which changes location based on perl + version. The relevant path in encoded as RUNPATH into the binary + (boo#1199945). + +------------------------------------------------------------------- +Tue Jul 23 20:49:14 CEST 2019 - sbrabec@suse.com + +- Update to 20190723 snapshot of version 0.13: + * no changes +- Use pre-version tag, as the current snapshot is a pre-release. +- Remove volatile URL from Source0. +- Compile without strict aliasing to prevent breakage with new gcc. + +------------------------------------------------------------------- +Mon Apr 1 09:31:50 UTC 2019 - Marketa Calabkova + +- Update to version 0.13 + * parse_header: document parameters and return value + * doxygen: Fix link to bookmark::url + * use draw_text for titles + * iconv: Bail out of the loop when an illegal sequence of bytes + occur + * Add support for the CSS list-style-type property + * configure.in: use PKG_CONFIG + * Fixed problem of converting more than 256 chars + * mem_free_if where aplicable + * ssl: Make RAND_egd optional + * Better handling of content-disposition + * Compilation fix for OpenSSL-1.1 + * display lua hooks errors + * brotli code updated + * Use blacklist to skip verification of certificates + * various code cleanup + * -VERS-SSL3.0 in gnutls to avoid SSL error. + * 1024: Verify server certificate hostname with OpenSSL (bsc#1082814) +- Removed unneeded patches: + * elinks-0.12_pre5-compilation-fix.patch + * use_lua-5.1.patch + * build.with-openssl-1_1.patch +- Renamed patch: + * build-with-ruby-1.9.patch -> build-with-new-ruby.patch + +------------------------------------------------------------------- +Thu Dec 28 19:36:07 UTC 2017 - crrodriguez@opensuse.org + +- build.with-openssl-1_1.patch: fix build with openssl 1.1. + +------------------------------------------------------------------- +Tue Jun 14 14:46:59 UTC 2016 - adam.majer@suse.de + +- Add %perl_requires to be certain that package rebuilds when + perl is updated. This is causing elinks not to be rebuilt with + factory and it can't find current libperl.so. See bnc#984661 + for details. + +------------------------------------------------------------------- +Tue Apr 26 09:51:59 UTC 2016 - sleep_walker@opensuse.org + +- disable JS support until someone fix it +- refresh patches +- fix indentation + +------------------------------------------------------------------- +Mon Dec 24 22:07:46 UTC 2012 - tchvatal@suse.com + +- Version bump to 0.12_pre6. + * Remove upstream included js186 patches. + * Add new patch for ruby1.9 build. + +------------------------------------------------------------------- +Sun Jun 10 17:19:18 UTC 2012 - asterios.dramis@gmail.com + +- Updated License to GPL-2.0. +- Added the following patches: + * elinks-0.12_pre5-js185-1-heartbeat.patch, + elinks-0.12_pre5-js185-2-up.patch, + elinks-0.12_pre5-js185-3-histback.patch: Support for new js-1.8.5 + * elinks-0.12_pre5-compilation-fix.patch: Fix compilation with gc + * use_lua-5.1.patch: Support for lua-5.1 +- Added automake in BuildRequires in order to regenerate the build system + because of patches modifying configure.in. +- Corrected gmp-devel build dependency to gpm-devel. +- Removed guile-devel build dependency (wasn't used anyway and the support is + expiremental). +- Removed python-devel build dependency since the support is expiremental. +- Use ruby-devel only in openSUSE <= 12.1 since it fails with ruby 1.9 from + Factory. +- Added the following build dependencies that can be used by the package: + gc-devel (for openSUSE > 11.4), js-devel (for openSUSE > 11.4), krb5-devel, + lua*-devel, pkg-config and tre-devel. +- Make the package provide "web_browser", similar to other web browser + packages. +- Removed build time references so build-compare can do its work. +- Enabled the following build options: true-color and fastmem. +- Install documentation only for the scripting languages that are compiled. + +------------------------------------------------------------------- +Fri Jun 10 12:54:28 UTC 2011 - lijewski.stefan@gmail.com + +- fix sysconfdir to /etc/elinks + +------------------------------------------------------------------- +Tue Apr 26 13:12:57 UTC 2011 - puzel@novell.com + +- use spec-cleaner + +------------------------------------------------------------------- +Wed Jan 27 17:55:54 UTC 2010 - puzel@novell.com + +- update to 0.12pre5 + +------------------------------------------------------------------- +Wed Jan 27 17:45:25 UTC 2010 - puzel@novell.com + +- prepare for Contrib (disabled lua and js functionality for now) + +------------------------------------------------------------------- +Mon Sep 15 18:28:05 CEST 2008 - mrueckert@suse.de + +- update to 0.12pre1 + +------------------------------------------------------------------- +Wed Apr 18 21:14:44 CEST 2007 - mrueckert@suse.de + +- build with stack protector if possible + +------------------------------------------------------------------- +Wed Apr 18 21:12:11 CEST 2007 - mrueckert@suse.de + +- fix building with javascript + +------------------------------------------------------------------- +Wed Apr 18 16:07:48 CEST 2007 - mrueckert@suse.de + +- added javascript support + +------------------------------------------------------------------- +Mon Apr 16 14:51:53 CEST 2007 - mrueckert@suse.de + +- update to version 0.11.3: + important bug and security fixes +- remove the python patches + +------------------------------------------------------------------- +Fri Dec 1 07:43:11 CET 2006 - mrueckert@suse.de + +- disable lua until i fixed the patch + +------------------------------------------------------------------- +Mon Nov 20 14:20:13 CET 2006 - mrueckert@suse.de + +- update to version 0.11.2: + fixes CVE-2006-5925 + +------------------------------------------------------------------- +Fri Mar 10 22:00:48 CET 2006 - mrueckert@suse.de + +- update to version 0.11.1 + +------------------------------------------------------------------- +Fri Dec 23 04:18:07 CET 2005 - mrueckert@suse.de + +- update to version 0.11rc0 + +------------------------------------------------------------------- +Mon Sep 26 02:06:35 CEST 2005 - mrueckert@suse.de + +- Update to version 0.10.6 + diff --git a/elinks.spec b/elinks.spec new file mode 100644 index 0000000..277fa7c --- /dev/null +++ b/elinks.spec @@ -0,0 +1,145 @@ +# +# spec file for package elinks +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +%if 0%{?suse_version} > 1500 +%bcond_without js +%else +%bcond_with js +%endif +Name: elinks +Version: 0.17.0 +Release: 0 +Summary: An advanced and well-established feature-rich text mode web browser +License: GPL-2.0-or-later +Group: Productivity/Networking/Web/Browsers +URL: http://elinks.or.cz/ +Source0: https://github.com/rkd77/elinks/releases/download/v%{version}/elinks-%{version}.tar.xz +BuildRequires: gcc-c++ +BuildRequires: gpm-devel +%if %{with js} +BuildRequires: pkgconfig(libcss) +BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(libdom) +BuildRequires: pkgconfig(libxml++-5.0) +BuildRequires: pkgconfig(mujs) +BuildRequires: pkgconfig(sqlite3) +%endif +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: krb5-devel +BuildRequires: libbz2-devel +BuildRequires: libexpat-devel +BuildRequires: libidn2-devel +BuildRequires: libtool +BuildRequires: openssl-devel +BuildRequires: pkg-config +BuildRequires: ruby-devel +BuildRequires: tre-devel +BuildRequires: zlib-devel +BuildRequires: pkgconfig(luajit) +Provides: web_browser +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%perl_requires +%requires_eq perl + +%description +ELinks is an advanced and well-established feature-rich text mode web +(HTTP/FTP/..) browser. ELinks can render both frames and tables, is highly +customizable and can be extended via Lua or Guile scripts. It is very portable +and runs on a variety of platforms. Check the about page for a more complete +description. + +%prep +%autosetup -n %{name}-%{version} -p1 +# Remove build time references so build-compare can do its work +FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M') +FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') +sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/vernum.c +sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/vernum.c + +%build +# required for ruby patch +sh ./autogen.sh +export CFLAGS="%{optflags} -fno-strict-aliasing" +%configure \ + --sysconfdir=%{_sysconfdir}/elinks \ + --enable-bittorrent \ + --enable-cgi \ + --enable-finger \ + --disable-fsp \ + --enable-gopher \ + --enable-nntp \ + --disable-smb \ + --enable-88-colors \ + --enable-256-colors \ + --enable-true-color \ + --enable-gemini \ + --enable-exmode \ + --enable-html-highlight \ + --enable-fastmem \ + --with-xterm \ +%if %{without js} + --without-mujs \ +%else + --with-mujs \ +%endif + --without-lzma \ + --with-gssapi \ + --without-guile \ + --with-perl \ + --without-python \ + --with-luapkg=luajit \ + --with-ruby \ + --without-gnutls \ + --without-x +# Makefile is not parallel-safe +make MAKE_COLOR= V=1 + +%install +%make_install + +# Remove unneeded file +rm -f %{buildroot}%{_datadir}/locale/locale.alias + +%find_lang %{name} + +# Install documentation +%define _pkgdocdir %{buildroot}%{_docdir}/%{name} +install -Dd -m 0755 %{_pkgdocdir} +install -pm 0644 AUTHORS BUGS COPYING ChangeLog NEWS SITES THANKS TODO features.conf %{_pkgdocdir} +cp -a doc/ %{_pkgdocdir} +rm -rf %{_pkgdocdir}/doc/{.deps/,.gitignore,Doxyfile.in,Makefile,man/,tools/} +install -Dd -m 0755 %{_pkgdocdir}/contrib/ +install -pm 0644 contrib/*.conf contrib/*.vim contrib/*.css contrib/TIPS-AND-TRICKS %{_pkgdocdir}/contrib/ +install -Dd -m 0755 %{_pkgdocdir}/scripts/ +install -pm 0644 contrib/wipe-out-ssl* contrib/conv/* %{_pkgdocdir}/scripts/ +rm -f %{_pkgdocdir}/scripts/conv/.gitignore +# Install only the languages that are compiled +for lang in lua perl smjs ruby; do + install -Dd -m 0755 %{_pkgdocdir}/${lang} + install -pm 0644 contrib/${lang}/* %{_pkgdocdir}/${lang} +done +rm -f %{_pkgdocdir}/lua/.gitignore + +%files -f %{name}.lang +%defattr(-,root,root,-) +%{_bindir}/%{name} +%doc %{_docdir}/%{name}/ +%{_mandir}/man1/%{name}.1%{ext_man} +%{_mandir}/man5/%{name}*.5%{ext_man} + +%changelog