File xemacs.spec of Package xemacs

#
# spec file for package xemacs (Version 21.5.28.20080401)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           xemacs
BuildRequires:  canna-devel compface db-devel fwnndev gcc-c++ gdbm-devel gpm krb5 libpng-devel libtiff-devel ncurses-devel openldap2-devel texinfo update-desktop-files xorg-x11 xorg-x11-devel
%if %suse_version > 1020
BuildRequires:  xaw3d-devel
%else
BuildRequires:  xaw3d
%endif
%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
Url:            http://www.xemacs.org
License:        GPL v2 or later
Group:          Productivity/Editors/Emacs
Obsoletes:      xe_exec
PreReq:         permissions
Requires:       xemacs-info xemacs-packages ctags
Conflicts:      gnuserv
AutoReqProv:    on
Version:        21.5.28.20080401
Release:        58.<RELEASE17>
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.
# 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
Source1:        xe-list.el
Source2:        fix-load-history.el
Source3:        xemacs.desktop
Source4:        xemacs.png
Source5:        suse-xft-init.el
Source6:        site-start.el
Source7:        skel.init.el
Patch0:         xemacs.patch
# keep in sync with the similar patch to the app-defaults in the main xemacs-packages package:
Patch3:         xemacs-21.4.8-app-defaults.patch
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
Patch40:        cast-pointer-integer-different-size.patch
Patch41:        bugzilla-294746-set-language-unicode-precedence-list-at-startup.patch
Patch42:        build-fix-ccl-load-problem.patch
Patch43:        set-language-unicode-precedence-list.patch
Patch45:        fix-defface-custom-modified-face.patch
Patch47:        xaw3d-config.patch
Patch48:        fix-window-configuration-problem.patch
Patch49:        xemacs-configure.patch
Patch53:        xemacs-21.5.29-large-images.patch
Patch292811:    bugzilla-292811-make-x-make-font-bold-italic-xft-work.patch
Patch301352:    bugzilla-301352-fix-wrong-incrementing-in-macros.patch
Patch432404:    bnc432404-bytecomp.diff
Patch450838:    bnc450838-make-generic-print-buffer-work.patch

%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
License:        GPL v2 or later
Obsoletes:      xe_lisp
Requires:       xemacs xemacs-packages-el
Summary:        Emacs-Lisp source files for XEmacs
Group:          Productivity/Editors/Emacs
AutoReqProv:    on

%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
License:        GPL v2 or later
Obsoletes:      xe_info
Requires:       xemacs-packages-info
Summary:        Info Files for XEmacs
Group:          Productivity/Editors/Emacs
AutoReqProv:    on

%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
%ifarch ppc64
%global enable_pdump 1
%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}
%patch3 -p0 -b .appdef
#%patch5 -p1 -b .fontmenu # appears to be not needed anymore
%patch13 -p1
%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
%patch40 -p1
%patch41 -p1
#%patch42 -p1
%patch43 -p1
%patch45 -p0
%patch47
%patch48 -p1
%patch49
%patch53 -p0
%patch292811 -p1
%patch301352 -p1
%patch432404 -p1
%patch450838 -p1
%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
# 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. 
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
%if ! %enable_xfs
         --with-xft=emacs,menubars,tabs,gauges \
%endif
"
#
# 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
#
#  --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 \
%endif
"
#
# 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
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
install -m 0644 $RPM_SOURCE_DIR/site-start.el $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/
install -m 0644 $RPM_SOURCE_DIR/suse-xft-init.el $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/
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
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
#
# replace buildroot in comments in .elc files by spaces with the same total length:
RPM_BUILD_ROOT_REPLACEMENT=$(echo "$RPM_BUILD_ROOT" | tr '[:print:]' ' ')
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
#
# 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
#
( 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
##
# 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/

%post
%run_permissions
%verifyscript
%if %suse_version > 920
%verify_permissions -e %{xbindir}/xemacs -e /var/lib/xemacs/lock
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files -f xe-list-el-without-elc_xe-list-elc-without-el_xe-list-elc-with-el
%defattr(-,root,root)
%dir /etc/skel/.xemacs
/etc/skel/.xemacs/init.el
/usr/share/applications/xemacs.desktop
%if %suse_version > 920
/usr/share/pixmaps/xemacs.png
%endif
%{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/

%changelog