File emacs-wanderlust.spec of Package emacs-wanderlust
#
# spec file for package emacs-wanderlust
#
# 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 http://bugs.opensuse.org/
#
Name: emacs-wanderlust
Version: 2.15.9.768+ge3cd5e394547
Release: 0
Summary: Wanderlust, Yet Another Message Interface On Emacsen
License: GPL-2.0-or-later
Group: Productivity/Editors/Emacs
URL: https://github.com/wanderlust/wanderlust
Source0: wanderlust-%{version}.tar.gz
Source1: texi2utf8.emacs
Source2: suse-start-wl.el
BuildRequires: emacs-apel
BuildRequires: emacs-nox
BuildRequires: emacs-flim
BuildRequires: emacs-semi
Requires: emacs
Requires: emacs-apel
Requires: emacs-flim
Requires: emacs-semi
Requires: emacs_program
Provides: wl-emacs = %{version}
Obsoletes: wl-emacs < %{version}
PreReq: %install_info_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Wanderlust is a mail and news management system with IMAP4rev1 support
for Emacsen. This package is for GNU Emacs.
%prep
%setup -q -n wanderlust-%{version}
sh %{S:1}
%build
%define emacs_lisp_dir /usr/share/emacs/site-lisp
%define emacs_pixmap_dir %{emacs_lisp_dir}/wl/icons
make %{?_smp_mflags} EMACS=emacs \
LISPDIR=%{_datadir}/emacs/site-lisp \
PACKAGE_LISPDIR=NONE \
PIXMAPDIR=%{_datadir}/emacs/site-lisp/wl/icons \
VERSION_SPECIFIC_LISPDIR=%{_datadir}/emacs/site-lisp/emu
%install
make install EMACS=emacs \
LISPDIR=%{buildroot}%{_datadir}/emacs/site-lisp \
PACKAGE_LISPDIR=NONE \
PIXMAPDIR=%{buildroot}%{_datadir}/emacs/site-lisp/wl/icons \
VERSION_SPECIFIC_LISPDIR=%{_datadir}/emacs/site-lisp/emu
mkdir -p %{buildroot}%{_infodir}
make install-info EMACS=emacs \
INFODIR=%{buildroot}%{_infodir}
rm -f %{buildroot}%{_infodir}/dir
gzip --best %{buildroot}%{_infodir}/*.info
install -c -m 0644 utils/ssl.el %{buildroot}%{_datadir}/emacs/site-lisp
install -c -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/emacs/site-lisp
%post
%install_info --info-dir=%{_infodir} %{_infodir}/wl.info.gz
%install_info --info-dir=%{_infodir} %{_infodir}/wl-ja.info.gz
%preun
%install_info --delete --info-dir=%{_infodir} %{_infodir}/wl.info.gz
%install_info --delete --info-dir=%{_infodir} %{_infodir}/wl-ja.info.gz
%files
%defattr(-,root,root)
%doc BUGS* ChangeLog* INSTALL* NEWS* README* samples/
%license COPYING
%doc %{_infodir}/*
%{_datadir}/emacs/site-lisp/wl
%{_datadir}/emacs/site-lisp/*.el
%changelog