File emacs-vm.spec of Package emacs-vm

# spec file for package emacs-vm (Version 7.19)
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via

# norootforbuild

Name:           emacs-vm
BuildRequires:  emacs-nox
License:        GNU General Public License (GPL)
Group:          Productivity/Editors/Emacs
Provides:       calc
Requires:       emacs ed
PreReq:         %install_info_prereq
Autoreqprov:    on
Version:        7.19
Release:        53
Summary:        VM - a mail reader for GNU Emacs
Source2:        emacs-vm-autoload.el
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

VM (View Mail) is an Emacs subsystem that allows UNIX mail to be read
and disposed of within Emacs.  Commands exist to do the normal things
expected of a mail user agent, such as generating replies, saving
messages to folders, deleting messages and so on.  There are other more
advanced commands that do tasks like bursting and creating digests,
message forwarding, and organizing message presentation according to
various criteria.

    Kyle E. Jones <>

%define _sitedir /usr/share/emacs/site-lisp
%define _vmdir  %{_sitedir}/vm
%define _infodir /usr/share/info
%setup -n vm-%{version}

export LC_CTYPE=ISO-8859-1
EMACS="emacs --no-site"
rm -rf *.elc
make EMACS="${EMACS}" vm
make EMACS="${EMACS}"

mkdir -p ${RPM_BUILD_ROOT}
EMACS="emacs --no-site"
_emacs_ver=$(rpm -q --qf '%{VERSION}' emacs)
make EMACS="${EMACS}" LISPDIR=${RPM_BUILD_ROOT}%{_vmdir} install-vm install-el
make INFODIR=${RPM_BUILD_ROOT}%{_infodir} install-info
make BINDIR=${RPM_BUILD_ROOT}/usr/bin install-utils
make PIXMAPDIR=${RPM_BUILD_ROOT}/usr/share/emacs/${_emacs_ver}/etc/vm install-pixmaps
  echo ";; /usr/share/emacs/site-lisp/suse-start-%{name}.el"
  cat %{S:2}
  echo ";; /usr/share/emacs/site-lisp/suse-start-%{name}.el ends here"
} > ${RPM_BUILD_ROOT}%{_sitedir}/suse-start-%{name}.el

%install_info --info-dir=%{_infodir} %{_infodir}/

%install_info_delete --info-dir=%{_infodir} %{_infodir}/

%defattr(-, root, root)
%dir %{_sitedir}
%dir %{_vmdir}
%doc %{_infodir}/*.gz

* Sun Apr 22 2007 -
- Cleanup BuildRequires.
* Wed Jan 25 2006 -
- converted neededforbuild to BuildRequires
* Thu Jan 19 2006 -
- prepared for autobuild
- Using vm-7.19 as initial package
openSUSE Build Service is sponsored by