diff --git a/bugzilla-301352-fix-wrong-incrementing-in-macros.patch b/bugzilla-301352-fix-wrong-incrementing-in-macros.patch
index 7d40660..51046f7 100644
--- a/bugzilla-301352-fix-wrong-incrementing-in-macros.patch
+++ b/bugzilla-301352-fix-wrong-incrementing-in-macros.patch
@@ -6,8 +6,8 @@ Index: xemacs-21.5.29/src/mule-ccl.c
Lisp_Object map, content, attrib, value;
int point, size, fin_ic;
-- j = XCHAR_OR_INT (ccl_prog[ic++]); /* number of maps. */
-+ j = XCHAR_OR_INT (ccl_prog[ic]); ic++; /* number of maps. */
+- j = XCHAR_OR_FIXNUM (ccl_prog[ic++]); /* number of maps. */
++ j = XCHAR_OR_FIXNUM (ccl_prog[ic]); ic++; /* number of maps. */
fin_ic = ic + j;
op = reg[rrr];
if ((j > reg[RRR]) && (j >= 0))
@@ -15,8 +15,8 @@ Index: xemacs-21.5.29/src/mule-ccl.c
for (;i < j;i++)
{
size = XVECTOR (Vcode_conversion_map_vector)->size;
-- point = XCHAR_OR_INT (ccl_prog[ic++]);
-+ point = XCHAR_OR_INT (ccl_prog[ic]); ic++;
+- point = XCHAR_OR_FIXNUM (ccl_prog[ic++]);
++ point = XCHAR_OR_FIXNUM (ccl_prog[ic]); ic++;
if (point >= size) continue;
map =
XVECTOR (Vcode_conversion_map_vector)->contents[point];
@@ -24,8 +24,8 @@ Index: xemacs-21.5.29/src/mule-ccl.c
stack_idx_of_map_multiple = 0;
map_set_rest_length =
-- XCHAR_OR_INT (ccl_prog[ic++]); /* number of maps and separators. */
-+ XCHAR_OR_INT (ccl_prog[ic]); ic++; /* number of maps and separators. */
+- XCHAR_OR_FIXNUM (ccl_prog[ic++]); /* number of maps and separators. */
++ XCHAR_OR_FIXNUM (ccl_prog[ic]); ic++; /* number of maps and separators. */
fin_ic = ic + map_set_rest_length;
op = reg[rrr];
@@ -33,8 +33,8 @@ Index: xemacs-21.5.29/src/mule-ccl.c
{
Lisp_Object map, attrib, value, content;
int size, point;
-- j = XCHAR_OR_INT (ccl_prog[ic++]); /* map_id */
-+ j = XCHAR_OR_INT (ccl_prog[ic]); ic++; /* map_id */
+- j = XCHAR_OR_FIXNUM (ccl_prog[ic++]); /* map_id */
++ j = XCHAR_OR_FIXNUM (ccl_prog[ic]); ic++; /* map_id */
op = reg[rrr];
if (j >= XVECTOR (Vcode_conversion_map_vector)->size)
{
diff --git a/destdir.patch b/destdir.patch
deleted file mode 100644
index 2f84678..0000000
--- a/destdir.patch
+++ /dev/null
@@ -1,307 +0,0 @@
---- Makefile.in.in
-+++ Makefile.in.in 2012-03-02 00:00:00.000000000 +0000
-@@ -59,6 +59,8 @@ RECURSIVE_MAKE_ARGS=
- RECURSIVE_MAKE_ARGS=@RECURSIVE_MAKE_ARGS@
- #endif
-
-+DESTDIR=
-+
- SHELL = /bin/sh
- LANG = C
- LC_ALL = C
-@@ -398,18 +400,18 @@ install-arch-dep: mkdir
- (cd ./$${subdir} && $(MAKE) $(RECURSIVE_MAKE_ARGS) install prefix=${prefix} \
- exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \
- archlibdir=${archlibdir}) ; done
-- if test "`(cd ${archlibdir} && $(pwd))`" != \
-+ if test "`(cd $(DESTDIR)${archlibdir} && $(pwd))`" != \
- "`(cd ./lib-src && $(pwd))`"; then \
- if test -f ../Installation; then \
-- ${INSTALL_DATA} ../Installation ${archlibdir}/Installation; \
-+ ${INSTALL_DATA} ../Installation $(DESTDIR)${archlibdir}/Installation; \
- fi; \
-- ${INSTALL_DATA} lib-src/config.values ${docdir}/config.values; \
-- ${INSTALL_DATA} lib-src/DOC ${docdir}/DOC; \
-+ ${INSTALL_DATA} lib-src/config.values $(DESTDIR)${docdir}/config.values; \
-+ ${INSTALL_DATA} lib-src/DOC $(DESTDIR)${docdir}/DOC; \
- for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; \
- do (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; done ; \
- else true; fi
- #if (defined(PDUMP) && !defined (DUMP_IN_EXEC)) || (defined (PDUMP) && defined(WIN32_NATIVE))
-- ${INSTALL_DATA} src/${PROGNAME}.dmp ${bindir}/${PROGNAME}-${version}-`src/${PROGNAME} -sd`.dmp
-+ ${INSTALL_DATA} src/${PROGNAME}.dmp $(DESTDIR)${bindir}/${PROGNAME}-${version}-`src/${PROGNAME} -sd`.dmp
- #endif
- #ifdef WIN32_NATIVE
- ${INSTALL_PROGRAM} src/${PROGNAME} ${bindir}/${PROGNAME}
-@@ -421,20 +423,20 @@ install-arch-dep: mkdir
- cd ${bindir} && $(RM) ./${PROGNAME} && ${LN_S} ${PROGNAME}-${version}.exe ./${PROGNAME}
- cd ${bindir} && $(RM) ./${SHEBANG_PROGNAME} && ${LN_S} ${PROGNAME}-${version}.exe ./${SHEBANG_PROGNAME}
- # else
-- ${INSTALL_PROGRAM} src/${PROGNAME} ${bindir}/${PROGNAME}-${version}
-- -chmod 0755 ${bindir}/${PROGNAME}-${version}
-- cd ${bindir} && $(RM) ./${PROGNAME} && ${LN_S} ${PROGNAME}-${version} ./${PROGNAME}
-- cd ${bindir} && $(RM) ./${SHEBANG_PROGNAME} && ${LN_S} ${PROGNAME}-${version} ./${SHEBANG_PROGNAME}
-+ ${INSTALL_PROGRAM} src/${PROGNAME} $(DESTDIR)${bindir}/${PROGNAME}-${version}
-+ -chmod 0755 $(DESTDIR)${bindir}/${PROGNAME}-${version}
-+ cd $(DESTDIR)${bindir} && $(RM) ./${PROGNAME} && ${LN_S} ${PROGNAME}-${version} ./${PROGNAME}
-+ cd $(DESTDIR)${bindir} && $(RM) ./${SHEBANG_PROGNAME} && ${LN_S} ${PROGNAME}-${version} ./${SHEBANG_PROGNAME}
- # endif /* CYGWIN */
- #endif /* WIN32_NATIVE */
- #ifdef HAVE_SHLIB
-- $(INSTALL_DATA) $(srcdir)/modules/auto-autoloads.* $(moduledir)
-+ $(INSTALL_DATA) $(srcdir)/modules/auto-autoloads.* $(DESTDIR)$(moduledir)
- #endif
-
- install-arch-indep: mkdir info
- -@set ${COPYDESTS} ; \
- for dir in ${COPYDIR} ; do \
-- if test "`(cd $$1 && $(pwd))`" != \
-+ if test "`(cd $(DESTDIR)$$1 && $(pwd))`" != \
- "`(cd $${dir} && $(pwd))`"; then \
- : do nothing - echo "rm -rf $$1" ; \
- fi ; \
-@@ -442,35 +444,35 @@ install-arch-indep: mkdir info
- done
- -set ${COPYDESTS} ; \
- for dir in ${COPYDESTS} ; do \
-- if test ! -d $${dir} ; then mkdir $${dir} ; fi ; \
-+ if test ! -d $${dir} ; then mkdir $(DESTDIR)$${dir} ; fi ; \
- done ; \
- for dir in ${COPYDIR} ; do \
- dest=$$1 ; shift ; \
- test -d $${dir} \
- -a "`(cd $${dir} && $(pwd))`" != \
-- "`(cd $${dest} && $(pwd))`" \
-+ "`(cd $(DESTDIR)$${dest} && $(pwd))`" \
- && (echo "Copying $${dir}..." ; \
- (cd $${dir} && $(TAR) -cf - . ) | \
-- (cd $${dest} && umask 022 && $(TAR) -xf - );\
-- chmod 0755 $${dest}; \
-- for subdir in `find $${dest} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \
-+ (cd $(DESTDIR)$${dest} && umask 022 && $(TAR) -xf - );\
-+ chmod 0755 $(DESTDIR)$${dest}; \
-+ for subdir in `find $(DESTDIR)$${dest} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \
- (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; \
- done) ; \
- done
- if test "`(cd ${srcdir}/info && $(pwd))`" != \
-- "`(cd ${infodir} && $(pwd))`" && cd ${srcdir}/info; then \
-- if test ! -f ${infodir}/dir -a -f dir ; then \
-- ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir ; \
-+ "`(cd $(DESTDIR)${infodir} && $(pwd))`" && cd ${srcdir}/info; then \
-+ if test ! -f $(DESTDIR)${infodir}/dir -a -f dir ; then \
-+ ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir ; \
- fi ; \
- for file in *.info* ; do \
-- ${INSTALL_DATA} $${file} ${infodir}/$${file} ; \
-- chmod 0644 ${infodir}/$${file}; \
-+ ${INSTALL_DATA} $${file} $(DESTDIR)${infodir}/$${file} ; \
-+ chmod 0644 $(DESTDIR)${infodir}/$${file}; \
- done ; \
- fi
- cd ${srcdir}/etc && \
- for page in xemacs etags ctags gnuserv gnuclient gnuattach gnudoit; do \
-- ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${mandir}/$${page}${manext} ; \
-- chmod 0644 ${mandir}/$${page}${manext} ; \
-+ ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 $(DESTDIR)${mandir}/$${page}${manext} ; \
-+ chmod 0644 $(DESTDIR)${mandir}/$${page}${manext} ; \
- done
- @echo "If you would like to save approximately 4M of disk space, do"
- @echo "make gzip-el"
-@@ -480,19 +482,23 @@ install-arch-indep: mkdir info
- @echo "${lispdir}"
-
- gzip-el:
-- $(SHELL) ${srcdir}/lib-src/gzip-el.sh ${lispdir}
-+ $(SHELL) ${srcdir}/lib-src/gzip-el.sh $(DESTDIR)${lispdir}
-
- ## Build all the directories to install XEmacs in.
- ## Since we may be creating several layers of directories,
- ## (e.g. /usr/local/lib/${PROGNAME}-20.5/sparc-sun-solaris2.6), we use
- ## make-path instead of mkdir. Not all mkdirs have the `-p' flag.
- mkdir: FRC.mkdir
-- ${MAKEPATH} ${COPYDESTS} ${docdir} ${infodir} ${archlibdir} \
-- ${mandir} ${bindir} ${datadir} ${libdir} \
-+ for dir in \
-+ ${COPYDESTS} ${docdir} ${infodir} ${archlibdir} \
-+ ${mandir} ${bindir} ${datadir} ${libdir} \
- #ifdef HAVE_SHLIB
-- ${moduledir} ${sitemoduledir} \
-+ ${moduledir} ${sitemoduledir} \
- #endif
-- ${sitelispdir}
-+ ${sitelispdir} ; \
-+ do \
-+ ${MAKEPATH} $(DESTDIR)$${dir} ; \
-+ done ;
-
- ## Install bundled packages, if present.
-
---- etc/tests/external-widget/Makefile
-+++ etc/tests/external-widget/Makefile 2012-03-02 00:00:00.000000000 +0000
-@@ -16,6 +16,8 @@
- ## You should have received a copy of the GNU General Public License
- ## along with XEmacs. If not, see .
-
-+DESTDIR=
-+
- CFLAGS += -Xc -g -DTOOLTALK
- EMACSHOME = ../../..
- EMACSLIBDIR = $(EMACSHOME)/editor/src
---- lib-src/Makefile.in.in
-+++ lib-src/Makefile.in.in 2012-03-02 00:00:00.000000000 +0000
-@@ -22,6 +22,8 @@
- ## above a certain point in this file are in shell format instead of
- ## in C format. How the hell is this supposed to work? */
-
-+DESTDIR=
-+
- ## For performance and consistency, no built-in rules
- .SUFFIXES:
- .SUFFIXES: .c .h .o
-@@ -242,26 +244,26 @@ do-blessmail: $(blessmail)
- ## just run them directly from lib-src.
- ${archlibdir}: all
- @echo; echo "Installing utilities run internally by XEmacs."
-- ./make-path ${archlibdir}
-+ ./make-path $(DESTDIR)${archlibdir}
- if test "`(cd ${archlibdir} && $(pwd))`" != "`$(pwd)`"; then \
- for f in ${PRIVATE_INSTALLABLE_EXES}; do \
-- (cd .. && $(INSTALL_PROGRAM) lib-src/$$f ${archlibdir}/$$f) ; \
-+ (cd .. && $(INSTALL_PROGRAM) lib-src/$$f $(DESTDIR)${archlibdir}/$$f) ; \
- done ; \
- fi
- if test "`(cd ${archlibdir} && $(pwd))`" \
- != "`(cd ${srcdir} && $(pwd))`"; then \
- for f in ${PRIVATE_INSTALLABLE_SCRIPTS}; do \
-- (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$$f ${archlibdir}/$$f); \
-+ (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$$f $(DESTDIR)${archlibdir}/$$f); \
- done ; \
- fi
-
- install: ${archlibdir}
- @echo; echo "Installing utilities for users to run."
- for file in ${PUBLIC_INSTALLABLE_EXES} ; do \
-- (cd .. && $(INSTALL_PROGRAM) lib-src/$${file} ${bindir}/$${file}) ; \
-+ (cd .. && $(INSTALL_PROGRAM) lib-src/$${file} $(DESTDIR)${bindir}/$${file}) ; \
- done
- for file in ${PUBLIC_INSTALLABLE_SCRIPTS} ; do \
-- (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/$${file}) ; \
-+ (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$${file} $(DESTDIR)${bindir}/$${file}) ; \
- done
-
- uninstall:
---- lwlib/Makefile.in.in
-+++ lwlib/Makefile.in.in 2012-03-02 00:00:00.000000000 +0000
-@@ -21,6 +21,8 @@
- ## along with the Lucid Widget Library. If not, see
- ## .
-
-+DESTDIR=
-+
- ## For performance and consistency, no built-in rules
- .SUFFIXES:
- .SUFFIXES: .c .h .o .i .s
---- man/Makefile
-+++ man/Makefile 2012-03-02 00:00:00.000000000 +0000
-@@ -18,6 +18,8 @@
- # You should have received a copy of the GNU General Public License
- # along with XEmacs. If not, see .
-
-+DESTDIR=
-+
- SHELL = /bin/sh
- MAKEINFO = makeinfo
- TEXI2DVI = texi2dvi
---- modules/base64/Makefile
-+++ modules/base64/Makefile 2012-03-02 00:00:00.000000000 +0000
-@@ -25,6 +25,8 @@
- # 'installed'.
- #
-
-+DESTDIR=
-+
- SHELL=/bin/sh
- RM=rm -f
- CC=../../lib-src/ellcc
---- modules/common/Makefile.common
-+++ modules/common/Makefile.common 2012-03-02 00:00:00.000000000 +0000
-@@ -29,6 +29,8 @@
- #define NOT_C_CODE
- #include "../../src/config.h"
-
-+DESTDIR=
-+
- SHELL=/bin/sh
- RM=rm -f
- PROGNAME=@PROGNAME@
-@@ -96,7 +98,7 @@ extraclean: realclean
- -$(RM) *~ \#*
-
- install: $(OBJECT_TO_BUILD)
-- $(INSTALL_PROGRAM) $< $(INSTALLPATH)
-+ $(INSTALL_PROGRAM) $< $(DESTDIR)$(INSTALLPATH)
-
- ##
- ## Local Variables:
---- modules/zlib/Makefile
-+++ modules/zlib/Makefile 2012-03-02 00:00:00.000000000 +0000
-@@ -26,6 +26,8 @@
- # 'installed'.
- #
-
-+DESTDIR=
-+
- SHELL=/bin/sh
- RM=rm -f
- CC=../../lib-src/ellcc
---- src/Makefile.in.in
-+++ src/Makefile.in.in 2012-03-02 00:00:00.000000000 +0000
-@@ -37,6 +37,8 @@ RECURSIVE_MAKE_ARGS=
- RECURSIVE_MAKE_ARGS=@RECURSIVE_MAKE_ARGS@
- #endif
-
-+DESTDIR=
-+
- PROGNAME=@PROGNAME@
- prefix=@prefix@
- SRC=@srcdir@
-@@ -1019,7 +1021,7 @@ relock:
- #ifdef HAVE_SHLIB
- MAKEPATH=../lib-src/make-path
- install: $(PROGNAME)
-- $(MAKEPATH) $(archlibdir)/include $(archlibdir)/include/m $(archlibdir)/include/s
-+ $(MAKEPATH) $(DESTDIR)$(archlibdir)/include $(DESTDIR)$(archlibdir)/include/m $(DESTDIR)$(archlibdir)/include/s
- -@echo "Copying include files for ellcc..."
- -@hdir=`pwd`; \
- cd $(SRC); hdrdir2=`pwd`; cd $$hdir; \
-@@ -1033,12 +1035,12 @@ install: $(PROGNAME)
- test -d s && hdrtars="$$hdrtars s/*"; \
- test -d m && hdrtars="$$hdrtars m/*"; \
- test -n "$$hdrtars" && (tar cf - $$hdrtars) | \
-- (cd $(archlibdir)/include && umask 022 && tar xf -); \
-- chmod 755 $(archlibdir)/include; \
-- test -d $(archlibdir)/include/s && \
-- chmod 755 $(archlibdir)/include/s; \
-- test -d $(archlibdir)/include/m && \
-- chmod 755 $(archlibdir)/include/s;) \
-+ (cd $(DESTDIR)$(archlibdir)/include && umask 022 && tar xf -); \
-+ chmod 755 $(DESTDIR)$(archlibdir)/include; \
-+ test -d $(DESTDIR)$(archlibdir)/include/s && \
-+ chmod 755 $(DESTDIR)$(archlibdir)/include/s; \
-+ test -d $(DESTDIR)$(archlibdir)/include/m && \
-+ chmod 755 $(DESTDIR)$(archlibdir)/include/s;) \
- done)
- #endif
-
---- tests/tooltalk/Makefile
-+++ tests/tooltalk/Makefile 2012-03-02 00:00:00.000000000 +0000
-@@ -27,6 +27,8 @@
-
- ### Code:
-
-+DESTDIR=
-+
- CC = cc -Xc
- CPPFLAGS = -I/usr/openwin/include
- CFLAGS = -g -v -DNeedFunctionPrototypes
diff --git a/xemacs-21.4.8-xevent.patch b/xemacs-21.4.8-xevent.patch
index 188843f..3d58825 100644
--- a/xemacs-21.4.8-xevent.patch
+++ b/xemacs-21.4.8-xevent.patch
@@ -2,20 +2,17 @@ Index: src/event-Xt.c
===================================================================
--- src/event-Xt.c.orig
+++ src/event-Xt.c
-@@ -1224,9 +1224,13 @@ x_event_to_emacs_event (XEvent *x_event,
+@@ -1224,8 +1224,11 @@ x_event_to_emacs_event (XEvent *x_event,
if (modifiers & XEMACS_MOD_SHIFT)
{
- int Mode_switch_p = *state & xd->ModeMask;
- KeySym bot = XLookupKeysym (ev, Mode_switch_p ? 2 : 0);
-- KeySym top = XLookupKeysym (ev, Mode_switch_p ? 3 : 1);
-+ KeySym top, bot;
++ KeySym bot;
+ XKeyEvent tmpev = *ev;
+
+ tmpev.state = *state & (xd->ModeMask | ~0xff);
+ XLookupString(&tmpev, NULL, 0, &bot, NULL);
-+ tmpev.state |= ShiftMask;
-+ XLookupString(&tmpev, NULL, 0, &top, NULL);
- if (top && bot && top != bot)
- modifiers &= ~XEMACS_MOD_SHIFT;
- }
+ if (x_keysym && bot && x_keysym != bot)
+ modifiers &= ~XEMACS_MOD_SHIFT;
+ }
diff --git a/xemacs-21.5.31.tar.gz b/xemacs-21.5.31.tar.gz
deleted file mode 100644
index a5a43dd..0000000
--- a/xemacs-21.5.31.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:d59f90b7e72621376a23daa484f1929945d0527350a10989fd086bde9d0a997d
-size 15802193
diff --git a/xemacs-21.5.32.tar.gz b/xemacs-21.5.32.tar.gz
new file mode 100644
index 0000000..bd31491
--- /dev/null
+++ b/xemacs-21.5.32.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d7473fd4b9ca3278de44882ef004b0028e3ff130ed714831c885893a9cd5e7d
+size 15760224
diff --git a/xemacs-level3.patch b/xemacs-level3.patch
index 741719f..92c09b6 100644
--- a/xemacs-level3.patch
+++ b/xemacs-level3.patch
@@ -23,9 +23,9 @@ Index: xemacs-21.5.29/src/event-Xt.c
return 0;
}
@@ -872,8 +881,17 @@ x_to_emacs_keysym (XKeyPressedEvent *eve
- than passing in 0) to avoid crashes on German IRIX */
char dummy[256];
XLookupString (event, dummy, 200, &keysym, 0);
+ *x_keysym_out = keysym;
- return (IsModifierKey (keysym) || keysym == XK_Mode_switch )
- ? Qnil : x_keysym_to_emacs_keysym (keysym, simple_p);
+ return (IsModifierKey (keysym)
@@ -43,9 +43,9 @@ Index: xemacs-21.5.29/src/event-Xt.c
#endif /* ! XIM_MOTIF */
@@ -932,8 +950,17 @@ x_to_emacs_keysym (XKeyPressedEvent *eve
- {
case XLookupKeySym:
case XLookupBoth:
+ *x_keysym_out = keysym;
- return (IsModifierKey (keysym) || keysym == XK_Mode_switch )
- ? Qnil : x_keysym_to_emacs_keysym (keysym, simple_p);
+ return (IsModifierKey (keysym)
diff --git a/xemacs.changes b/xemacs.changes
index 7b0f894..21d8377 100644
--- a/xemacs.changes
+++ b/xemacs.changes
@@ -1,3 +1,34 @@
+-------------------------------------------------------------------
+Tue Aug 14 01:35:35 UTC 2012 - i@marguerite.su
+
+- fix mis-cleaned stuff by spec-cleaner.
+
+-------------------------------------------------------------------
+Sat Aug 11 19:41:21 UTC 2012 - i@marguerite.su
+
+- removed patch22 destdir.patch
+ * too old, no longer works.
+ * the removal doesn't even affect the final RPM at all.
+- update License to GPL-3.0+
+ * upstream update its license.
+- reopen "export CFLAGS LDFAGS".
+ * nemui's request miscomment it. because it has values, not empty.
+- remove miss-added conditional tags.
+ * nemui said it's used for pdump = 0, but pdump never got enabled at all.
+- re-enable COMP --with-gcc.
+- spec-clean
+- find a wiser and easier way to solve the OBS dump segmentation error.
+ * just enable pdump and dump_in_exec by set them to 1.
+
+-------------------------------------------------------------------
+Wed Aug 8 21:01:37 UTC 2012 - i@marguerite.su
+
+- update to beta version 21.5.32 "habanero".
+ * see http://www.xemacs.org/Releases/21.5.32.html
+- regenerated patch with latest source.
+- fix spec file, whose build result will cause a sys fault.
+ * see https://build.opensuse.org/request/show/129964 for desc.
+
-------------------------------------------------------------------
Thu Jun 14 14:24:31 UTC 2012 - dmueller@suse.com
diff --git a/xemacs.patch b/xemacs.patch
index 501a4e0..231b2ef 100644
--- a/xemacs.patch
+++ b/xemacs.patch
@@ -268,18 +268,18 @@ Index: xemacs-21.5.29/lisp/x-win-xfree86.el
===================================================================
--- xemacs-21.5.29.orig/lisp/x-win-xfree86.el
+++ xemacs-21.5.29/lisp/x-win-xfree86.el
-@@ -101,6 +101,10 @@
+@@ -99,6 +99,11 @@
;; define also the control, meta, and meta-control versions.
(loop for mods in '(() (control) (meta) (meta control)) do
- (define-key function-key-map `[(,@mods ,key)] `[(shift ,@mods ,sane-key)])
-- ))))
--
-+ )))
+ (define-key function-key-map `[(,@mods ,key)]
+- `[(shift ,@mods ,sane-key)])))))
++ `[(shift ,@mods ,sane-key)]))))
+;; Begin insert
+;; set Symbol delete == [delete] to delete-char
+ (load "term/func-keys" t t)
+;; End insert
+)
+
;;; x-win-xfree86.el ends here
Index: xemacs-21.5.29/site-packages/lisp/term/func-keys.el
===================================================================
diff --git a/xemacs.spec b/xemacs.spec
index cf200c4..e070f27 100644
--- a/xemacs.spec
+++ b/xemacs.spec
@@ -41,31 +41,25 @@ BuildRequires: gpm-devel
%else
BuildRequires: gpm
%endif
+Version: 21.5.32
+Release: 0
+Summary: XEmacs
+License: GPL-3.0+
+Group: Productivity/Editors/Emacs
%define appdefdir /usr/share/X11
%define xbindir /usr/bin
%define xincludes /usr/include
%define xlibraries /usr/%{_lib}
-%define _id b604d235f028
+%define _id 900a0a8796c3
%define _hg beta-%{_id}
Url: http://www.xemacs.org
-PreReq: permissions
-Requires: ctags
-Requires: xemacs-info
-Requires: xemacs-packages
-Conflicts: gnuserv
-Version: 21.5.31
-Release: 0
-Summary: XEmacs
-License: GPL-2.0+
-Group: Productivity/Editors/Emacs
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
# 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: http://ftp.freenet.de/pub/ftp.xemacs.org/tux/xemacs/xemacs-21.5/xemacs-21.5.31.tar.gz
+Source0: http://ftp.freenet.de/pub/ftp.xemacs.org/tux/xemacs/xemacs-21.5/%{name}-%{version}.tar.gz
Source1: xe-list.el
Source2: fix-load-history.el
Source3: xemacs.desktop
@@ -78,7 +72,6 @@ Patch0: xemacs.patch
Patch3: xemacs-app-defaults.patch
Patch18: xemacs-21.4.8-xevent.patch
Patch20: xemacs-21.4.13-ppc64.patch
-Patch22: destdir.patch
Patch23: xemacs-ptmx.dif
Patch27: xemacs-level3.patch
Patch28: xemacs-21.5.18-movemail.patch
@@ -94,6 +87,12 @@ Patch53: xemacs-21.5.31-array.patch
Patch56: xemacs-libpng15.patch
Patch292811: bugzilla-292811-make-x-make-font-bold-italic-xft-work.patch
Patch301352: bugzilla-301352-fix-wrong-incrementing-in-macros.patch
+Requires(pre): permissions
+Requires: ctags
+Requires: xemacs-info
+Requires: xemacs-packages
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+Conflicts: gnuserv
%define _default_patch_fuzz 2
%bcond_with lock
@@ -109,10 +108,10 @@ XEmacs. This is mainly important for translated .elc files and the key
macros.
%package -n xemacs-el
-Requires: xemacs == %{version}-%{release}
-Requires: xemacs-packages-el
Summary: Emacs-Lisp source files for XEmacs
Group: Productivity/Editors/Emacs
+Requires: xemacs = %{version}
+Requires: xemacs-packages-el
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
@@ -125,9 +124,9 @@ nevertheless because it is often useful and enlightening to have a look
at the Lisp sources.
%package -n xemacs-info
-Requires: xemacs-packages-info
Summary: Info Files for XEmacs
Group: Productivity/Editors/Emacs
+Requires: xemacs-packages-info
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
@@ -141,11 +140,13 @@ read online with XEmacs and describe XEmacs and some of its modes.
# therefore we use XFontSet support:
%{!?enable_xfs:%global enable_xfs 1}
%ifarch ia64
-%global enable_pdump 0
+# FIXME! I didn't build and test!
+# But according to x86_64 and less, we can safely open it in this version
+%global enable_pdump 1
%else
-%global enable_pdump 0
+%global enable_pdump 1
%endif
-%global enable_dump_in_exec 0
+%global enable_dump_in_exec 1
%if ! %enable_xfs
echo Use xft, requires X11, Xft, Xrender, freetype, and fontconfig support.
%else
@@ -154,8 +155,7 @@ echo Use xfs, that is XFontSet support for internationalized menubar.
%setup -q
%patch3 -p1
%patch18 -p0 -b .xevent
-%patch20 -p1
-%patch22 -p0
+%patch20 -p1
%patch23 -p1
%patch27 -p1 -b .lvl3
%patch28 -p1 -b .movemail
@@ -180,10 +180,10 @@ 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 .
+find . | xargs touch -r .
# make sure that the binaries work (pagesize on build must be the same as on target, bnc#726769)
-%if %suse_version >= 1110
+%if 0%{?suse_version} >= 1110
%ifarch ppc ppc64 ia64
%if %(getconf PAGESIZE) != 65536
%error "Error: wrong build host, PAGESIZE must be 65536"
@@ -242,14 +242,14 @@ LIBEXEC=${LIB}/xemacs/${VERSION}
MOD=${ARCH}/modules
STATE=/var/lib/xemacs
MAN=/usr/share/man/man1
- CFLAGS="-Wall ${RPM_OPT_FLAGS} -pipe ${LOOP} -DLDAP_DEPRECATED "
+ CFLAGS="-Wall %{optflags} -pipe ${LOOP} -DLDAP_DEPRECATED "
%ifarch s390x
CFLAGS="$CFLAGS -O1"
%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.
+# when the Menus are used.
LDFLAGS=
export CFLAGS LDFLAGS
#
@@ -356,7 +356,7 @@ MAIL="--enable-clash-detection \
# --with-xim=xlib, the above comment from './configure --help'
# seems to be incorrect in that respect.)
#
-MULE="--enable-mule \
+MULE="--with-mule \
--with-xim=xlib \
%if %enable_xfs
--with-xfs \
@@ -375,34 +375,34 @@ COMP="--with-gcc \
--with-ldflags=\"${LDFLAGS}\" \
"
eval ./configure $SYS $COMP $PREFIX $SPECIAL $X11 $MULE $MAIL
-make %{?jobs:-j %jobs}
+make %{?_smp_mflags}
%install
set +o posix
#
-mkdir -p %{buildroot}/usr/share/xemacs/site-lisp/lisp
-mkdir -p %{buildroot}/usr/share/xemacs/site-packages/lisp/term
+mkdir -p %{buildroot}%{_datadir}/xemacs/site-lisp/lisp
+mkdir -p %{buildroot}%{_datadir}/xemacs/site-packages/lisp/term
%if %{with lock}
-mkdir -p %{buildroot}/var/lib/xemacs/lock
-chmod 1777 %{buildroot}/var/lib/xemacs/lock
+mkdir -p %{buildroot}%{_localstatedir}/lib/xemacs/lock
+chmod 1777 %{buildroot}%{_localstatedir}/lib/xemacs/lock
%endif
-make DESTDIR=%{buildroot} install
+make install DESTDIR=%{buildroot}
mv %{buildroot}%{xbindir}/xemacs-21.?-??? %{buildroot}%{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.
-#
+# dumped at the place where it is finally running.
+#
# Suggested by Jeff Mincy , see:
-#
+#
# http://list-archive.xemacs.org/xemacs-design/200204/msg00365.html
#
# Test whether this works by evaluating (find-function 'next-line)
-#
+#
install -m 644 %{_sourcedir}/fix-load-history.el \
- %{buildroot}/usr/share/xemacs/site-packages/lisp/
-rm -rf %{buildroot}/usr/share/xemacs/%{version}/src/
-rm -rf %{buildroot}/usr/share/xemacs/%{version}/lib-src/
-rm -f %{buildroot}/usr/share/xemacs/%{version}/Installation
+ %{buildroot}%{_datadir}/xemacs/site-packages/lisp/
+rm -rf %{buildroot}%{_datadir}/xemacs/%{version}/src/
+rm -rf %{buildroot}%{_datadir}/xemacs/%{version}/lib-src/
+rm -f %{buildroot}%{_datadir}/xemacs/%{version}/Installation
######################################################################
test -L %{buildroot}%{xbindir}/xemacs && \
rm %{buildroot}%{xbindir}/xemacs
@@ -411,20 +411,20 @@ test -x %{buildroot}%{xbindir}/xemacs-${ver%%.*}-b${ver##*.} && \
mv %{buildroot}%{xbindir}/xemacs-${ver%%.*}-b${ver##*.} %{buildroot}%{xbindir}/xemacs
chmod 755 %{buildroot}%{xbindir}/xemacs
rm -f %{buildroot}%{xbindir}/xemacs-script
-rm -rf %{buildroot}/usr/share/xemacs/%{version}/etc/tests
-for f in %{buildroot}/usr/man/man1/*.1 \
- %{buildroot}/usr/share/man/man1/*.1 \
- %{buildroot}/usr/share/xemacs/info/*info* \
- %{buildroot}/usr/share/xemacs/%{version}/etc/*.1 \
- %{buildroot}/usr/share/xemacs/%{version}/etc/mule/*.1
+rm -rf %{buildroot}%{_datadir}/xemacs/%{version}/etc/tests
+for f in %{buildroot}%{_prefix}/man/man1/*.1 \
+ %{buildroot}%{_mandir}/man1/*.1 \
+ %{buildroot}%{_datadir}/xemacs/info/*info* \
+ %{buildroot}%{_datadir}/xemacs/%{version}/etc/*.1 \
+ %{buildroot}%{_datadir}/xemacs/%{version}/etc/mule/*.1
do
test "${f##*.}" = "gz" && continue
test -e $f || continue
gzip -9f $f
done
-find %{buildroot}/usr/share/xemacs/%{version}/ -name '*.orig' | xargs -r rm -f
-find %{buildroot}/usr/share/xemacs/%{version}/ -name '*.el.ediff' | xargs -r rm -f
-find %{buildroot}/usr/share/xemacs/%{version}/ -name '*.el.vm' | xargs -r rm -f
+find %{buildroot}%{_datadir}/xemacs/%{version}/ -name '*.orig' | xargs -r rm -f
+find %{buildroot}%{_datadir}/xemacs/%{version}/ -name '*.el.ediff' | xargs -r rm -f
+find %{buildroot}%{_datadir}/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
@@ -435,16 +435,16 @@ rm -f %{buildroot}%{xbindir}/ctags \
%{buildroot}%{xbindir}/etags \
%{buildroot}%{xbindir}/b2m \
%{buildroot}%{xbindir}/rcs-checkin \
- %{buildroot}/usr/share/man/man1/ctags.1.gz \
- %{buildroot}/usr/share/man/man1/etags.1.gz \
- %{buildroot}/usr/share/xemacs/%{version}/etc/ctags.1.gz \
- %{buildroot}/usr/share/xemacs/%{version}/etc/etags.1.gz
+ %{buildroot}%{_mandir}/man1/ctags.1.gz \
+ %{buildroot}%{_mandir}/man1/etags.1.gz \
+ %{buildroot}%{_datadir}/xemacs/%{version}/etc/ctags.1.gz \
+ %{buildroot}%{_datadir}/xemacs/%{version}/etc/etags.1.gz
# Some .elc's are not needed:
-find %{buildroot}/usr/share/xemacs/ -name '_pkg.elc' | xargs -r rm -f
-find %{buildroot}/usr/share/xemacs/ -name 'auto-autoloads.el?' | xargs -r rm -f
-find %{buildroot}/usr/lib/xemacs/ -name 'auto-autoloads.el?' | xargs -r rm -f
-rm -f %{buildroot}/usr/share/xemacs/%{version}/lisp/default.elc
-rm -f %{buildroot}/usr/share/xemacs/%{version}/lisp/vm/vm.elc
+find %{buildroot}%{_datadir}/xemacs/ -name '_pkg.elc' | xargs -r rm -f
+find %{buildroot}%{_datadir}/xemacs/ -name 'auto-autoloads.el?' | xargs -r rm -f
+find %{buildroot}%{_prefix}/lib/xemacs/ -name 'auto-autoloads.el?' | xargs -r rm -f
+rm -f %{buildroot}%{_datadir}/xemacs/%{version}/lisp/default.elc
+rm -f %{buildroot}%{_datadir}/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
@@ -452,32 +452,32 @@ rm -f %{buildroot}/usr/share/xemacs/%{version}/lisp/vm/vm.elc
# rm -f /usr/share/xemacs/%{version}/lisp/xpm-button.elc
#fi
# no .origs
-rm -f %{buildroot}/usr/share/xemacs/info/xemacs-faq.info.orig*
+rm -f %{buildroot}%{_datadir}/xemacs/info/xemacs-faq.info.orig*
#
# Make TUTORIAL's visible
-for t in %{buildroot}/usr/share/xemacs/%{version}/etc/mule/TUTORIAL.* ; do
+for t in %{buildroot}%{_datadir}/xemacs/%{version}/etc/mule/TUTORIAL.* ; do
test -e $t || break
- test -e %{buildroot}/usr/share/xemacs/%{version}/etc/${t##*/} && rm -f $t
- test -e $t && mv $t %{buildroot}/usr/share/xemacs/%{version}/etc/${t##*/}
+ test -e %{buildroot}%{_datadir}/xemacs/%{version}/etc/${t##*/} && rm -f $t
+ test -e $t && mv $t %{buildroot}%{_datadir}/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 %{buildroot}%{appdefdir}/app-defaults/
install -m 644 etc/Emacs.ad %{buildroot}%{appdefdir}/app-defaults/XEmacs
# SuSE extension
-install -m 0644 %{_sourcedir}/site-start.el %{buildroot}/usr/share/xemacs/site-packages/lisp/
-install -m 0644 %{_sourcedir}/suse-xft-init.el %{buildroot}/usr/share/xemacs/site-packages/lisp/
-install -m 0644 site-packages/lisp/term/func-keys.el %{buildroot}/usr/share/xemacs/site-packages/lisp/term/
-install -m 0644 site-packages/lisp/term/linux.el %{buildroot}/usr/share/xemacs/site-packages/lisp/term/
-install -m 0644 site-packages/lisp/term/xterm.el %{buildroot}/usr/share/xemacs/site-packages/lisp/term/
-install -m 0644 site-packages/lisp/term/gnome.el %{buildroot}/usr/share/xemacs/site-packages/lisp/term/
-install -m 0644 site-packages/lisp/term/kvt.el %{buildroot}/usr/share/xemacs/site-packages/lisp/term/
-./src/xemacs -batch -no-site-file -vanilla -f batch-byte-compile %{buildroot}/usr/share/xemacs/site-packages/lisp/term/*.el
+install -m 0644 %{_sourcedir}/site-start.el %{buildroot}%{_datadir}/xemacs/site-packages/lisp/
+install -m 0644 %{_sourcedir}/suse-xft-init.el %{buildroot}%{_datadir}/xemacs/site-packages/lisp/
+install -m 0644 site-packages/lisp/term/func-keys.el %{buildroot}%{_datadir}/xemacs/site-packages/lisp/term/
+install -m 0644 site-packages/lisp/term/linux.el %{buildroot}%{_datadir}/xemacs/site-packages/lisp/term/
+install -m 0644 site-packages/lisp/term/xterm.el %{buildroot}%{_datadir}/xemacs/site-packages/lisp/term/
+install -m 0644 site-packages/lisp/term/gnome.el %{buildroot}%{_datadir}/xemacs/site-packages/lisp/term/
+install -m 0644 site-packages/lisp/term/kvt.el %{buildroot}%{_datadir}/xemacs/site-packages/lisp/term/
+./src/xemacs -batch -no-site-file -vanilla -f batch-byte-compile %{buildroot}%{_datadir}/xemacs/site-packages/lisp/term/*.el
mkdir -p %{buildroot}/%{_docdir}/xemacs
install -m 0644 suse/README.SuSE %{buildroot}/%{_docdir}/xemacs/README.SuSE
ln -sf /usr/share/xemacs/%{version}/etc %{buildroot}/%{_docdir}/xemacs/etc
-mkdir -p %{buildroot}/etc/skel/.xemacs
-install -m 0644 %{_sourcedir}/skel.init.el %{buildroot}/etc/skel/.xemacs/init.el
+mkdir -p %{buildroot}%{_sysconfdir}/skel/.xemacs
+install -m 0644 %{_sourcedir}/skel.init.el %{buildroot}%{_sysconfdir}/skel/.xemacs/init.el
fdupes -q -r -1 %{buildroot}%{_datadir}/xemacs/%{version}/etc/ %{buildroot}%{_mandir}/man1/ |\
xargs -n 2 | while read first second; do
case "${first}" in
@@ -504,7 +504,7 @@ xargs -n 2 | while read first second; do
done
#
# replace buildroot in comments in .elc files by spaces with the same total length:
-REPLACEMENT=$(echo "%{buildroot}" | tr '[:print:]' ' ')
+REPLACEMENT=$(echo %{buildroot} | tr '[:print:]' ' ')
for i in $(find %{buildroot} -name "*.elc")
do
perl -pi -e "s|(;;; from file )%{buildroot}(/usr/share/xemacs/.*)|\1$REPLACEMENT\2|" $i
@@ -519,7 +519,7 @@ done
( find %{buildroot} \
\( \( \( -not -type d \) -a \( -not -type l \) \) -printf '%%p\n' \) -o \
\( -type d -printf '%%p/\n' \) -o \( -type l -printf '%%p\n' \) ; \
- find %{buildroot}/usr/share/xemacs/ %{buildroot}/usr/lib/xemacs/ -type f -o -type l ) | \
+ find %{buildroot}%{_datadir}/xemacs/ %{buildroot}%{_prefix}/lib/xemacs/ -type f -o -type l ) | \
grep -v "/usr/share/xemacs/%{version}/etc" | \
sort -t /| uniq | perl -p -e "s|%{buildroot}||" > xe-list
./src/xemacs -batch -no-site-file -l %{_sourcedir}/xe-list.el -f xe-list-generate-list-files
@@ -531,7 +531,7 @@ cat xe-list-el-without-elc xe-list-elc-without-el xe-list-elc-with-el \
##
# do no include header files because RPMLINT complains about header files in non-devel
# packages:
-rm -rf %{buildroot}/usr/lib/xemacs/%{version}/*-suse-linux/include/
+rm -rf %{buildroot}%{_prefix}/lib/xemacs/%{version}/*-suse-linux/include/
%if %{with lock}
%if %{defined verify_permissions}
@@ -546,15 +546,12 @@ rm -rf %{buildroot}/usr/lib/xemacs/%{version}/*-suse-linux/include/
%endif
%endif
-%clean
-rm -rf %{buildroot}
-
%files -f xe-list-el-without-elc_xe-list-elc-without-el_xe-list-elc-with-el
%defattr(-,root,root)
-%dir /etc/skel/.xemacs
-%config /etc/skel/.xemacs/init.el
-/usr/share/applications/xemacs.desktop
-/usr/share/pixmaps/xemacs.png
+%dir %{_sysconfdir}/skel/.xemacs
+%config %{_sysconfdir}/skel/.xemacs/init.el
+%{_datadir}/applications/xemacs.desktop
+%{_datadir}/pixmaps/xemacs.png
%{xbindir}/ellcc
%{xbindir}/gnuattach
%{xbindir}/gnuclient
@@ -567,71 +564,71 @@ rm -rf %{buildroot}
%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
-%dir /usr/lib/xemacs/site-modules/
+%dir %{_prefix}/lib/xemacs
+%dir %{_prefix}/lib/xemacs/%{version}
+%dir %{_prefix}/lib/xemacs/%{version}/*-suse-linux/
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/DOC
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/add-big-package.sh
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/config.values
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/cvtmail
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/digest-doc
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/fakemail
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/gnuserv
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/gzip-el.sh
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/hexl
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/make-docfile
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/mmencode
+%dir %{_prefix}/lib/xemacs/%{version}/*-suse-linux/modules/
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/modules/*.ell
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/movemail
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/profile
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/rcs2log
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/sorted-doc
+%{_prefix}/lib/xemacs/%{version}/*-suse-linux/vcdiff
+%dir %{_prefix}/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/
+%doc %{_mandir}/man1/gnuattach.1.gz
+%doc %{_mandir}/man1/gnuclient.1.gz
+%doc %{_mandir}/man1/gnudoit.1.gz
+%doc %{_mandir}/man1/gnuserv.1.gz
+%doc %{_mandir}/man1/xemacs.1.gz
+%dir %{_datadir}/xemacs/
+%dir %{_datadir}/xemacs/%{version}/
+%dir %{_datadir}/xemacs/%{version}/etc/
+%{_datadir}/xemacs/%{version}/etc/*
+%dir %{_datadir}/xemacs/%{version}/lisp/
+%doc %{_datadir}/xemacs/%{version}/lisp/ChangeLog*
+%doc %{_datadir}/xemacs/%{version}/lisp/README
+%dir %{_datadir}/xemacs/%{version}/lisp/mule/
+%doc %{_datadir}/xemacs/%{version}/lisp/mule/mule-locale.txt
+%dir %{_datadir}/xemacs/%{version}/lisp/term
+%doc %{_datadir}/xemacs/%{version}/lisp/term/README
+%dir %{_datadir}/xemacs/site-packages/
+%dir %{_datadir}/xemacs/site-packages/lisp/
+%dir %{_datadir}/xemacs/site-packages/lisp/term/
+%dir %{_datadir}/xemacs/site-lisp/
+%dir %{_datadir}/xemacs/site-lisp/lisp/
%if %{with lock}
-%dir /var/lib/xemacs/
-%dir %verify(not mode group) %attr(1775,root,trusted) /var/lib/xemacs/lock/
+%dir %{_localstatedir}/lib/xemacs/
+%dir %verify(not mode group) %attr(1775,root,trusted) /var/lib/xemacs/lock
%endif
%files -n xemacs-info
%defattr(-,root,root)
-%dir /usr/share/xemacs/
-%dir /usr/share/xemacs/info/
-%doc /usr/share/xemacs/info/*
+%dir %{_datadir}/xemacs/
+%dir %{_datadir}/xemacs/info/
+%doc %{_datadir}/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/
+%dir %{_datadir}/xemacs/
+%dir %{_datadir}/xemacs/%{version}/lisp/
+%dir %{_datadir}/xemacs/%{version}/lisp/mule/
+%dir %{_datadir}/xemacs/%{version}/lisp/term/
+%dir %{_datadir}/xemacs/site-packages/
+%dir %{_datadir}/xemacs/site-packages/lisp/
+%dir %{_datadir}/xemacs/site-packages/lisp/term/
%changelog