emacs 24.2

This commit is contained in:
Karel Klic 2012-09-13 12:27:17 +02:00
parent 4b2c39e943
commit e8a2c6d168
3 changed files with 42 additions and 30 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@
/emacs-24.0.97.tar.gz /emacs-24.0.97.tar.gz
/emacs-24.1-rc.tar.gz /emacs-24.1-rc.tar.gz
/emacs-24.1.tar.bz2 /emacs-24.1.tar.bz2
/emacs-24.2.tar.xz

View File

@ -2,12 +2,12 @@
Summary: GNU Emacs text editor Summary: GNU Emacs text editor
Name: emacs Name: emacs
Epoch: 1 Epoch: 1
Version: 24.1 Version: 24.2
Release: 6%{?dist} Release: 1%{?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
Source0: ftp://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.bz2 Source0: ftp://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.xz
Source1: emacs.desktop Source1: emacs.desktop
Source2: emacsclient.desktop Source2: emacsclient.desktop
Source3: dotemacs.el Source3: dotemacs.el
@ -28,38 +28,37 @@ Patch3: rpm-spec-mode-changelog.patch
Patch7: emacs-spellchecker.patch Patch7: emacs-spellchecker.patch
# rhbz#830162 # rhbz#830162
Patch8: emacs-locate-library.patch Patch8: emacs-locate-library.patch
# Fix building without gets function, which is removed from recent
# version of glibc.
Patch9: emacs-nogets.patch
# rhbz#847702
Patch10: emacs-cve-2012-3479.patch
BuildRequires: atk-devel, cairo-devel, freetype-devel, fontconfig-devel, dbus-devel, giflib-devel, glibc-devel, gtk3-devel, libpng-devel BuildRequires: atk-devel cairo-devel freetype-devel fontconfig-devel dbus-devel giflib-devel glibc-devel libpng-devel
BuildRequires: libjpeg-devel, libtiff-devel, libX11-devel, libXau-devel, libXdmcp-devel, libXrender-devel, libXt-devel BuildRequires: libjpeg-devel libtiff-devel libX11-devel libXau-devel libXdmcp-devel libXrender-devel libXt-devel
BuildRequires: libXpm-devel, ncurses-devel, xorg-x11-proto-devel, zlib-devel, gnutls-devel BuildRequires: libXpm-devel ncurses-devel xorg-x11-proto-devel zlib-devel gnutls-devel
BuildRequires: librsvg2-devel, m17n-lib-devel, libotf-devel, ImageMagick-devel, libselinux-devel BuildRequires: librsvg2-devel m17n-lib-devel libotf-devel ImageMagick-devel libselinux-devel
BuildRequires: GConf2-devel, alsa-lib-devel, gpm-devel, liblockfile-devel, libxml2-devel BuildRequires: GConf2-devel alsa-lib-devel gpm-devel liblockfile-devel libxml2-devel
BuildRequires: autoconf, automake, bzip2, cairo, texinfo, gzip BuildRequires: bzip2 cairo texinfo gzip
# Desktop integration %if 0%{?el6}
BuildRequires: desktop-file-utils BuildRequires: gtk2-devel
# Buildrequire both python2 and python3 since below we turn off the %else
# brp-python-bytecompile script # Buildrequire both python2 and python3 on systems containing both,
BuildRequires: python2-devel python3-devel # since below we turn off the brp-python-bytecompile script
BuildRequires: gtk3-devel python2-devel python3-devel
%endif
%ifarch %{ix86} %ifarch %{ix86}
BuildRequires: util-linux BuildRequires: util-linux
%endif %endif
Requires: desktop-file-utils
# Emacs doesn't run without these fonts, rhbz#732422 # Emacs doesn't run without xorg-x11-fonts-misc, rhbz#732422
Requires: xorg-x11-fonts-misc Requires: desktop-file-utils xorg-x11-fonts-misc
Requires(preun): %{_sbindir}/alternatives Requires(preun): %{_sbindir}/alternatives
Requires(posttrans): %{_sbindir}/alternatives Requires(posttrans): %{_sbindir}/alternatives
Requires: emacs-common = %{epoch}:%{version}-%{release} Requires: emacs-common = %{epoch}:%{version}-%{release}
Provides: emacs(bin) = %{epoch}:%{version}-%{release} Provides: emacs(bin) = %{epoch}:%{version}-%{release}
%if 0%{!?el6:1}
# Turn off the brp-python-bytecompile script since this script doesn't # Turn off the brp-python-bytecompile script since this script doesn't
# properly dtect the correct python runtime for the files emacs2.py and # properly dtect the correct python runtime for the files emacs2.py and
# emacs3.py # emacs3.py
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%endif
%define paranoid 1 %define paranoid 1
%if 0%{?fedora} %if 0%{?fedora}
@ -101,6 +100,7 @@ on a terminal.
%package common %package common
Summary: Emacs common files Summary: Emacs common files
License: GPLv3+ and GFDL
Group: Applications/Editors Group: Applications/Editors
Requires(preun): /sbin/install-info Requires(preun): /sbin/install-info
Requires(preun): %{_sbindir}/alternatives Requires(preun): %{_sbindir}/alternatives
@ -158,8 +158,6 @@ packages that add functionality to Emacs.
%patch0 -p1 -b .glibc-open-macro %patch0 -p1 -b .glibc-open-macro
%patch7 -p1 -b .spellchecker %patch7 -p1 -b .spellchecker
%patch8 -p1 -b .locate-library %patch8 -p1 -b .locate-library
%patch9 -p1 -b .nogets
%patch10 -p1 -b .cve-2012-3479
# Install site-lisp files # Install site-lisp files
cp %SOURCE10 site-lisp cp %SOURCE10 site-lisp
@ -208,15 +206,18 @@ rm lisp/textmodes/ispell.el.spellchecker
export CFLAGS="-DMAIL_USE_LOCKF $RPM_OPT_FLAGS" export CFLAGS="-DMAIL_USE_LOCKF $RPM_OPT_FLAGS"
# We patch configure.in so we have to do this # Build GTK+ binary
autoconf
# Build GTK+3 binary
mkdir build-gtk && cd build-gtk mkdir build-gtk && cd build-gtk
ln -s ../configure . ln -s ../configure .
%if 0%{?el6}
%define toolkit gtk
%else
%define toolkit gtk3
%endif
%configure --with-dbus --with-gif --with-jpeg --with-png --with-rsvg \ %configure --with-dbus --with-gif --with-jpeg --with-png --with-rsvg \
--with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no \ --with-tiff --with-xft --with-xpm --with-x-toolkit=%{toolkit} --with-gpm=no \
--with-wide-int --with-wide-int
make bootstrap make bootstrap
%{setarch} make %{?_smp_mflags} %{setarch} make %{?_smp_mflags}
@ -324,9 +325,11 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
%SOURCE19 %SOURCE19
# Byte compile emacs*.py with correct python interpreters # Byte compile emacs*.py with correct python interpreters
%if 0%{!?el6:1}
%py_byte_compile %{__python} %{buildroot}%{_datadir}/%{name}/%{version}/etc/emacs.py %py_byte_compile %{__python} %{buildroot}%{_datadir}/%{name}/%{version}/etc/emacs.py
%py_byte_compile %{__python} %{buildroot}%{_datadir}/%{name}/%{version}/etc/emacs2.py %py_byte_compile %{__python} %{buildroot}%{_datadir}/%{name}/%{version}/etc/emacs2.py
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/%{name}/%{version}/etc/emacs3.py %py_byte_compile %{__python3} %{buildroot}%{_datadir}/%{name}/%{version}/etc/emacs3.py
%endif
# #
# Create file lists # Create file lists
@ -444,6 +447,14 @@ update-desktop-database &> /dev/null || :
%dir %{_datadir}/emacs/site-lisp/site-start.d %dir %{_datadir}/emacs/site-lisp/site-start.d
%changelog %changelog
* Thu Sep 13 2012 Karel Klíč <kklic@redhat.com> - 1:24.2-1
- Updated to the newest upstream release
- Switched from bz2 upstream package to xz
- Make the spec file usable on EL6
- Removed the nogets and CVE-2012-3479 patches, because the upstream
package fixes the associated issues
- Added GFDL license to emacs-common package
* Mon Aug 13 2012 Karel Klíč <kklic@redhat.com> - 1:24.1-6 * Mon Aug 13 2012 Karel Klíč <kklic@redhat.com> - 1:24.1-6
- Fix CVE-2012-3479: Evaluation of 'eval' forms in file-local variable - Fix CVE-2012-3479: Evaluation of 'eval' forms in file-local variable
sections, when 'enable-local-variables' set to ':safe' sections, when 'enable-local-variables' set to ':safe'

View File

@ -1 +1 @@
8ba0932c498bc8fb10d7ddba52227e5b emacs-24.1.tar.bz2 066f712b82f77c3c3c803e98bff2318b emacs-24.2.tar.xz