File epg.spec of Package epg
#
# spec file for package epg (Version 0.0.13)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: epg
BuildRequires: emacs-nox
Url: http://www.easypg.org/
Summary: GnuPG interface for Emacs
Version: 0.0.13
Release: 165
Group: Productivity/Security
License: GPL v2 or later
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).
Authors:
--------
Daiki Ueno <ueno@unixuser.org>
%prep
%setup -q
%patch
%build
autoreconf -fi
./configure --prefix=/usr --infodir=%{_infodir} --with-lispdir=%{site_lisp}
make
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}/
%clean
rm -fr $RPM_BUILD_ROOT
%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
* Tue Jul 10 2007 schwab@suse.de
- Initial version 0.0.13.