%define lispdir %{_datadir}/emacs/site-lisp
%define pkgdir %{_datadir}/xemacs/xemacs-packages
Summary: Basic library for handling email messages for Emacs
Name: flim
Version: 1.14.7
Release: 3
License: GPL
Group: Applications/Editors
URL: http://cvs.m17n.org/elisp/FLIM/index.html.ja.iso-2022-jp
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: apel, emacs
BuildArch: noarch
Source: ftp://ftp.m17n.org/pub/mule/flim/flim-1.14/%{name}-%{version}.tar.gz
Requires: apel
PreReq: /sbin/install-info
%description
FLIM is a library to provide basic features about message
representation and encoding for Emacs.
%package xemacs
Summary: Basic library for handling email messages for XEmacs
Group: Applications/Editors
Requires: apel-xemacs
BuildRequires: apel-xemacs, xemacs
%description xemacs
FLIM is a library to provide basic features about message
representation and encoding for Emacs.
%prep
%setup -q
%build
rm -f mailcap*
make LISPDIR=$RPM_BUILD_ROOT%{lispdir}
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall PREFIX=$RPM_BUILD_ROOT%{_prefix} LISPDIR=$RPM_BUILD_ROOT%{lispdir}
make clean
make EMACS=xemacs PACKAGEDIR=$RPM_BUILD_ROOT%{pkgdir} install-package
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, root)
%doc FLIM-API.en README.en README.ja
%{lispdir}
%files xemacs
%defattr (-, root, root)
%doc README.en README.ja
%{pkgdir}
%changelog
* Mon May 30 2005 Jens Petersen <petersen@redhat.com> - 1.14.7-3
- Initial import into Extras
- restore xemacs subpackage
* Wed Feb 23 2005 Elliot Lee <sopwith@redhat.com> 1.14.7-2
- Remove xemacs subpackage
* Sat Oct 9 2004 Jens Petersen <petersen@redhat.com> - 1.14.7-1
- update to 1.14.7 release
- flim-1.14.6-mel-u-tempfile.patch no longer needed
* Wed Oct 6 2004 Jens Petersen <petersen@redhat.com> - 1.14.6-3
- drop requirements on emacs/xemacs for -nox users
(Lars Hupfeldt Nielsen, 134479)
* Tue Sep 28 2004 Warren Togami <wtogami@redhat.com> - 1.14.6-2
- remove redundant docs, large changelog, tests
* Thu May 20 2004 Jens Petersen <petersen@redhat.com> - 1.14.6-1
- update to 1.14.6
- add flim-1.14.6-mel-u-tempfile.patch to fix CAN-2004-0422
- move redundant %%emacsver and %%xemacsver into requirements
- better url and summary
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> - 1.14.5-2
- rebuilt
* Sat Aug 2 2003 Jens Petersen <petersen@redhat.com> - 1.14.5-1
- update to 1.14.5
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt
* Tue Dec 24 2002 Jens Petersen <petersen@redhat.com> 1.14.4-1
- update to 1.14.4
- install xemacs package under datadir
- own emacs site-lisp and down
- own xemacs-packages and down
* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
- rebuild in current collinst
* Thu Jul 18 2002 Akira TAGOH <tagoh@redhat.com> 1.14.3-7
- add the owned directory.
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Thu May 23 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Fri Feb 22 2002 Tim Powers <timp@redhat.com>
- rebuilt in new environment
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Mon Nov 30 2001 Jens Petersen <petersen@redhat.com> 1.14.3-2
- noarch, since xemacs available on ia64
- require apel
* Fri Oct 26 2001 Akira TAGOH <tagoh@redhat.com> 1.14.3-1
- Initial release.
Spearated from semi package.