rpms/emacs/F-10 emacs.spec,1.112,1.113
Jonathan G. Underwood
jgu at fedoraproject.org
Sun Jan 18 16:31:48 UTC 2009
Author: jgu
Update of /cvs/extras/rpms/emacs/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7696
Modified Files:
emacs.spec
Log Message:
* Sun Jan 18 2009 Jonathan G. Underwood <jonathan.underwood at gmail.com> - 1:22.3-2
- Add /etc/rpm/macros.emacs file
Index: emacs.spec
===================================================================
RCS file: /cvs/extras/rpms/emacs/F-10/emacs.spec,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -r1.112 -r1.113
--- emacs.spec 17 Dec 2008 11:50:18 -0000 1.112
+++ emacs.spec 18 Jan 2009 16:31:17 -0000 1.113
@@ -4,7 +4,7 @@
Name: emacs
Epoch: 1
Version: 22.3
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv3+
URL: http://www.gnu.org/software/emacs/
Group: Applications/Editors
@@ -50,6 +50,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
@@ -149,7 +151,8 @@
%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
@@ -163,6 +166,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}
@@ -206,6 +218,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/*
@@ -293,6 +309,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}/*
@@ -313,6 +330,9 @@
%dir %{_datadir}/emacs/%{version}
%changelog
+* Sun Jan 18 2009 Jonathan G. Underwood <jonathan.underwood at gmail.com> - 1:22.3-2
+- Add /etc/rpm/macros.emacs file
+
* Wed Dec 17 2008 Daniel Novotny <dnovotny at redhat.com> 22.3-1
- update from 22.2 to 22.3 (bz#461448)
- removed upstreamed patches
More information about the fedora-extras-commits
mailing list