- Add /etc/rpm/macros.emacs file
This commit is contained in:
parent
dc84683952
commit
7501f239a2
27
emacs.spec
27
emacs.spec
@ -4,7 +4,7 @@ Summary: GNU Emacs text editor
|
|||||||
Name: emacs
|
Name: emacs
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 22.3
|
Version: 22.3
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://www.gnu.org/software/emacs/
|
URL: http://www.gnu.org/software/emacs/
|
||||||
Group: Applications/Editors
|
Group: Applications/Editors
|
||||||
@ -48,6 +48,8 @@ Provides: emacs(bin)
|
|||||||
%define expurgate 0
|
%define expurgate 0
|
||||||
|
|
||||||
%define site_lisp %{_datadir}/emacs/site-lisp
|
%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
|
%define pkgconfig %{_datadir}/pkgconfig
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -141,11 +143,9 @@ export CFLAGS="-DMAIL_USE_LOCKF $RPM_OPT_FLAGS"
|
|||||||
# remove versioned file so that we end up with .1 suffix and only one DOC file
|
# remove versioned file so that we end up with .1 suffix and only one DOC file
|
||||||
rm src/emacs-%{version}.*
|
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
|
# 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
|
%__make %{?_smp_mflags} -C lisp updates
|
||||||
|
|
||||||
@ -159,6 +159,15 @@ Description: GNU Emacs text editor
|
|||||||
Version: %{epoch}:%{version}
|
Version: %{epoch}:%{version}
|
||||||
EOF
|
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
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
@ -202,6 +211,10 @@ install -m 0644 %SOURCE3 %{buildroot}%{_sysconfdir}/skel/.emacs
|
|||||||
mkdir -p %{buildroot}/%{pkgconfig}
|
mkdir -p %{buildroot}/%{pkgconfig}
|
||||||
install -m 0644 emacs.pc %{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
|
# after everything is installed, remove info dir
|
||||||
rm -f %{buildroot}%{_infodir}/dir
|
rm -f %{buildroot}%{_infodir}/dir
|
||||||
rm %{buildroot}%{_localstatedir}/games/emacs/*
|
rm %{buildroot}%{_localstatedir}/games/emacs/*
|
||||||
@ -289,6 +302,7 @@ alternatives --install %{_bindir}/etags emacs.etags %{_bindir}/etags.emacs 80 \
|
|||||||
%files -f common-filelist common
|
%files -f common-filelist common
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config(noreplace) %{_sysconfdir}/skel/.emacs
|
%config(noreplace) %{_sysconfdir}/skel/.emacs
|
||||||
|
%config(noreplace) %{_sysconfdir}/rpm/macros.emacs
|
||||||
%doc etc/NEWS BUGS README
|
%doc etc/NEWS BUGS README
|
||||||
%exclude %{_bindir}/emacs-*
|
%exclude %{_bindir}/emacs-*
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
@ -309,6 +323,9 @@ alternatives --install %{_bindir}/etags emacs.etags %{_bindir}/etags.emacs 80 \
|
|||||||
%dir %{_datadir}/emacs/%{version}
|
%dir %{_datadir}/emacs/%{version}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jan 18 2009 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 1:22.3-3
|
||||||
|
- Add /etc/rpm/macros.emacs file
|
||||||
|
|
||||||
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1:22.3-2
|
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1:22.3-2
|
||||||
- Rebuild for Python 2.6
|
- Rebuild for Python 2.6
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user