File xemacs-packages-base.spec of Package xemacs-packages-base
%define pkgdir %{_datadir}/xemacs
%define xemver v=$(rpm -q --qf=%%{VERSION} xemacs-nox) ; case $v in 2*) echo $v ;; *) echo 0 ;; esac
Name: xemacs-packages-base
Version: 20100727
Release: 1%{?dist}
Summary: Base lisp packages for XEmacs
Group: Applications/Editors
# dired and efs are GPL+, rest GPLv2+
License: GPLv2+ and GPL+
URL: http://www.xemacs.org/Documentation/packageGuide.html
# Tarball created with Source99
Source0: %{name}-%{version}.tar.xz
Source99: %{name}-checkout.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: xemacs-nox
BuildRequires: texinfo
# xz for unpacking Source0
BuildRequires: xz
Requires: xemacs(bin) >= %(%{xemver})
%description
XEmacs is a highly customizable open source text editor and
application development system. It is protected under the GNU General
Public License and 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.
This package contains the minimal recommended set of additional lisp
packages for XEmacs: efs, xemacs-base and mule-base from upstream.
%package el
Summary: Emacs lisp source files for the base lisp packages for XEmacs
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description el
This package is not needed to run XEmacs; it contains the lisp source
files for the base lisp packages for XEmacs, mainly of interest when
developing or debugging the packages.
%prep
%setup -q
[ ! "%(%{xemver})" '<' "21.5" ] && x215="XEMACS_21_5=t" || x215=
cat << EOF > make.sh
#!/bin/sh
make \\
XEMACS_BINARY=%{_bindir}/xemacs-nox \\
XEMACS_INSTALLED_PACKAGES_ROOT=\$RPM_BUILD_ROOT%{pkgdir} \\
$x215 \\
"\$@"
EOF
chmod +x make.sh
%build
apkgs="apel dired efs fsf-compat xemacs-base"
xpkgs="efs xemacs-base"
mpkgs="mule-base"
./make.sh -C xemacs-packages autoloads PACKAGES="$apkgs"
./make.sh -C mule-packages autoloads PACKAGES="$mpkgs"
./make.sh -C xemacs-packages PACKAGES="$xpkgs"
./make.sh -C mule-packages PACKAGES="$mpkgs"
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{pkgdir}
./make.sh -C xemacs-packages/xemacs-base install
./make.sh -C xemacs-packages/efs install
./make.sh -C mule-packages/mule-base install
# separate files
rm -f *.files
echo "%%defattr(-,root,root,-)" > base-files
echo "%%defattr(-,root,root,-)" > el-files
find $RPM_BUILD_ROOT%{pkgdir}/* \
\( -type f -name '*.el.orig' -exec rm '{}' ';' \) -o \
\( -type f -not -name '*.el' -fprint base-non-el.files \) -o \
\( -type d -not -name info -fprintf dir.files "%%%%dir %%p\n" \) -o \
\( -name '*.el' \( -exec test -e '{}'c \; -fprint el-bytecomped.files -o \
-fprint base-el-not-bytecomped.files \) \)
sed -i -e "s|$RPM_BUILD_ROOT||" *.files
cat base-*.files dir.files | grep -v /info/ >> base-files
cat el-*.files >> el-files
# all info files packaged in xemacs-packages-extra-info for simplicity
rm -rf $RPM_BUILD_ROOT%{pkgdir}/*-packages/info
sed -i -e 's/^\(.*\(\.ja\|-ja\.texi\)\)$/%lang(ja) \1/' base-files
%clean
rm -rf $RPM_BUILD_ROOT
%files -f base-files
%files el -f el-files
%changelog
* Fri Aug 13 2010 Jerry James <loganjerry@gmail.com> - 20100727-1
- Update to new package release.
- New upstream CVS location in checkout script.
- Drop upstreamed patches.
- Use xz instead of lzma to compress.
* Tue Sep 1 2009 Jerry James <loganjerry@gmail.com> - 20090217-4
- Add mule-base patch to fix bz 480845 and hopefully bz 520248.
* Mon Aug 24 2009 Jerry James <loganjerry@gmail.com> - 20090217-3
- Add APEL patch to fix bz 503185 for XEmacs.
- Add dired patch to fix bz 504422.
- Add itimer patch preemptively.
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090217-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Sat Mar 7 2009 Ville Skyttä <ville.skytta at iki.fi> - 20090217-1
- Update to 2009-02-17.
- Compress source tarball with lzma.
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20070427-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Thu Aug 16 2007 Ville Skyttä <ville.skytta at iki.fi> - 20070427-2
- License: GPLv2+ and GPL+
* Fri May 18 2007 Ville Skyttä <ville.skytta at iki.fi> - 20070427-1
- 2007-04-27.
- Require an actual XEmacs editor, not just -common.
* Mon Apr 2 2007 Ville Skyttä <ville.skytta at iki.fi> - 20061221-1
- 2006-12-21.
* Sun Sep 10 2006 Ville Skyttä <ville.skytta at iki.fi> - 20060510-3
- Split minimal set of packages from xemacs-sumo.
- Really build from sources.