File wl-xemacs.spec of Package wl-xemacs

# spec file for package wl-xemacs (Version 2.12.0)
# 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

# norootforbuild

Name:           wl-xemacs
BuildRequires:  compface flim-xemacs libpng-devel libtiff-devel openldap2-devel semi-xemacs xemacs-packages xorg-x11-devel
License:        GPL v2 or later
Group:          Productivity/Editors/Emacs
Requires:       xemacs, flim-xemacs, semi-xemacs, xemacs-packages
AutoReqProv:    on
Version:        2.12.0
Release:        255
# original source is gzipped.
Source1:        texi2utf8
Patch:          wl-2.12.0.dif
Patch1:         info-utf8.patch
Summary:        Wanderlust, Yet Another Message Interface On Emacsen
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
# %description -l ja
# Wanderlust は Emacs 上で動く IMAP4rev1 対応のメール/ニュース管理システムです。
# このパッケージは XEmacs21 用です。
# 著者:
# ------
#     Yuuichi Teranishi  <>

Wanderlust is a mail and news management system with IMAP4rev1 support
for Emacsen. This package is for XEmacs.

    Yuuichi Teranishi <>

%setup -q -n wl-%{version}
%patch1 -p1
rm *.orig
chmod 755 $RPM_SOURCE_DIR/texi2utf8
make EMACS=xemacs check

%define xemacs_package_dir /usr/share/xemacs/site-packages/
make package PACKAGEDIR=%{xemacs_package_dir}

make install-package PACKAGEDIR=$RPM_BUILD_ROOT%{xemacs_package_dir}
rm -f $RPM_BUILD_ROOT%{xemacs_package_dir}/info/dir
gzip --best $RPM_BUILD_ROOT%{xemacs_package_dir}/info/*.info

%post -n wl-xemacs
for i in wl wl-ja
    %install_info --info-dir=%{xemacs_package_dir}/info/ %{xemacs_package_dir}/info/${i}.info.gz

%preun -n wl-xemacs
for i in wl wl-ja
    %install_info --delete --info-dir=%{xemacs_package_dir}/info/ %{xemacs_package_dir}/info/${i}.info.gz

#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%doc BUGS* COPYING ChangeLog INSTALL* NEWS* README* WL* samples/
%dir %{xemacs_package_dir}/
%dir %{xemacs_package_dir}/info/
%doc %{xemacs_package_dir}/info/*
%dir %{xemacs_package_dir}/lisp/
%dir %{xemacs_package_dir}/etc/

openSUSE Build Service is sponsored by