%define PACKAGES_DIR mule-packages %define PREFIX /usr/lib/xemacs/mule-packages Summary: The Sumo package of elisp modules for XEmacs-mule Name: xemacs-mule-sumo Version: 0513 Release: 1a Copyright: GPL Group: Applications/Editors/Emacs #Packager: Kaoru Fukui Packager: Keisuke Fujii Source0: xemacs-mule-sumo-1999-05-13.tar.gz Source1: egg-its-1.17-pkg.tar.gz Requires : glibc >= 2.0.108 Vendor : Japanese PPC Linux Users' Group Distribution: unofficial JRPM (public beta) Url:http://www.xemacs.org/ BuildRoot: /var/tmp/%{PACKAGES_DIR}-root %description This package contains elisp modules for XEmacs-mule: xemacs-21.0/xemacs-21.2. The package consists of three parts: - xemacs-mule-sumo-%{version} : the main part - xemacs-mule-sumo-el-%{version} : elisp source files (optional) - xemacs-mule-sumo-info-%{version} : info, pkginfo, and man %package el Summary: Source files for Xemacs lisp mudules for mule Group: Applications/Editors/Emacs %description el This package contains the elisp source files for mule extension of Xemacs: edict, egg-its, mule-base, and skk. %package info Summary: Info, man, and other documentation for the mule package Group: Applications/Editors/Emacs %description info This package contains info, man, and other documentation about the mule elisp modules. %prep %setup -q -n %{PACKAGES_DIR} -a 1 %build %install rm -fr $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{PREFIX} cd $RPM_BUILD_DIR/%{PACKAGES_DIR} gzip -n -9f ./info/*.inf* tar cvf mule.tar etc/* lisp/* man/* pkginfo/* info/* tar xvf mule.tar -C $RPM_BUILD_ROOT%{PREFIX} rm -fr mule.tar find $RPM_BUILD_ROOT%{PREFIX}/etc -type f -or -type l | sed -e "s#^$RPM_BUILD_ROOT##" > all.filelist.in find $RPM_BUILD_ROOT%{PREFIX}/lisp -type f -or -type l | sed -e "s#^$RPM_BUILD_ROOT##" | sort >> all.filelist.in find $RPM_BUILD_ROOT%{PREFIX}/lisp -name "*.elc" | sed -e "s#^$RPM_BUILD_ROOT##" > elc.filelist.in sed -e "s/.elc/.el/g" < elc.filelist.in | sort > el.filelist diff -yibw --width=240 --suppress-common-lines all.filelist.in el.filelist | \ sed -e "s/ rpm.filelist find $RPM_BUILD_ROOT%{PREFIX}/info -type f -or -type l | sed -e "s#^$RPM_BUILD_ROOT##" > info.filelist find $RPM_BUILD_ROOT%{PREFIX}/man -type f -or -type l | sed -e "s#^$RPM_BUILD_ROOT##" >> info.filelist find $RPM_BUILD_ROOT%{PREFIX}/pkginfo -type f -or -type l | sed -e "s#^$RPM_BUILD_ROOT##" >> info.filelist chown -R root:root $RPM_BUILD_ROOT %clean rm -rf "$RPM_BUILD_ROOT" #====================================== %files -f rpm.filelist %files -f el.filelist el %files -f info.filelist info %changelog * Fri Jun 25 1999 Keisuke Fujii - modified destination prefix. - updated to 1999-05-13 * Tue Mar 02 1999 Kaoru Fukui - update to 1999-03-01 * Thu Feb 11 1999 Kaoru Fukui - create this rpm.spec file for xemacs-mule-sumo.