087f132
%define	lispdir		%{_datadir}/emacs/site-lisp
087f132
%define	pkgdir		%{_datadir}/xemacs/xemacs-packages
087f132
087f132
Summary: Basic library for handling email messages for Emacs
087f132
Name: flim
624174c
Version: 1.14.8
10556b2
Release: 5%{?dist}
ebd95e4
License: GPLv2+
087f132
Group: Applications/Editors
2e1f266
URL: http://www.kanji.zinbun.kyoto-u.ac.jp/~tomo/elisp/FLIM/
087f132
BuildRoot: %{_tmppath}/%{name}-%{version}-root
087f132
BuildRequires: apel, emacs
087f132
BuildArch: noarch
2e1f266
Source: http://www.kanji.zinbun.kyoto-u.ac.jp/~tomo/comp/emacsen/lisp/flim/flim-1.14/%{name}-%{version}.tar.gz
087f132
Requires: apel
087f132
PreReq: /sbin/install-info
624174c
Patch1: flim-xemacs-batch-autoloads.patch
087f132
087f132
%description
087f132
FLIM is a library to provide basic features about message
087f132
representation and encoding for Emacs.
087f132
624174c
087f132
%package xemacs
087f132
Summary: Basic library for handling email messages for XEmacs
087f132
Group: Applications/Editors
087f132
Requires: apel-xemacs
087f132
BuildRequires: apel-xemacs, xemacs
087f132
087f132
%description xemacs
087f132
FLIM is a library to provide basic features about message
087f132
representation and encoding for Emacs.
087f132
624174c
087f132
%prep
087f132
%setup -q
624174c
%patch1 -p1 -b .1-pkg-autoload
624174c
087f132
087f132
%build
087f132
rm -f mailcap*
087f132
make LISPDIR=$RPM_BUILD_ROOT%{lispdir}
087f132
624174c
087f132
%install
087f132
rm -rf $RPM_BUILD_ROOT
087f132
82aecdb
# build for emacs
087f132
%makeinstall PREFIX=$RPM_BUILD_ROOT%{_prefix} LISPDIR=$RPM_BUILD_ROOT%{lispdir}
82aecdb
087f132
make clean
82aecdb
82aecdb
# build for xemacs
82aecdb
## hack for batch-update-autoloads
82aecdb
touch auto-autoloads.el custom-load.el
087f132
make EMACS=xemacs PACKAGEDIR=$RPM_BUILD_ROOT%{pkgdir} install-package
087f132
624174c
087f132
%clean
087f132
rm -rf $RPM_BUILD_ROOT
087f132
624174c
087f132
%files
087f132
%defattr (-, root, root)
087f132
%doc FLIM-API.en README.en README.ja
087f132
%{lispdir}
087f132
624174c
087f132
%files xemacs
087f132
%defattr (-, root, root)
087f132
%doc README.en README.ja
087f132
%{pkgdir}
087f132
624174c
087f132
%changelog
10556b2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.8-5
10556b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
10556b2
6c6cacb
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.8-4
6c6cacb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6c6cacb
ebd95e4
* Mon Sep 24 2007 Jens Petersen <petersen@redhat.com> - 1.14.8-3
ebd95e4
- update license to GPLv2+
ebd95e4
2e1f266
* Mon Sep 25 2006 Jens Petersen <petersen@redhat.com> - 1.14.8-2
2e1f266
- update url and source location
2e1f266
624174c
* Fri Aug  4 2006 Jens Petersen <petersen@redhat.com> - 1.14.8-1
624174c
- update to 1.14.8
624174c
- add flim-xemacs-batch-autoloads.patch to fix generation of autoloads
624174c
  for xemacs-21.5
624174c
087f132
* Mon May 30 2005 Jens Petersen <petersen@redhat.com> - 1.14.7-3
087f132
- Initial import into Extras
087f132
- restore xemacs subpackage
087f132
087f132
* Wed Feb 23 2005 Elliot Lee <sopwith@redhat.com> 1.14.7-2
087f132
- Remove xemacs subpackage
087f132
087f132
* Sat Oct  9 2004 Jens Petersen <petersen@redhat.com> - 1.14.7-1
087f132
- update to 1.14.7 release
087f132
- flim-1.14.6-mel-u-tempfile.patch no longer needed
087f132
087f132
* Wed Oct  6 2004 Jens Petersen <petersen@redhat.com> - 1.14.6-3
087f132
- drop requirements on emacs/xemacs for -nox users
087f132
  (Lars Hupfeldt Nielsen, 134479)
087f132
087f132
* Tue Sep 28 2004 Warren Togami <wtogami@redhat.com> - 1.14.6-2
087f132
- remove redundant docs, large changelog, tests
087f132
087f132
* Thu May 20 2004 Jens Petersen <petersen@redhat.com> - 1.14.6-1
087f132
- update to 1.14.6
087f132
- add flim-1.14.6-mel-u-tempfile.patch to fix CAN-2004-0422
087f132
- move redundant %%emacsver and %%xemacsver into requirements
087f132
- better url and summary
087f132
087f132
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> - 1.14.5-2
087f132
- rebuilt
087f132
087f132
* Sat Aug  2 2003 Jens Petersen <petersen@redhat.com> - 1.14.5-1
087f132
- update to 1.14.5
087f132
087f132
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
087f132
- rebuilt
087f132
087f132
* Tue Dec 24 2002 Jens Petersen <petersen@redhat.com> 1.14.4-1
087f132
- update to 1.14.4
087f132
- install xemacs package under datadir
087f132
- own emacs site-lisp and down
087f132
- own xemacs-packages and down
087f132
087f132
* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
087f132
- rebuild in current collinst
087f132
087f132
* Thu Jul 18 2002 Akira TAGOH <tagoh@redhat.com> 1.14.3-7
087f132
- add the owned directory.
087f132
087f132
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
087f132
- automated rebuild
087f132
087f132
* Thu May 23 2002 Tim Powers <timp@redhat.com>
087f132
- automated rebuild
087f132
087f132
* Fri Feb 22 2002 Tim Powers <timp@redhat.com>
087f132
- rebuilt in new environment
087f132
087f132
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
087f132
- automated rebuild
087f132
087f132
* Mon Nov 30 2001 Jens Petersen <petersen@redhat.com> 1.14.3-2
087f132
- noarch, since xemacs available on ia64 
087f132
- require apel
087f132
087f132
* Fri Oct 26 2001 Akira TAGOH <tagoh@redhat.com> 1.14.3-1
087f132
- Initial release.
624174c
  Separated from semi package.