From 3b8e292bd20e785a4d20fcfe77aaa5120270d465 Mon Sep 17 00:00:00 2001 From: twittner Date: Mon, 27 Mar 2006 17:49:33 +0000 Subject: [PATCH] - up to 5.1.2 - use make install, -DESTDIR, -install-info patches - pack only byte-compiled elisp files - add info page - rel. 1 Changed files: emacs-erc.spec -> 1.7 --- emacs-erc.spec | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/emacs-erc.spec b/emacs-erc.spec index e7042bd..9628bdc 100644 --- a/emacs-erc.spec +++ b/emacs-erc.spec @@ -1,17 +1,24 @@ +# +# TODO: - xemacs pkg, rename to emacsen-erc.spec +# Summary: IRC Client for Emacs Summary(pl): Klient irca dla Emacsa Name: emacs-erc -Version: 5.0.4 -Release: 0.1 +Version: 5.1.2 +Release: 1 License: GPL v2 Group: Applications/Editors/Emacs Source0: http://dl.sourceforge.net/erc/erc-%{version}.tar.gz -# Source0-md5: 7162aedf0a0d4893425f1c669b2ea403 +# Source0-md5: 1c79609f8597bc158785487f9795dd78 +Patch0: %{name}-DESTDIR.patch +Patch1: %{name}-install-info.patch URL: http://www.emacswiki.org/cgi-bin/wiki?EmacsIRCClient BuildRequires: emacs Requires: emacs >= 21.1 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define site_lisp_dir %{_emacs_lispdir}/erc + %description IRC Client for Emacs. @@ -20,19 +27,33 @@ Klient irca dla Emacsa. %prep %setup -q -n erc-%{version} +%patch0 -p1 +%patch1 -p1 %build %{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp -install erc*.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT \ + ELISPDIR="%{site_lisp_dir}" \ + INFODIR="%{_infodir}" + +rm -f $RPM_BUILD_ROOT%{site_lisp_dir}/*.el %clean rm -rf $RPM_BUILD_ROOT +%post +[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 + +%postun +[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 + %files %defattr(644,root,root,755) %doc HISTORY README AUTHORS ChangeLog CREDITS -%{_datadir}/emacs/site-lisp/*.el +%{site_lisp_dir}/*.elc +%{_infodir}/* -- 2.44.0