rpms/emacs/devel emacs.spec,1.114,1.115

Jonathan G. Underwood jgu at fedoraproject.org
Sun Jan 18 16:22:10 UTC 2009


Author: jgu

Update of /cvs/extras/rpms/emacs/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5700

Modified Files:
	emacs.spec 
Log Message:
* Sun Jan 18 2009 Jonathan G. Underwood <jonathan.underwood at gmail.com> - 1:22.3-3
- Add /etc/rpm/macros.emacs file



Index: emacs.spec
===================================================================
RCS file: /cvs/extras/rpms/emacs/devel/emacs.spec,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -r1.114 -r1.115
--- emacs.spec	1 Dec 2008 15:00:21 -0000	1.114
+++ emacs.spec	18 Jan 2009 16:22:07 -0000	1.115
@@ -4,7 +4,7 @@
 Name: emacs
 Epoch: 1
 Version: 22.3
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv3+
 URL: http://www.gnu.org/software/emacs/
 Group: Applications/Editors
@@ -48,6 +48,8 @@
 %define expurgate 0
 
 %define site_lisp %{_datadir}/emacs/site-lisp
+%define site_start_d %{site_lisp}/site-start.d
+%define bytecompargs -batch --no-init-file --no-site-file -f batch-byte-compile
 %define pkgconfig %{_datadir}/pkgconfig
 
 %description
@@ -141,11 +143,9 @@
 # remove versioned file so that we end up with .1 suffix and only one DOC file
 rm src/emacs-%{version}.*
 
-TOPDIR=${PWD}
-%define emacsbatch ${TOPDIR}/src/emacs -batch --no-init-file --no-site-file
-
 # make sure patched lisp files get byte-compiled
-%emacsbatch -f batch-byte-compile site-lisp/*.el
+TOPDIR=${PWD}
+${TOPDIR}/src/emacs %{bytecompargs} site-lisp/*.el
 
 %__make %{?_smp_mflags} -C lisp updates
 
@@ -159,6 +159,15 @@
 Version: %{epoch}:%{version}
 EOF
 
+# Create macros.emacs RPM macro file
+cat > macros.emacs << EOF
+%%_emacs_version %{version}
+%%_emacs_epoch %{epoch}
+%%_emacs_sitelispdir %{site_lisp}
+%%_emacs_sitestartdir %{site_start_d}
+%%_emacs_bytecompile /usr/bin/emacs %bytecompargs 
+EOF
+
 %install
 rm -rf %{buildroot}
 
@@ -202,6 +211,10 @@
 mkdir -p %{buildroot}/%{pkgconfig}
 install -m 0644 emacs.pc %{buildroot}/%{pkgconfig}
 
+# install rpm macro definition file
+mkdir -p %{buildroot}%{_sysconfdir}/rpm
+install -m 0644 macros.emacs %{buildroot}%{_sysconfdir}/rpm/
+
 # after everything is installed, remove info dir
 rm -f %{buildroot}%{_infodir}/dir
 rm %{buildroot}%{_localstatedir}/games/emacs/*
@@ -289,6 +302,7 @@
 %files -f common-filelist common
 %defattr(-,root,root)
 %config(noreplace) %{_sysconfdir}/skel/.emacs
+%config(noreplace) %{_sysconfdir}/rpm/macros.emacs
 %doc etc/NEWS BUGS README
 %exclude %{_bindir}/emacs-*
 %{_bindir}/*
@@ -309,6 +323,9 @@
 %dir %{_datadir}/emacs/%{version}
 
 %changelog
+* Sun Jan 18 2009 Jonathan G. Underwood <jonathan.underwood at gmail.com> - 1:22.3-3
+- Add /etc/rpm/macros.emacs file
+
 * Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 1:22.3-2
 - Rebuild for Python 2.6
 




More information about the scm-commits mailing list