emacs-w3m/emacs-w3m.spec

111 lines
3.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package emacs-w3m
#
# Copyright (c) 2022 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/
#
Name: emacs-w3m
Summary: An interface program to use w3m with Emacs
License: GPL-2.0-or-later
Group: Productivity/Networking/Web/Browsers
# Summary(ja): w3m を Emacs 上で動かすためのプログラムです
- Update to version 1.4.632+563+gdc5136d2: * * shimbun/sb-sankei.el (shimbun-sankei-login, shimbun-sankei-keep-login): Revert * * shimbun/sb-sankei.el (shimbun-sankei-get-headers): Add author's name to subject if possible (shimbun-sankei-login, shimbun-sankei-keep-login): Update cookies handling * * shimbun/sb-sankei.el (shimbun-sankei-get-headers-ranking) (shimbun-sankei-get-headers): Update regexps * * shimbun/sb-sankei.el (shimbun-sankei-get-headers): Minor fixes * Add ``lexical-binding: nil'' to many files * * shimbun/sb-sankei.el (shimbun-sankei-get-headers-ranking): New function (shimbun-sankei-get-headers): Use it for the sankeisyo group; minor improvements * * shimbun/sb-sankei.el: Fix it so to work again for almost groups * * w3m.el (w3m-fontify-anchors): Improve the way to find unsafe links * * shimbun/mew-shimbun.el (mew-shimbun-unseen-setup): Fix advice * * w3m.el (w3m-add-referer, w3m-puny-utf-16be): Fix custom types * * w3mhack.el (w3mhack-insert-git-revision, w3mhack-generate-load-file): Fix so to generate emacs-w3m-git-revision on Emacs 29 and up as well * * nnshimbun.el (nnshimbun-replace-date-header): Compile it if and only if it is necessary * * mew-shimbun.el (mew-shimbun-unseen-setup): Use advice-add instead of defadvice that's been marked obsolete in Emacs 30 * * w3m-util.el (w3m-delete-w3m-initial-frames): Doc fix * * mime-w3m.el (mime-display-message, kill-new): Use advice-add instead of defadvice that's been marked obsolete in Emacs 30 * Drop Emacs 27 support * * nnshimbun.el (nnshimbun-replace-date-header): Don't quote lambda form OBS-URL: https://build.opensuse.org/package/show/M17N/emacs-w3m?expand=0&rev=15
2024-02-21 21:01:07 +01:00
Version: 1.4.632+563+gdc5136d2
Release: 0
URL: http://emacs-w3m.namazu.org/
Source0: emacs-w3m-%{version}.tar.xz
Source1: suse-start.el
Patch1: w3m-el-1.3-map.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: autoconf
BuildRequires: emacs-nox >= 28.0
BuildRequires: flim
BuildRequires: makeinfo
Requires: apel
Requires: emacs >= 28.0
Requires: flim
Requires: w3m
Provides: w3m-el = %{version}
Obsoletes: w3m-el < %{version}
# %description -l ja
# Emacs 上で動作するブラウザと言えば,普通 W3 のことですが,動作が非常に
# 遅いので,なかなか常用しようという気になれません.
#
# それに対してw3m というテキストベースで動作するブラウザがあり,非常に
# 軽快に動作するので重宝しているのですが,端末に移動しなければいけないの
# が面倒です.
#
# そこでw3m を HTML の rendering engine として使用し,表示とインタフェー
# スのみをEmacs で動かすようにすればいいんじゃないだろうか,ということを
# 考えました.
%description
Emacs-w3m is an interface program to use w3m with Emacs.
W3 is the most well known WEB browser which works on (X)Emacs, but it
is very slow. Emacs-w3m is an alternative. It uses w3m, which is a pager
with WWW capability, developed by Akinori ITO. It is a pager, but it
can be used as a text-mode WWW browser.
%prep
%autosetup -p1
%build
%define emacs_sitelisp_dir %{_datadir}/emacs/site-lisp
%define emacs_package_dir %{emacs_sitelisp_dir}/w3m
autoreconf --force --install
%configure \
--with-lispdir=%{emacs_package_dir} \
--with-icondir=%{emacs_package_dir} \
--with-emacs=emacs
make
%install
mkdir -p %{buildroot}/%{emacs_package_dir}
%make_install install-icons
{
echo ";; %{emacs_sitelisp_dir}/suse-start-%{name}.el"
echo ""
echo "(add-to-list 'load-path \"%{emacs_package_dir}\")"
echo ""
cat %{_sourcedir}/suse-start.el
echo ""
echo ";; %{emacs_sitelisp_dir}/suse-start-%{name}.el ends here"
} > %{buildroot}%{emacs_sitelisp_dir}/suse-start-%{name}.el
rm -f %{buildroot}/%{_infodir}/dir
rm -f %{buildroot}/%{emacs_package_dir}/ChangeLog*
%post
for i in emacs-w3m emacs-w3m-ja
do
%install_info --info-dir=%{_infodir} %{_infodir}/${i}.info.gz
done
%preun
for i in emacs-w3m emacs-w3m-ja
do
%install_info_delete --info-dir=%{_infodir} %{_infodir}/${i}.info.gz
done
%files
%defattr(-,root,root)
%license COPYING
%doc ChangeLog* README*
%{emacs_package_dir}
%config %{emacs_sitelisp_dir}/suse-start-%{name}.el
%{_infodir}/*
%changelog