# This is an RPM spec file that specifies how to package # Erc for Red Hat Linux and, possibly, similar systems. # It has been tested on Red Hat Linux 7.2, 8.0, 9, and # Fedora Core 1. %define subname erc %define name emacs-%{subname} %define version 5.2 %define release 1.tgm Summary: Internet Relay Chat client for Emacs Name: %{name} Version: %{version} Release: %{release} License: GPL Group: Applications/Editors Source: http://telia.dl.sourceforge.net/sourceforge/erc/erc-%{version}.tar.gz URL: http://emacswiki.org/cgi-bin/wiki.pl?EmacsIRCClient BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Prefix: %{_prefix} BuildArchitectures: noarch BuildRequires: emacs Requires: emacs %description This package adds the ERC Internet Relay Chat client to Emacs. %prep %setup -n erc-%{version} %build # perl -i -pe's/UNCOMPILED =/UNCOMPILED = erc-chess.el erc-bbdb.el/' Makefile make # create an init file that is loaded when a user starts up emacs to # tell emacs to autoload Erc when needed cat > erc-init.el <<"EOF" ;;; Set up ERC for Emacs. ;;; ;;; This file is automatically loaded by emacs's site-start.el ;;; when you start a new emacs session. (require 'erc) EOF # create a README.RPM file to document any quirks of this package cat > README.RPM < EOF %install rm -rf ${RPM_BUILD_ROOT} INSTDIR=${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{subname} install -m 755 -d $INSTDIR install -m 644 *.elc *.el $INSTDIR INITDIR=${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/site-start.d install -m 755 -d $INITDIR install -m 644 erc-init.el $INITDIR/erc-init.el # Uncomment to print the README file after install. # # %post # echo # cat %{_defaultdocdir}/%{name}-%{version}/README.RPM # echo %clean rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %doc README.RPM AUTHORS CREDITS ChangeLog HISTORY README servers.pl %dir %{_datadir}/emacs/site-lisp/%{subname} %{_datadir}/emacs/site-lisp/%{subname}/* %{_datadir}/emacs/site-lisp/site-start.d/* %changelog * Mon May 21 2007 - 5.2-1.tgm - Updated for ERC 5.2 * Thu Sep 21 2006 - 5.1.4-1.tgm - Updated for ERC 5.1.4 * Wed May 3 2006 - 5.1.1-1.tgm - Updated to erc 5.1.1 * Tue Jan 3 2006 Tom Moertel - 5.0.4-2.tgm - Changed License, BuildRoot tags, per Fedora Extras packaging guidelines - Removed Packager tag, per Fedora Extras packaging guidelines * Fri Jul 29 2005 Tom Moertel - 5.0.4-1.tgm - Updated to erc 5.0.4 - Changed Copyright header to License * Wed Feb 16 2005 Tom Moertel - 5.0.1-1.tgm - Updated to ERC 5.0.1. * Sat Nov 13 2004 Tom Moertel 4.0-3.tgm - Fixed permissions on .el/.elc files * Mon May 3 2004 4.0-2 - Updated for Erc 4.0. * Wed Apr 23 2003 Tom Moertel - Updated for Erc 4.0.rc2. * Fri Apr 18 2003 Tom Moertel - Updated for Erc 3.0 * Fri Sep 06 2002 Tom Moertel - Created spec file - Added README.RPM - Added site-lisp/site-start.d init file for emacs-erc.