File epg.spec of Package epg
#
# spec file for package epg
#
# Copyright (c) 2011 SUSE LINUX Products 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: epg
BuildRequires: automake
BuildRequires: emacs-nox
Url: http://www.easypg.org/
Summary: GnuPG interface for Emacs
Version: 0.0.13
Release: 0
Group: Productivity/Security
License: GPL-2.0+
Requires: emacs
Enhances: emacs
Source: %{name}-%{version}.tar.gz
Patch: %{name}-%{version}.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%define site_lisp /usr/share/emacs/site-lisp
%description
EasyPG is an all-in-one GnuPG interface for Emacs. It has two aspects:
convenient tools which allow to use GnuPG from Emacs (EasyPG
Assistant), and a fully functional interface library to GnuPG (EasyPG
Library).
%prep
%setup -q
%patch
%build
autoreconf -fi
%configure --with-lispdir=%{site_lisp}
make %{?_smp_mflags}
sed 's/^;//' > suse-start-epg.el <<EOF
;;;; suse-start-epg.el
;;;
;;;; Code:
;
;(add-to-list 'load-path "%{site_lisp}/epg")
;
;;; Local Variables:
;;; version-control: never
;;; no-byte-compile: t
;;; no-update-autoloads: t
;;; End:
;;;; suse-start-epg.el ends here
EOF
emacs -batch -l autoload \
--eval '(setq generated-autoload-file (expand-file-name "suse-start-epg.el"))' \
-f batch-update-autoloads .
%install
make install DESTDIR=$RPM_BUILD_ROOT
cp suse-start-epg.el $RPM_BUILD_ROOT%{site_lisp}/
%post
%install_info --info-dir=%{_infodir} %{_infodir}/epg.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/epg.info.gz
%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README
%{site_lisp}/*
%{_infodir}/*.info*
%changelog