SPECS: emacs-erc.spec - up to 5.1.2 - use make install, -DESTDIR, ...
twittner
twittner at pld-linux.org
Mon Mar 27 19:49:38 CEST 2006
Author: twittner Date: Mon Mar 27 17:49:38 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- up to 5.1.2
- use make install, -DESTDIR, -install-info patches
- pack only byte-compiled elisp files
- add info page
- rel. 1
---- Files affected:
SPECS:
emacs-erc.spec (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SPECS/emacs-erc.spec
diff -u SPECS/emacs-erc.spec:1.6 SPECS/emacs-erc.spec:1.7
--- SPECS/emacs-erc.spec:1.6 Wed Jan 4 20:23:05 2006
+++ SPECS/emacs-erc.spec Mon Mar 27 19:49:33 2006
@@ -1,18 +1,25 @@
# $Revision$, $Date$
+#
+# 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.
@@ -21,22 +28,36 @@
%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}/*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -44,6 +65,13 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2006/03/27 17:49:33 twittner
+- up to 5.1.2
+- use make install, -DESTDIR, -install-info patches
+- pack only byte-compiled elisp files
+- add info page
+- rel. 1
+
Revision 1.6 2006/01/04 19:23:05 twittner
- up to 5.0.4
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/emacs-erc.spec?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list