SHA256
1
0
forked from pool/xemacs
2009-12-04 17:43:38 +00:00
committed by Git OBS Bridge
parent fc073d192c
commit baa426bbe1
10 changed files with 247 additions and 173 deletions

View File

@@ -30,6 +30,8 @@ BuildRequires: canna-devel compface db-devel fdupes fwnndev gcc-c++ gdbm-devel
%define xincludes /usr/X11R6/include
%define xlibraries /usr/X11R6/%{_lib}
%endif
%define _id b604d235f028
%define _hg beta-%{_id}
Url: http://www.xemacs.org
License: GPL v2 or later
Group: Productivity/Editors/Emacs
@@ -37,31 +39,17 @@ PreReq: permissions
Requires: xemacs-info xemacs-packages ctags
Conflicts: gnuserv
AutoReqProv: on
Version: 21.5.29
Version: 21.5.b604d235f028
Release: 4
Summary: XEmacs
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# Howto get the cvs tree of XEmacs:
# ==============================================
# cvs -d :pserver:cvs@cvs.xemacs.org:/pack/xemacscvs login
# Password = cvs
# cvs -z3 -d :pserver:cvs@cvs.xemacs.org:/pack/xemacscvs checkout xemacs
# Now check what tags are available:
# cd packages
# cvs status -v ChangeLog
# And update to the latest xemacs tag:
# cvs update -r r21-5-16
# cd ..
# Now make a tar.bz2 file from the contents of the "packages" directory:
# tar jcvf xemacs-<version>.tar.bz2 xemacs-<version>/
#
# XEmacs moved to Mercurial instad of CVS.
# Howto get the Mercurial tree of XEmacs:
# See: http://xemacs.digimirror.nl/Develop/hgaccess.html
# hg clone http://hg.debian.org/hg/xemacs/xemacs-beta
#
# delete the .hg directory before creating the tarball in order
# not to make the source rpm huge.
Source0: ftp://ftp.xemacs.org/xemacs-21.5/xemacs-%{version}.tar.bz2
Source0: ftp://ftp.xemacs.org/xemacs-21.5/xemacs-%{_hg}.tar.bz2
Source1: xe-list.el
Source2: fix-load-history.el
Source3: xemacs.desktop
@@ -94,9 +82,11 @@ Patch45: fix-defface-custom-modified-face.patch
Patch50: menus-always-utf8.patch
Patch51: bnc502716-fontmenu.patch
Patch52: bnc502716-xft.patch
Patch53: xemacs-21.5.29-large-images.patch
Patch54: bnc558764_avoid-xft-if-absent.patch
Patch55: changeset-dec62ca5a899.patch
Patch292811: bugzilla-292811-make-x-make-font-bold-italic-xft-work.patch
Patch301352: bugzilla-301352-fix-wrong-incrementing-in-macros.patch
%define _default_patch_fuzz 2
%description
This is the current version of XEmacs, formerly known as Lucid-Emacs.
@@ -160,33 +150,24 @@ Authors:
and many other contributors
%prep
# Currently XEmacs is not fully usable for Xfreetype support
# therefore we use XFontSet support:
%{!?enable_xfs:%global enable_xfs 1}
%ifarch ia64
%global enable_pdump 0
%else
%global enable_pdump 0
%endif
%global enable_dump_in_exec 0
# Currently XEmacs is not fully usable for Xfreetype support
# therefore we use XFontSet support:
%if %{?_project:1}%{!?_project:0}
%{!?enable_xfs:%global enable_xfs %(echo '%_project'|grep -cE '(SUSE:)?(openSUSE|SLE|Factory)')}
echo Project='%_project'
%else
%if %{?distribution:1}%{!?distribution:0}
%{!?enable_xfs:%global enable_xfs %(echo '%distribution'|grep -cE 'SUSE[:[:blank:]](openSUSE|SLE|Linux|Factory)')}
echo Distribution='%distribution'
%endif
%endif
%{!?enable_xfs:%global enable_xfs 1}
%if ! %enable_xfs
echo Use xft, requires X11, Xft, Xrender, freetype, and fontconfig support.
%else
echo Use xfs, that is XFontSet support for internationalized menubar.
%endif
%setup -q -n xemacs-%{version}
%setup -q -n xemacs-%{_hg}
%patch3 -p1
#%patch5 -p1 -b .fontmenu # appears to be not needed anymore
%patch13 -p1
#%patch13 -p1
%patch14 -p1
%patch18 -p0 -b .xevent
%patch19 -p1 -b .ppc
@@ -212,7 +193,8 @@ echo Use xfs, that is XFontSet support for internationalized menubar.
%patch51 -p0
%patch52 -p0
%endif
%patch53 -p0
%patch54 -p0
%patch55 -p0
%patch292811 -p1
%patch301352 -p1
%patch0 -p1
@@ -292,7 +274,7 @@ PREFIX="--prefix=/usr \
# when using "--rel-alloc, XEmacs 21.5.18 crashes often when using
# 'compile-goto-error'.
# --rel-alloc \
SPECIAL="--enable-database=gdbm,berkdb \
SPECIAL="--enable-database=berkdb,gdbm \
--with-ncurses \
--with-canna \
--with-tty=yes \
@@ -335,10 +317,10 @@ X11="--with-xpm \
--with-png \
--with-x \
--with-athena=3d \
--enable--menubars=lucid \
--enable-scrollbars=lucid \
--enable-dialogs=athena \
--enable-widgets=athena \
--with-menubars=lucid \
--with-scrollbars=lucid \
--with-dialogs=athena \
--with-widgets=athena \
--x-includes=%{xincludes} \
--x-libraries=%{xlibraries} \
"
@@ -354,18 +336,20 @@ MAIL="--enable-clash-detection \
#
# Mule
#
MULE="--enable-mule \
--with-xim=xlib \
# --with-xfs Compile with XFontSet support for bilingual menubar.
# * --with-xfs Compile with XFontSet support for bilingual menubar.
# Can't use this option with --with-xim=motif or xlib.
# And should have --with-menubars=lucid.
#
# (this is necessary to get German, French, Japanese
# and Romanian texts in the menus. It DOES work with
# --with-xim=xlib, the above comment from './configure --help'
# seems to be incorrect in that respect.)
#
MULE="--enable-mule \
--with-xim=xlib \
%if %enable_xfs
--with-xfs \
%else
--with-xft \
%endif
"
#