This commit is contained in:
parent
10e3021bce
commit
b4f4bc6014
39
emacs-21.3-x11r7.patch
Normal file
39
emacs-21.3-x11r7.patch
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
--- src/xrdb.c
|
||||||
|
+++ src/xrdb.c 2007-01-12 16:39:37.000000000 +0100
|
||||||
|
@@ -53,6 +53,9 @@ Boston, MA 02111-1307, USA. */
|
||||||
|
#include <X11/X.h>
|
||||||
|
#include <X11/Xutil.h>
|
||||||
|
#include <X11/Xresource.h>
|
||||||
|
+#ifdef USE_X_TOOLKIT
|
||||||
|
+#include <X11/Intrinsic.h>
|
||||||
|
+#endif
|
||||||
|
#ifdef VMS
|
||||||
|
#include "vms-pwd.h"
|
||||||
|
#else
|
||||||
|
@@ -604,6 +607,15 @@ x_load_resources (display, xrm_string, m
|
||||||
|
XrmPutLineResource (&rdb, line);
|
||||||
|
|
||||||
|
#endif /* not USE_MOTIF */
|
||||||
|
+#ifdef USE_X_TOOLKIT
|
||||||
|
+ if ((db = XtScreenDatabase(DefaultScreenOfDisplay (display))))
|
||||||
|
+ {
|
||||||
|
+ XrmCombineDatabase (rdb, &db, FALSE);
|
||||||
|
+ rdb = db;
|
||||||
|
+ }
|
||||||
|
+ else
|
||||||
|
+ {
|
||||||
|
+#endif /* not USE_X_TOOLKIT */
|
||||||
|
|
||||||
|
user_database = get_user_db (display);
|
||||||
|
|
||||||
|
@@ -646,6 +658,10 @@ x_load_resources (display, xrm_string, m
|
||||||
|
XrmMergeDatabases (db, &rdb);
|
||||||
|
}
|
||||||
|
|
||||||
|
+#ifdef USE_X_TOOLKIT
|
||||||
|
+ } /* (db != XtScreenDatabase()) */
|
||||||
|
+#endif /* not USE_X_TOOLKIT */
|
||||||
|
+
|
||||||
|
return rdb;
|
||||||
|
}
|
||||||
|
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 12 16:25:18 CET 2007 - werner@suse.de
|
||||||
|
|
||||||
|
- Make emacs find its app-default file (bug #234026)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Nov 11 08:54:09 CET 2006 - olh@suse.de
|
Sat Nov 11 08:54:09 CET 2006 - olh@suse.de
|
||||||
|
|
||||||
|
26
emacs.spec
26
emacs.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package emacs (Version 21.3)
|
# spec file for package emacs (Version 21.3)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# This file and all modifications and additions to the pristine
|
# This file and all modifications and additions to the pristine
|
||||||
# package are under the same license as the package itself.
|
# package are under the same license as the package itself.
|
||||||
#
|
#
|
||||||
@ -13,14 +13,14 @@
|
|||||||
Name: emacs
|
Name: emacs
|
||||||
BuildRequires: giflib-devel libpng-devel libtiff-devel update-desktop-files xaw3d xorg-x11-devel
|
BuildRequires: giflib-devel libpng-devel libtiff-devel update-desktop-files xaw3d xorg-x11-devel
|
||||||
URL: http://www.gnu.org/software/emacs/
|
URL: http://www.gnu.org/software/emacs/
|
||||||
License: GNU General Public License (GPL) - all versions
|
License: GNU General Public License (GPL)
|
||||||
Group: Productivity/Editors/Emacs
|
Group: Productivity/Editors/Emacs
|
||||||
Obsoletes: ge_exec ge_site emac_nox emacmisc emacsbin emacsger
|
Obsoletes: ge_exec ge_site emac_nox emacmisc emacsbin emacsger
|
||||||
Requires: emacs-info ctags emacs_program
|
Requires: emacs-info ctags emacs_program
|
||||||
Provides: ge_site ge_exec
|
Provides: ge_site ge_exec
|
||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
Version: 21.3
|
Version: 21.3
|
||||||
Release: 244
|
Release: 259
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Summary: GNU Emacs Base Package
|
Summary: GNU Emacs Base Package
|
||||||
Source: emacs-21.3.tar.bz2
|
Source: emacs-21.3.tar.bz2
|
||||||
@ -37,6 +37,7 @@ Patch6: emacs-21.3-asian-dired.patch
|
|||||||
Patch7: emacs-21.1-asian-print.patch
|
Patch7: emacs-21.1-asian-print.patch
|
||||||
Patch8: emacs-21.1-ps-bdf.patch
|
Patch8: emacs-21.1-ps-bdf.patch
|
||||||
Patch9: emacs-21.3-config.dif
|
Patch9: emacs-21.3-config.dif
|
||||||
|
Patch10: emacs-21.3-x11r7.patch
|
||||||
Patch11: emacs-21.2-x86_64.patch
|
Patch11: emacs-21.2-x86_64.patch
|
||||||
Patch12: emacs-21.3-ppc64.patch
|
Patch12: emacs-21.3-ppc64.patch
|
||||||
Patch13: emacs-21.3-term.patch
|
Patch13: emacs-21.3-term.patch
|
||||||
@ -49,9 +50,17 @@ Patch19: emacs-21.3-sentinel.patch
|
|||||||
Patch20: emacs-21.3-xim.patch
|
Patch20: emacs-21.3-xim.patch
|
||||||
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
|
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
|
||||||
%if "%_exec_prefix" == "/usr/X11R6"
|
%if "%_exec_prefix" == "/usr/X11R6"
|
||||||
%define appDefaultsFile %{_exec_prefix}/lib/X11/app-defaults/Emacs
|
%define _x11lib %{_exec_prefix}/%{_lib}
|
||||||
|
%define _x11data %{_exec_prefix}/lib/X11
|
||||||
|
%define _libx11 %{_x11data}
|
||||||
|
%define _x11inc %{_x11_prefix}/include
|
||||||
|
%define appDefaultsFile %{_x11data}/app-defaults/Emacs
|
||||||
%else
|
%else
|
||||||
%define appDefaultsFile %{_datadir}/X11/app-defaults/Emacs
|
%define _x11lib %{_libdir}
|
||||||
|
%define _x11data %{_datadir}/X11
|
||||||
|
%define _libx11 %{_exec_prefix}/lib/X11
|
||||||
|
%define _x11inc %{_includedir}
|
||||||
|
%define appDefaultsFile %{_x11data}/app-defaults/Emacs
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -200,6 +209,7 @@ Authors:
|
|||||||
%patch7 -p0 -b .print
|
%patch7 -p0 -b .print
|
||||||
%patch8 -p0 -b .psbdf
|
%patch8 -p0 -b .psbdf
|
||||||
%patch9 -p0 -b .conf
|
%patch9 -p0 -b .conf
|
||||||
|
%patch10 -p0 -b .x11r7
|
||||||
%patch11 -p0 -b .hammer
|
%patch11 -p0 -b .hammer
|
||||||
%patch13 -p0 -b .term
|
%patch13 -p0 -b .term
|
||||||
%patch14 -p0 -b .mule
|
%patch14 -p0 -b .mule
|
||||||
@ -235,8 +245,8 @@ export CC CFLAGS LC_CTYPE LDFLAGS
|
|||||||
--with-gif \
|
--with-gif \
|
||||||
--with-png \
|
--with-png \
|
||||||
--with-x-toolkit=lucid \
|
--with-x-toolkit=lucid \
|
||||||
--x-includes=/usr/X11R6/include \
|
--x-includes=%{_x11inc} \
|
||||||
--x-libraries=/usr/X11R6/%{_lib} \
|
--x-libraries=%{_x11lib}:%{_x11data} \
|
||||||
"
|
"
|
||||||
NOX11="--with-x=no \
|
NOX11="--with-x=no \
|
||||||
"
|
"
|
||||||
@ -2388,6 +2398,8 @@ done
|
|||||||
/usr/share/emacs/%{version}/lisp/xt-mouse.el
|
/usr/share/emacs/%{version}/lisp/xt-mouse.el
|
||||||
|
|
||||||
%changelog -n emacs
|
%changelog -n emacs
|
||||||
|
* Fri Jan 12 2007 - werner@suse.de
|
||||||
|
- Make emacs find its app-default file (bug #234026)
|
||||||
* Sat Nov 11 2006 - olh@suse.de
|
* Sat Nov 11 2006 - olh@suse.de
|
||||||
- remove ppc/ppc64 ld.scripts
|
- remove ppc/ppc64 ld.scripts
|
||||||
fix elf handling on powerpc64
|
fix elf handling on powerpc64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user