File mailcrypt.spec of Package mailcrypt

#
# spec file for package mailcrypt (Version 3.5.8)
#
# Copyright (c) 2008 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 http://bugs.opensuse.org/
#

# norootforbuild

Name:           mailcrypt
BuildRequires:  automake
BuildRequires:  emacs-nox
BuildRequires:  texinfo
License:        GPL-2.0+
Group:          Productivity/Editors/Emacs
Requires:       emacs emacs_program
Autoreqprov:    on
Summary:        A Simple Interface to PGP on GNU Emacs
Version:        3.5.9
Release:        1
URL:            http://mailcrypt.sourceforge.net
Source0:        %{name}-%{version}.tar.gz
Patch1:         backqute-fix.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
PreReq:         %install_info_prereq

%description
Mailcrypt is an Emacs lisp package which provides a simple interface
to cryptographic functions with PGP.

%prep
%setup -q
%patch1 -p1

%build
autoreconf -fi
./configure --prefix=/usr
make

%install
make install lispdir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp \
    infodir=$RPM_BUILD_ROOT%{_infodir}
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
gzip --best $RPM_BUILD_ROOT%{_infodir}/*.info*

%clean
rm -fr $RPM_BUILD_ROOT

%post
%install_info --info-dir=%{_infodir} %{_infodir}/mailcrypt.info.gz

%preun
%install_info_delete --info_dir=%{_infodir} %{_infodir}/mailcrypt.info.gz

%files
%defattr(-,root,root)
%doc README
%{_prefix}/share/emacs/site-lisp/*
%{_infodir}/*

%changelog -n apel
* Wed Jul 16 2008 tiwai@suse.de
- initial version: 3.5.8
openSUSE Build Service is sponsored by