SHA256
1
0
forked from pool/emacs-w3m
emacs-w3m/emacs-w3m.spec
Andreas Schwab 1977aa96d2 - Update to version 1.4.632+501+gc088fe62:
* * w3m-lnum.el (w3m-lnum-get-match-info, w3m-lnum-get-action): Rearrange docstrings so to be in 80-column
  * Typo fix
  * Use rfc6068.el if possible instead of rfc2368.el (issue #109)
  * * sb-sankei.el (shimbun-sankei-keep-login): Consult akamai cookie instead of local timer for expiry period. (shimbun-sankei-logout): Remove login/out cookies first and save last. (shimbun-sankei-login): Remove akamai cookie first as well. (shimbun-sankei-last-login): Remove variable. (shimbun-sankei-get-headers): Use date-to-time instead of encode-time and parse-time-string or timezone-parse-date.
  * * w3m-filter.el (w3m-filter-configuration): Add desc template
  * * w3m-filter.el (w3m-filter-configuration): Make Custom-set work
  * * w3m-bookmark.el (w3m-bookmark-menubar-update): Add a workaround to avoid a miscellaneous error
  * Treat application/emacs-lisp as text/plain ([emacs-w3m:13845])
  * user-agents: bugfix, update, improve friendliness (PR#106)
  * * w3m.el (w3m-user-agent-alist): Fill in in 80-column, reindent
  * user-agent variables: update, and add reference feature
  * w3m-user-agent-default-alist: bugfix macro element
  * New and improved filter for github (PR#105)
  * * w3m-filter.el (w3m-filter-github): Fill in in 80-column, reindent
  * w3m-filter: new and improved filter for github
  * * sb-sankei.el (shimbun-headers): Run shimbun-sankei-keep-login
  * * sb-sankei.el (shimbun-sankei-login): Cache a copy of password always
  * * sb-sankei.el (shimbun-sankei-logout{in|out}): Make those functions, instead of shimbun-sankei-keep-login, manage shimbun-sankei-last-login.
  * * sb-sankei.el (shimbun-sankei-keep-login): Fix last commit
  * Keep logging in in Sankei
  * Add timeout to w3m-download
  * Fix last commit (1059e92)
  * Hard-code the shell used in `w3m-download' with "sh" ([emacs-w3m:13826])
  * Use defvar-local in w3m.el (PR#101)
  * Replace make-variable-buffer-local with defvar-local
  * Bugfix: db-history single-page advances point too far (PR#100)
  * * w3m.el (w3m--goto-url--handler-function): Fix point position. (PR#99)
  * Position point on the first entry in the db history (PR#99) ;; slightly modified by yamaoka
  * Fix typo 講読→購読

OBS-URL: https://build.opensuse.org/package/show/M17N/emacs-w3m?expand=0&rev=10
2021-10-15 19:06:23 +00:00

112 lines
3.6 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package emacs-w3m
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://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 上で動かすためのプログラムです
Version: 1.4.632+501+gc088fe62
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
BuildRequires: flim
BuildRequires: makeinfo
Requires: apel
Requires: emacs
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
%setup -q
%patch1
%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