diff --git a/elinks-0.17.0.tar.xz b/elinks-0.17.0.tar.xz deleted file mode 100644 index 0214dab72d069818c22dc70eb4c7a84433052ef9..0000000000000000000000000000000000000000 Binary files a/elinks-0.17.0.tar.xz and /dev/null differ diff --git a/elinks-0.17.1.1.tar.xz b/elinks-0.17.1.1.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..4da8202809fa08dfbee869dc5353bb3077339c92 Binary files /dev/null and b/elinks-0.17.1.1.tar.xz differ diff --git a/elinks.spec b/elinks.spec index a2c1a0f88bd8477889c73c6608551ad4a5ebffed..c272bdecb90b6987188c3b24977973b1f2cfc3f7 100644 --- a/elinks.spec +++ b/elinks.spec @@ -1,20 +1,35 @@ Name: elinks -Version: 0.17.0 +Version: 0.17.1.1 Release: 1 Summary: A text-mode Web browser License: GPL-2.0-only -URL: https://github.com/rkd77/elinks +URL: http://elinks.cz/ Source: https://github.com/rkd77/elinks/releases/download/v%{version}/elinks-%{version}.tar.xz Source2: elinks.conf -BuildRequires: automake bzip2-devel expat-devel gpm-devel krb5-devel libidn2-devel -BuildRequires: libidn2-devel lua-devel openssl-devel pkgconfig zlib-devel gcc -BuildRequires: gcc-c++ gettext -Requires(preun): chkconfig -Requires(post): coreutils -Requires(post): chkconfig -Requires(postun): coreutils -Requires(postun): chkconfig +BuildRequires: gcc-c++ +BuildRequires: meson +BuildRequires: pkgconfig(bzip2) +BuildRequires: pkgconfig(expat) +BuildRequires: pkgconfig(krb5-gssapi) +BuildRequires: pkgconfig(libbrotlidec) +BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(libidn2) +BuildRequires: pkgconfig(liblzma) +BuildRequires: pkgconfig(libzstd) +BuildRequires: pkgconfig(lua) +BuildRequires: pkgconfig(ncursesw) +BuildRequires: pkgconfig(openssl) +BuildRequires: pkgconfig(sqlite3) +BuildRequires: pkgconfig(zlib) +BuildRequires: gpm-devel +BuildRequires: /usr/bin/doxygen +BuildRequires: /usr/bin/pod2html +BuildRequires: /usr/bin/xmlto +BuildRequires: gettext +Requires(preun): /usr/sbin/alternatives +Requires(post): /usr/sbin/alternatives +Requires(postun): /usr/sbin/alternatives Provides: webclient links = 1:0.97-1 text-www-browser # Prevent crash when HOME is unset (bug #90663). @@ -36,37 +51,33 @@ but it does support frames, tables and most other HTML tags. Elinks' advantage over graphical browsers is its speed--Elinks starts and exits quickly and swiftly displays Web pages. -%package help -Summary: Introduce how to use elinks - -%description help -Introduce how to use elinks +%package_help %prep %autosetup -p1 -# remove bogus serial numbers -sed -e 's/^# *serial [AM0-9]*$//' -i config/m4/*.m4 - -aclocal -I config/m4 -autoconf -autoheader - %build -export CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS) -D_GNU_SOURCE -DLUA_COMPAT_5_3" -%configure %{?rescue:--without-gpm} \ - --enable-256-colors --enable-bittorrent --with-gssapi \ - --with-lua --with-openssl --without-gnutls \ - --without-spidermonkey --without-x - -make V=1 +%meson \ + -Dluapkg=lua \ + -D256-colors=true \ + -Dbzlib=true \ + -Dbrotli=true \ + -Dzstd=true \ + -Dlzma=true \ + -Dgssapi=true \ + -Dgnutls=false \ + -Dspidermonkey=false \ + -Dx=false \ + -Dtre=false \ + -Dlibcss=false +%meson_build %install -%make_install V=1 +%meson_install + install -d %{buildroot}%{_sysconfdir} -install -D -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/elinks.conf -touch %{buildroot}%{_bindir}/links -true | gzip -c > %{buildroot}%{_mandir}/man1/links.1.gz +install -D -p -m 644 %{S:2} %{buildroot}%{_sysconfdir}/elinks.conf +touch %{buildroot}%{_bindir}/links %{buildroot}%{_mandir}/man1/links.1 %find_lang elinks %postun @@ -86,7 +97,6 @@ if [ "$links" == "%{_bindir}/elinks" ]; then %{_sbindir}/alternatives --set links %{_bindir}/elinks fi - %preun if [ $1 = 0 ]; then %{_sbindir}/alternatives --remove links %{_bindir}/elinks @@ -98,15 +108,23 @@ exit 0 %doc README.md %ghost %verify(not md5 size mtime) %{_bindir}/links %{_bindir}/elinks -%ghost %verify(not md5 size mtime) %{_mandir}/man1/links.1.gz +%ghost %verify(not md5 size mtime) %{_mandir}/man1/links.1* %config(noreplace) %{_sysconfdir}/elinks.conf -%exclude %{_datadir}/locale/locale.alias %files help %{_mandir}/man1/elinks.1* %{_mandir}/man5/* +%{_docdir}/%{name}/*.html +%{_docdir}/%{name}/*.txt +%{_docdir}/%{name}/*.xhtml +%{_docdir}/%{name}/manual.html-chunked +%{_docdir}/%{name}/api %changelog +* Mon Oct 07 2024 Funda Wang - 0.17.1.1-1 +- Update to 0.17.1.1 +- build with meson as suggested upstream + * Wed Jul 03 2024 wangkai <13474090681@163.com> - 0.17.0-1 - Update to 0.17.0 - The protocol.fsp.sort option has been removed. ELinks always sorts.