2007-01-16 00:42:08 +01:00
|
|
|
#
|
2009-06-17 15:52:36 +02:00
|
|
|
# spec file for package xemacs (Version 21.5.29)
|
2007-01-16 00:42:08 +01:00
|
|
|
#
|
2009-01-21 02:40:35 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:42:08 +01:00
|
|
|
#
|
2008-08-21 19:00:28 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:42:08 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-03-12 20:11:04 +01:00
|
|
|
|
2007-01-16 00:42:08 +01:00
|
|
|
|
|
|
|
Name: xemacs
|
2009-06-17 15:52:36 +02:00
|
|
|
BuildRequires: canna-devel compface db-devel fdupes fwnndev gcc-c++ gdbm-devel gpm krb5 libpng-devel libtiff-devel ncurses-devel openldap2-devel texinfo update-desktop-files xaw3d-devel xorg-x11 xorg-x11-devel
|
2007-01-16 00:42:08 +01:00
|
|
|
%if "%(xft-config --prefix)" == "/usr"
|
|
|
|
%define appdefdir /usr/share/X11
|
|
|
|
%define xbindir /usr/bin
|
|
|
|
%define xincludes /usr/include
|
|
|
|
%define xlibraries /usr/%{_lib}
|
|
|
|
%else
|
|
|
|
%define appdefdir /usr/X11R6/lib/X11
|
|
|
|
%define xbindir /usr/X11R6/bin
|
|
|
|
%define xincludes /usr/X11R6/include
|
|
|
|
%define xlibraries /usr/X11R6/%{_lib}
|
|
|
|
%endif
|
2007-12-06 01:44:02 +01:00
|
|
|
Url: http://www.xemacs.org
|
2007-07-05 19:10:57 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:42:08 +01:00
|
|
|
Group: Productivity/Editors/Emacs
|
2007-12-06 01:44:02 +01:00
|
|
|
PreReq: permissions
|
2007-01-16 00:42:08 +01:00
|
|
|
Requires: xemacs-info xemacs-packages ctags
|
2007-07-13 19:26:49 +02:00
|
|
|
Conflicts: gnuserv
|
2007-12-06 01:44:02 +01:00
|
|
|
AutoReqProv: on
|
2009-06-17 15:52:36 +02:00
|
|
|
Version: 21.5.29
|
2009-07-16 17:17:11 +02:00
|
|
|
Release: 3
|
2007-01-16 00:42:08 +01:00
|
|
|
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>/
|
2008-04-02 21:23:13 +02:00
|
|
|
#
|
|
|
|
# XEmacs moved to Mercurial instad of CVS.
|
|
|
|
# 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.
|
2007-07-30 18:55:40 +02:00
|
|
|
Source0: ftp://ftp.xemacs.org/xemacs-21.5/xemacs-%{version}.tar.bz2
|
2007-01-16 00:42:08 +01:00
|
|
|
Source1: xe-list.el
|
|
|
|
Source2: fix-load-history.el
|
2007-07-05 19:10:57 +02:00
|
|
|
Source3: xemacs.desktop
|
|
|
|
Source4: xemacs.png
|
2007-07-13 22:25:30 +02:00
|
|
|
Source5: suse-xft-init.el
|
2007-08-02 23:43:12 +02:00
|
|
|
Source6: site-start.el
|
2007-12-14 17:21:46 +01:00
|
|
|
Source7: skel.init.el
|
2007-01-16 00:42:08 +01:00
|
|
|
Patch0: xemacs.patch
|
|
|
|
# keep in sync with the similar patch to the app-defaults in the main xemacs-packages package:
|
2009-03-24 20:47:02 +01:00
|
|
|
Patch3: xemacs-app-defaults.patch
|
2007-01-16 00:42:08 +01:00
|
|
|
Patch5: xemacs-21.4.4-font-menu.patch
|
|
|
|
Patch13: xemacs-ia64.dif
|
|
|
|
Patch14: ndbm.patch
|
|
|
|
Patch18: xemacs-21.4.8-xevent.patch
|
|
|
|
Patch19: xemacs-21.4.13-ppc.patch
|
|
|
|
Patch20: xemacs-21.4.13-ppc64.patch
|
|
|
|
Patch22: destdir.patch
|
|
|
|
Patch23: xemacs-ptmx.dif
|
|
|
|
Patch25: gnomebug.patch
|
|
|
|
Patch27: xemacs-level3.patch
|
|
|
|
Patch28: xemacs-21.5.18-movemail.patch
|
|
|
|
Patch32: do-not-create-backups-in-temp-directories.patch
|
|
|
|
Patch33: set-locale-to-c-when-not-supported-by-x.patch
|
|
|
|
Patch34: suppress-warning-about-undefined-unicode-key-mappings.patch
|
|
|
|
Patch38: unitialized-variables.patch
|
2007-07-30 18:55:40 +02:00
|
|
|
Patch41: bugzilla-294746-set-language-unicode-precedence-list-at-startup.patch
|
2007-08-02 23:43:12 +02:00
|
|
|
Patch42: build-fix-ccl-load-problem.patch
|
|
|
|
Patch43: set-language-unicode-precedence-list.patch
|
2007-08-03 23:22:17 +02:00
|
|
|
Patch45: fix-defface-custom-modified-face.patch
|
2009-03-24 20:47:02 +01:00
|
|
|
Patch50: menus-always-utf8.patch
|
2009-06-29 17:22:26 +02:00
|
|
|
Patch51: bnc502716-fontmenu.patch
|
|
|
|
Patch52: bnc502716-xft.patch
|
2007-07-18 22:45:05 +02:00
|
|
|
Patch292811: bugzilla-292811-make-x-make-font-bold-italic-xft-work.patch
|
2007-08-24 02:11:34 +02:00
|
|
|
Patch301352: bugzilla-301352-fix-wrong-incrementing-in-macros.patch
|
2007-01-16 00:42:08 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is the current version of XEmacs, formerly known as Lucid-Emacs.
|
|
|
|
It is related to other versions of Emacs, in particular GNU Emacs. Its
|
|
|
|
emphasis is on modern graphical user interface support and an open
|
|
|
|
software development model, similar to Linux.
|
|
|
|
|
|
|
|
Lisp macros are not necessarily interchangeable between GNU-Emacs and
|
|
|
|
XEmacs. This is mainly important for translated .elc files and the key
|
|
|
|
macros.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Chuck Thompson <cthomp@cs.uiuc.edu>
|
|
|
|
|
|
|
|
Ben Wing <wing@666.com>
|
|
|
|
|
|
|
|
and many other contributors
|
|
|
|
|
|
|
|
%package -n xemacs-el
|
2008-04-02 21:23:13 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:42:08 +01:00
|
|
|
Requires: xemacs xemacs-packages-el
|
|
|
|
Summary: Emacs-Lisp source files for XEmacs
|
|
|
|
Group: Productivity/Editors/Emacs
|
2007-12-06 01:44:02 +01:00
|
|
|
AutoReqProv: on
|
2007-01-16 00:42:08 +01:00
|
|
|
|
|
|
|
%description -n xemacs-el
|
|
|
|
Most Emacs-Lisp source files are not needed for running XEmacs. Most of
|
|
|
|
them are also available in byte compiled form and therefore not
|
|
|
|
necessary at runtime. The true XEmacs addict will install them
|
|
|
|
nevertheless because it is often useful and enlightening to have a look
|
|
|
|
at the Lisp sources.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Chuck Thompson <cthomp@cs.uiuc.edu>
|
|
|
|
Ben Wing <wing@666.com>
|
|
|
|
and many other contributors
|
|
|
|
|
|
|
|
%package -n xemacs-info
|
2008-04-02 21:23:13 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:42:08 +01:00
|
|
|
Requires: xemacs-packages-info
|
|
|
|
Summary: Info Files for XEmacs
|
|
|
|
Group: Productivity/Editors/Emacs
|
2007-12-06 01:44:02 +01:00
|
|
|
AutoReqProv: on
|
2007-01-16 00:42:08 +01:00
|
|
|
|
|
|
|
%description -n xemacs-info
|
|
|
|
This package contains all info files for XEmacs. All these files can be
|
|
|
|
read online with XEmacs and describe XEmacs and some of its modes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Chuck Thompson <cthomp@cs.uiuc.edu>
|
|
|
|
Ben Wing <wing@666.com>
|
|
|
|
and many other contributors
|
|
|
|
|
|
|
|
%prep
|
2009-06-29 17:22:26 +02:00
|
|
|
%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
|
2009-07-16 17:17:11 +02:00
|
|
|
%{!?enable_xfs:%global enable_xfs 1}
|
2009-06-29 17:22:26 +02:00
|
|
|
%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
|
2007-01-16 00:42:08 +01:00
|
|
|
%setup -q -n xemacs-%{version}
|
2009-03-24 20:47:02 +01:00
|
|
|
%patch3 -p1
|
2007-01-16 00:42:08 +01:00
|
|
|
#%patch5 -p1 -b .fontmenu # appears to be not needed anymore
|
2007-05-08 20:11:02 +02:00
|
|
|
%patch13 -p1
|
2007-01-16 00:42:08 +01:00
|
|
|
%patch14 -p1
|
|
|
|
%patch18 -p0 -b .xevent
|
|
|
|
%patch19 -p1 -b .ppc
|
|
|
|
%patch20 -p1
|
|
|
|
%patch22 -p1
|
|
|
|
%patch23 -p1
|
|
|
|
#%patch24 -p1
|
|
|
|
#triggers #103040
|
|
|
|
#%patch25 -p1
|
|
|
|
%patch27 -p1 -b .lvl3
|
|
|
|
%patch28 -p1 -b .movemail
|
|
|
|
%patch32 -p1
|
|
|
|
%patch33 -p1
|
|
|
|
#%patch34 -p1
|
|
|
|
%patch38 -p1
|
2009-06-17 15:52:36 +02:00
|
|
|
#%patch40 -p1
|
2007-08-09 22:55:56 +02:00
|
|
|
#%patch42 -p1
|
2007-08-02 23:43:12 +02:00
|
|
|
%patch43 -p1
|
2007-08-03 23:22:17 +02:00
|
|
|
%patch45 -p0
|
2009-03-24 20:47:02 +01:00
|
|
|
%patch50 -p1
|
2009-06-29 17:22:26 +02:00
|
|
|
%if ! %enable_xfs
|
|
|
|
%patch51 -p0
|
|
|
|
%patch52 -p0
|
|
|
|
%endif
|
2007-07-18 22:45:05 +02:00
|
|
|
%patch292811 -p1
|
2007-08-24 02:11:34 +02:00
|
|
|
%patch301352 -p1
|
2007-01-16 00:42:08 +01:00
|
|
|
%patch0 -p1
|
|
|
|
find lisp/ etc/ -name '*.elc' | xargs -r rm -f
|
|
|
|
find . -name CVS -type d | xargs rm -rf
|
|
|
|
find . -name .cvsignore -type f | xargs rm -f
|
|
|
|
chmod -R u+w *
|
|
|
|
# Without making the timestamps equal here, some files will not be
|
|
|
|
# byte compiled:
|
|
|
|
find . | xargs touch -r .
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{?suse_update_config:%{suse_update_config -f}}
|
|
|
|
#libtoolize --force
|
|
|
|
#autoreconf --force --install --verbose
|
|
|
|
#rm configure
|
|
|
|
autoconf --force
|
|
|
|
## needed for detection of XFree86[tm]
|
|
|
|
#touch /etc/XF86Config
|
|
|
|
VERSION=%{version}
|
|
|
|
SHARE=/usr/share
|
|
|
|
LIB=/usr/lib
|
|
|
|
SYS=${RPM_ARCH}-suse-linux
|
|
|
|
%ifarch %ix86
|
|
|
|
# LOOP="-fprefetch-loop-arrays -funroll-loops"
|
|
|
|
%endif
|
|
|
|
INFO=${SHARE}/xemacs/info
|
|
|
|
LIBEXEC=${LIB}/xemacs/${VERSION}
|
|
|
|
ARCH=${LIBEXEC}/${SYS}
|
|
|
|
DATA=${SHARE}
|
|
|
|
LISP=${DATA}/xemacs/${VERSION}/lisp
|
|
|
|
ETC=${DATA}/xemacs/${VERSION}/etc
|
|
|
|
MOD=${ARCH}/modules
|
|
|
|
STATE=/var/lib/xemacs
|
|
|
|
MAN=/usr/share/man/man1
|
|
|
|
CFLAGS="${RPM_OPT_FLAGS} -Wall -Wno-switch -pipe ${LOOP} -fno-strict-aliasing -DLDAP_DEPRECATED "
|
|
|
|
%ifarch s390x
|
|
|
|
CFLAGS="$CFLAGS -O0"
|
|
|
|
%endif
|
2007-08-24 02:11:34 +02:00
|
|
|
# To to the menu translations, add:
|
|
|
|
# $CFLAGS="$CFLAGS -DPRINT_XLWMENU_RESOURCE_CONVERSIONS "
|
|
|
|
# this prints the Xresources used for the Menus to stdout
|
|
|
|
# when the Menus are used.
|
2007-01-16 00:42:08 +01:00
|
|
|
LDFLAGS=
|
|
|
|
export CFLAGS LDFLAGS
|
|
|
|
#
|
|
|
|
# Maybe there are emacs and xemacs on the
|
|
|
|
# same system, therefore put binaries into /usr/X11R6/bin
|
|
|
|
#
|
|
|
|
PREFIX="--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=%{xbindir} \
|
|
|
|
--datadir=${SHARE} \
|
|
|
|
--with-archlibdir=${ARCH} \
|
|
|
|
--with-docdir=${ARCH} \
|
|
|
|
--with-lispdir=${LISP} \
|
|
|
|
--with-etcdir=${ETC} \
|
|
|
|
--with-statedir=${STATE} \
|
|
|
|
--with-moduledir=${MOD} \
|
|
|
|
--infodir=${INFO} \
|
|
|
|
--mandir=${MAN} \
|
|
|
|
"
|
|
|
|
#
|
|
|
|
# --with-sound=both requires NAS (Network Audio System)
|
|
|
|
#
|
|
|
|
# --with-socks and --with-term needs some nonexisting libs
|
|
|
|
# (maybe included in {g}libc)
|
|
|
|
# --with-tooltalk needs tt_c.h
|
|
|
|
# --with-canna needs X11 canna support
|
|
|
|
# --with-wnn needs X11 wnn support
|
|
|
|
#
|
|
|
|
# We need site-lisp because the long time (x)emacs users
|
|
|
|
# expect something like this.
|
|
|
|
#
|
|
|
|
# --with-system-malloc only for libc.5.4.3x and higher
|
|
|
|
#
|
|
|
|
# when using "--rel-alloc, XEmacs 21.5.18 crashes often when using
|
|
|
|
# 'compile-goto-error'.
|
|
|
|
# --rel-alloc \
|
|
|
|
SPECIAL="--enable-database=gdbm,berkdb \
|
|
|
|
--with-ncurses \
|
|
|
|
--with-canna \
|
|
|
|
--with-tty=yes \
|
|
|
|
--with-site-lisp \
|
|
|
|
%ifarch ia64 ppc ppc64 s390x s390 %ix86
|
|
|
|
--disable-mc-alloc \
|
|
|
|
--disable-kkcc \
|
|
|
|
--disable-newgc \
|
|
|
|
%else
|
|
|
|
--with-mc-alloc \
|
|
|
|
--with-kkcc \
|
|
|
|
--with-newgc \
|
|
|
|
%endif
|
|
|
|
%ifnarch s390
|
|
|
|
--enable-sound=native \
|
|
|
|
--with-gpm \
|
|
|
|
%endif
|
|
|
|
%if %enable_pdump
|
|
|
|
--enable-pdump \
|
|
|
|
%if %enable_dump_in_exec
|
|
|
|
--enable-dump-in-exec \
|
|
|
|
%else
|
|
|
|
--disable-dump-in-exec \
|
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
--enable-pdump=no \
|
|
|
|
%endif
|
2009-06-29 17:22:26 +02:00
|
|
|
%if ! %enable_xfs
|
2009-03-24 20:47:02 +01:00
|
|
|
--with-xft=emacs,menubars,tabs,gauges \
|
2007-07-13 22:25:30 +02:00
|
|
|
%endif
|
2007-01-16 00:42:08 +01:00
|
|
|
"
|
|
|
|
#
|
|
|
|
# Graphics and X window system
|
|
|
|
# * --with-cde needs Motif
|
|
|
|
#
|
|
|
|
X11="--with-xpm \
|
|
|
|
--with-gif \
|
|
|
|
--with-tiff \
|
|
|
|
--with-jpeg \
|
|
|
|
--with-png \
|
|
|
|
--with-x \
|
|
|
|
--with-athena=3d \
|
|
|
|
--enable--menubars=lucid \
|
|
|
|
--enable-scrollbars=lucid \
|
|
|
|
--enable-dialogs=athena \
|
|
|
|
--enable-widgets=athena \
|
|
|
|
--x-includes=%{xincludes} \
|
|
|
|
--x-libraries=%{xlibraries} \
|
|
|
|
"
|
|
|
|
#
|
|
|
|
# Mail
|
|
|
|
# * --mail-locking should be self detected
|
|
|
|
# * --with-xface requires compface library
|
|
|
|
#
|
|
|
|
MAIL="--enable-clash-detection \
|
|
|
|
--with-ldap \
|
|
|
|
--with-pop
|
|
|
|
"
|
|
|
|
#
|
|
|
|
# Mule
|
|
|
|
#
|
2009-03-24 20:47:02 +01:00
|
|
|
MULE="--enable-mule \
|
|
|
|
--with-xim=xlib \
|
2007-01-16 00:42:08 +01:00
|
|
|
# --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.)
|
2009-06-29 17:22:26 +02:00
|
|
|
%if %enable_xfs
|
2007-01-16 00:42:08 +01:00
|
|
|
--with-xfs \
|
2009-03-24 20:47:02 +01:00
|
|
|
%endif
|
2007-01-16 00:42:08 +01:00
|
|
|
"
|
|
|
|
#
|
|
|
|
# Compilation
|
|
|
|
#
|
|
|
|
COMP="--with-gcc \
|
|
|
|
--with-dynamic \
|
|
|
|
--with-debug \
|
|
|
|
--enable-error-checking=none \
|
|
|
|
--with-cflags=\"${CFLAGS}\" \
|
|
|
|
--with-ldflags=\"${LDFLAGS}\" \
|
|
|
|
"
|
|
|
|
eval ./configure $SYS $COMP $PREFIX $SPECIAL $X11 $MULE $MAIL
|
|
|
|
make %{?jobs:-j %jobs}
|
|
|
|
|
|
|
|
%install
|
|
|
|
set +o posix
|
|
|
|
#
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/xemacs/site-lisp/lisp
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/term
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xemacs/lock
|
|
|
|
chmod 1777 $RPM_BUILD_ROOT/var/lib/xemacs/lock
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
mv $RPM_BUILD_ROOT%{xbindir}/xemacs-21.?-??? $RPM_BUILD_ROOT%{xbindir}/xemacs
|
|
|
|
# fix up the load-history to make it possible to use find-function
|
|
|
|
# on functions which are in dumped lisp files, even if XEmacs was not
|
|
|
|
# dumped at the place where it is finally running.
|
|
|
|
#
|
|
|
|
# Suggested by Jeff Mincy <jeff@delphioutpost.com>, see:
|
|
|
|
#
|
|
|
|
# http://list-archive.xemacs.org/xemacs-design/200204/msg00365.html
|
|
|
|
#
|
|
|
|
# Test whether this works by evaluating (find-function 'next-line)
|
|
|
|
#
|
|
|
|
install -m 644 $RPM_SOURCE_DIR/fix-load-history.el \
|
|
|
|
$RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/xemacs/%{version}/src/
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/xemacs/%{version}/lib-src/
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/xemacs/%{version}/Installation
|
|
|
|
######################################################################
|
|
|
|
test -L $RPM_BUILD_ROOT%{xbindir}/xemacs && \
|
|
|
|
rm $RPM_BUILD_ROOT%{xbindir}/xemacs
|
|
|
|
ver=%{version}
|
|
|
|
test -x $RPM_BUILD_ROOT%{xbindir}/xemacs-${ver%%.*}-b${ver##*.} && \
|
|
|
|
mv $RPM_BUILD_ROOT%{xbindir}/xemacs-${ver%%.*}-b${ver##*.} $RPM_BUILD_ROOT%{xbindir}/xemacs
|
|
|
|
chmod 1755 $RPM_BUILD_ROOT%{xbindir}/xemacs
|
2009-06-17 15:52:36 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT%{xbindir}/xemacs-script
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/xemacs/%{version}/etc/tests
|
2007-01-16 00:42:08 +01:00
|
|
|
for f in $RPM_BUILD_ROOT/usr/man/man1/*.1 \
|
|
|
|
$RPM_BUILD_ROOT/usr/share/man/man1/*.1 \
|
|
|
|
$RPM_BUILD_ROOT/usr/share/xemacs/info/*info* \
|
|
|
|
$RPM_BUILD_ROOT/usr/share/xemacs/%{version}/etc/*.1 \
|
|
|
|
$RPM_BUILD_ROOT/usr/share/xemacs/%{version}/etc/mule/*.1
|
|
|
|
do
|
|
|
|
test "${f##*.}" = "gz" && continue
|
|
|
|
test -e $f || continue
|
|
|
|
gzip -9f $f
|
|
|
|
done
|
|
|
|
find $RPM_BUILD_ROOT/usr/share/xemacs/%{version}/ -name '*.el.ediff' | xargs -r rm -f
|
|
|
|
find $RPM_BUILD_ROOT/usr/share/xemacs/%{version}/ -name '*.el.orig' | xargs -r rm -f
|
|
|
|
find $RPM_BUILD_ROOT/usr/share/xemacs/%{version}/ -name '*.el.vm' | xargs -r rm -f
|
|
|
|
# ctags and etags are part of the ctags package
|
|
|
|
# b2m and rcs-checkin are in the emacs package.
|
|
|
|
# As all binaries are in /usr/bin/ with X11R7, xemacs would conflict
|
|
|
|
# with emacs if xemacs packaged b2m and rcs-checkin as well.
|
|
|
|
# Therefore we remove them from the xemacs package here.
|
|
|
|
# They are rarely needed anyway.
|
|
|
|
rm -f $RPM_BUILD_ROOT%{xbindir}/ctags \
|
|
|
|
$RPM_BUILD_ROOT%{xbindir}/etags \
|
|
|
|
$RPM_BUILD_ROOT%{xbindir}/b2m \
|
|
|
|
$RPM_BUILD_ROOT%{xbindir}/rcs-checkin \
|
|
|
|
$RPM_BUILD_ROOT/usr/share/man/man1/ctags.1.gz \
|
|
|
|
$RPM_BUILD_ROOT/usr/share/man/man1/etags.1.gz \
|
|
|
|
$RPM_BUILD_ROOT/usr/share/xemacs/%{version}/etc/ctags.1.gz \
|
|
|
|
$RPM_BUILD_ROOT/usr/share/xemacs/%{version}/etc/etags.1.gz
|
|
|
|
# Some .elc's are not needed:
|
|
|
|
find $RPM_BUILD_ROOT/usr/share/xemacs/ -name '_pkg.elc' | xargs -r rm -f
|
|
|
|
find $RPM_BUILD_ROOT/usr/share/xemacs/ -name 'auto-autoloads.el?' | xargs -r rm -f
|
|
|
|
find $RPM_BUILD_ROOT/usr/lib/xemacs/ -name 'auto-autoloads.el?' | xargs -r rm -f
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/xemacs/%{version}/lisp/default.elc
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/xemacs/%{version}/lisp/vm/vm.elc
|
|
|
|
#if test -e /usr/share/xemacs/%{version}/lisp/xpm-button.el -a \
|
|
|
|
# -e /usr/share/xemacs/%{version}/lisp/xemacs-base/xpm-button.el
|
|
|
|
#then
|
|
|
|
# rm -f /usr/share/xemacs/%{version}/lisp/xpm-button.el
|
|
|
|
# rm -f /usr/share/xemacs/%{version}/lisp/xpm-button.elc
|
|
|
|
#fi
|
|
|
|
# no .origs
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/xemacs/info/xemacs-faq.info.orig*
|
|
|
|
#
|
|
|
|
# Make TUTORIAL's visible
|
|
|
|
for t in $RPM_BUILD_ROOT/usr/share/xemacs/%{version}/etc/mule/TUTORIAL.* ; do
|
|
|
|
test -e $t || break
|
|
|
|
test -e $RPM_BUILD_ROOT/usr/share/xemacs/%{version}/etc/${t##*/} && rm -f $t
|
|
|
|
test -e $t && mv $t $RPM_BUILD_ROOT/usr/share/xemacs/%{version}/etc/${t##*/}
|
|
|
|
done
|
|
|
|
# install the standard app-defaults file used for all languages
|
|
|
|
# which don't have their own app-defaults file above:
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{appdefdir}/app-defaults/
|
|
|
|
install -m 644 etc/Emacs.ad $RPM_BUILD_ROOT%{appdefdir}/app-defaults/XEmacs
|
|
|
|
# SuSE extension
|
2007-08-02 23:43:12 +02:00
|
|
|
install -m 0644 $RPM_SOURCE_DIR/site-start.el $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/
|
2007-07-13 22:25:30 +02:00
|
|
|
install -m 0644 $RPM_SOURCE_DIR/suse-xft-init.el $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/
|
2007-01-16 00:42:08 +01:00
|
|
|
install -m 0644 site-packages/lisp/term/func-keys.el $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/term/
|
|
|
|
install -m 0644 site-packages/lisp/term/linux.el $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/term/
|
|
|
|
install -m 0644 site-packages/lisp/term/xterm.el $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/term/
|
|
|
|
install -m 0644 site-packages/lisp/term/gnome.el $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/term/
|
|
|
|
install -m 0644 site-packages/lisp/term/kvt.el $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/term/
|
|
|
|
./src/xemacs -batch -no-site-file -vanilla -f batch-byte-compile $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/term/*.el
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/xemacs
|
|
|
|
install -m 0644 suse/README.SuSE $RPM_BUILD_ROOT/%{_docdir}/xemacs/README.SuSE
|
|
|
|
ln -sf /usr/share/xemacs/%{version}/etc $RPM_BUILD_ROOT/%{_docdir}/xemacs/etc
|
2007-12-14 17:21:46 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/skel/.xemacs
|
|
|
|
install -m 0644 $RPM_SOURCE_DIR/skel.init.el $RPM_BUILD_ROOT/etc/skel/.xemacs/init.el
|
2009-06-17 15:52:36 +02:00
|
|
|
%fdupes $RPM_SOURCE_DIR/usr/share/xemacs
|
2007-01-16 00:42:08 +01:00
|
|
|
#
|
|
|
|
# replace buildroot in comments in .elc files by spaces with the same total length:
|
2007-05-08 20:11:02 +02:00
|
|
|
RPM_BUILD_ROOT_REPLACEMENT=$(echo "$RPM_BUILD_ROOT" | tr '[:print:]' ' ')
|
2007-01-16 00:42:08 +01:00
|
|
|
for i in $(find $RPM_BUILD_ROOT -name "*.elc")
|
|
|
|
do
|
|
|
|
perl -pi -e "s|(;;; from file )$RPM_BUILD_ROOT(/usr/share/xemacs/.*)|\1$RPM_BUILD_ROOT_REPLACEMENT\2|" $i
|
|
|
|
done
|
|
|
|
#
|
2007-08-28 19:24:43 +02:00
|
|
|
# gzip .el files: (doesn't completely work for me yet -> later)
|
|
|
|
#for i in $(find $RPM_BUILD_ROOT -name "*.el")
|
|
|
|
#do
|
|
|
|
# gzip --best $i
|
|
|
|
#done
|
|
|
|
#
|
2007-01-16 00:42:08 +01:00
|
|
|
( find $RPM_BUILD_ROOT \
|
|
|
|
\( \( \( -not -type d \) -a \( -not -type l \) \) -printf '%%p\n' \) -o \
|
|
|
|
\( -type d -printf '%%p/\n' \) -o \( -type l -printf '%%p\n' \) ; \
|
|
|
|
find $RPM_BUILD_ROOT/usr/share/xemacs/ $RPM_BUILD_ROOT/usr/lib/xemacs/ -type f -o -type l ) | \
|
|
|
|
grep -v "/usr/share/xemacs/%{version}/etc" | \
|
|
|
|
sort -t /| uniq | perl -p -e "s|$RPM_BUILD_ROOT||" > xe-list
|
|
|
|
./src/xemacs -batch -no-site-file -l $RPM_SOURCE_DIR/xe-list.el -f xe-list-generate-list-files
|
|
|
|
cat xe-list-el-without-elc xe-list-elc-without-el xe-list-elc-with-el \
|
|
|
|
>> xe-list-el-without-elc_xe-list-elc-without-el_xe-list-elc-with-el
|
|
|
|
##
|
|
|
|
# install desktop file
|
|
|
|
%suse_update_desktop_file -i xemacs TextEditor
|
|
|
|
##
|
2007-05-31 21:16:55 +02:00
|
|
|
# do no include header files because RPMLINT complains about header files in non-devel
|
|
|
|
# packages:
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/lib/xemacs/%{version}/*-suse-linux/include/
|
2007-01-16 00:42:08 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%run_permissions
|
|
|
|
%verifyscript
|
|
|
|
%verify_permissions -e %{xbindir}/xemacs -e /var/lib/xemacs/lock
|
|
|
|
|
|
|
|
%clean
|
2007-07-10 23:51:55 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-01-16 00:42:08 +01:00
|
|
|
|
|
|
|
%files -f xe-list-el-without-elc_xe-list-elc-without-el_xe-list-elc-with-el
|
|
|
|
%defattr(-,root,root)
|
2007-12-14 17:21:46 +01:00
|
|
|
%dir /etc/skel/.xemacs
|
2009-03-24 20:47:02 +01:00
|
|
|
%config /etc/skel/.xemacs/init.el
|
2007-01-16 00:42:08 +01:00
|
|
|
/usr/share/applications/xemacs.desktop
|
2007-07-10 23:51:55 +02:00
|
|
|
/usr/share/pixmaps/xemacs.png
|
2007-01-16 00:42:08 +01:00
|
|
|
%{xbindir}/ellcc
|
|
|
|
%{xbindir}/gnuattach
|
|
|
|
%{xbindir}/gnuclient
|
|
|
|
%{xbindir}/gnudoit
|
|
|
|
%{xbindir}/ootags
|
|
|
|
%verify(not mode) %{xbindir}/xemacs
|
|
|
|
%if %enable_pdump
|
|
|
|
%if !%{enable_dump_in_exec}
|
|
|
|
%{xbindir}/xemacs*.dmp
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%{appdefdir}/app-defaults/XEmacs
|
|
|
|
%dir /usr/lib/xemacs
|
|
|
|
%dir /usr/lib/xemacs/%{version}
|
|
|
|
%dir /usr/lib/xemacs/%{version}/*-suse-linux/
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/DOC
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/add-big-package.sh
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/config.values
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/cvtmail
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/digest-doc
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/fakemail
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/gnuserv
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/gzip-el.sh
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/hexl
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/make-docfile
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/mmencode
|
|
|
|
%dir /usr/lib/xemacs/%{version}/*-suse-linux/modules/
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/modules/*.ell
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/movemail
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/profile
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/rcs2log
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/sorted-doc
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/vcdiff
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/wakeup
|
|
|
|
/usr/lib/xemacs/%{version}/*-suse-linux/yow
|
|
|
|
%dir /usr/lib/xemacs/site-modules/
|
|
|
|
%dir %{_docdir}/xemacs/
|
|
|
|
%doc %{_docdir}/xemacs/README.SuSE
|
|
|
|
%{_docdir}/xemacs/etc
|
|
|
|
%doc /usr/share/man/man1/gnuattach.1.gz
|
|
|
|
%doc /usr/share/man/man1/gnuclient.1.gz
|
|
|
|
%doc /usr/share/man/man1/gnudoit.1.gz
|
|
|
|
%doc /usr/share/man/man1/gnuserv.1.gz
|
|
|
|
%doc /usr/share/man/man1/xemacs.1.gz
|
|
|
|
%dir /usr/share/xemacs/
|
|
|
|
%dir /usr/share/xemacs/%{version}/
|
|
|
|
%dir /usr/share/xemacs/%{version}/etc/
|
|
|
|
/usr/share/xemacs/%{version}/etc/*
|
|
|
|
%dir /usr/share/xemacs/%{version}/lisp/
|
|
|
|
%doc /usr/share/xemacs/%{version}/lisp/ChangeLog*
|
|
|
|
%doc /usr/share/xemacs/%{version}/lisp/README
|
|
|
|
%dir /usr/share/xemacs/%{version}/lisp/mule/
|
|
|
|
%doc /usr/share/xemacs/%{version}/lisp/mule/mule-locale.txt
|
|
|
|
%dir /usr/share/xemacs/%{version}/lisp/term
|
|
|
|
%doc /usr/share/xemacs/%{version}/lisp/term/README
|
|
|
|
%dir /usr/share/xemacs/site-packages/
|
|
|
|
%dir /usr/share/xemacs/site-packages/lisp/
|
|
|
|
%dir /usr/share/xemacs/site-packages/lisp/term/
|
|
|
|
%dir /usr/share/xemacs/site-lisp/
|
|
|
|
%dir /usr/share/xemacs/site-lisp/lisp/
|
|
|
|
%dir /var/lib/xemacs/
|
|
|
|
%dir %verify(not mode group) %attr(-,root,trusted) /var/lib/xemacs/lock/
|
|
|
|
|
|
|
|
%files -n xemacs-info
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir /usr/share/xemacs/
|
|
|
|
%dir /usr/share/xemacs/info/
|
|
|
|
%doc /usr/share/xemacs/info/*
|
|
|
|
|
|
|
|
%files -n xemacs-el -f xe-list-el-with-elc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir /usr/share/xemacs/
|
|
|
|
%dir /usr/share/xemacs/%{version}/lisp/
|
|
|
|
%dir /usr/share/xemacs/%{version}/lisp/mule/
|
|
|
|
%dir /usr/share/xemacs/%{version}/lisp/term/
|
|
|
|
%dir /usr/share/xemacs/site-packages/
|
|
|
|
%dir /usr/share/xemacs/site-packages/lisp/
|
|
|
|
%dir /usr/share/xemacs/site-packages/lisp/term/
|
|
|
|
|
2007-02-16 19:41:17 +01:00
|
|
|
%changelog
|