Blob Blame History Raw
%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.8
Release: 3%{?dist}
License: GPLv2+
Group: Applications/Editors
URL: http://www.kanji.zinbun.kyoto-u.ac.jp/~tomo/elisp/FLIM/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: apel, emacs
BuildArch: noarch
Source: http://www.kanji.zinbun.kyoto-u.ac.jp/~tomo/comp/emacsen/lisp/flim/flim-1.14/%{name}-%{version}.tar.gz
Requires: apel
PreReq: /sbin/install-info
Patch1: flim-xemacs-batch-autoloads.patch

%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
%patch1 -p1 -b .1-pkg-autoload


%build
rm -f mailcap*
make LISPDIR=$RPM_BUILD_ROOT%{lispdir}


%install
rm -rf $RPM_BUILD_ROOT

# build for emacs
%makeinstall PREFIX=$RPM_BUILD_ROOT%{_prefix} LISPDIR=$RPM_BUILD_ROOT%{lispdir}

make clean

# build for xemacs
## hack for batch-update-autoloads
touch auto-autoloads.el custom-load.el
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 Sep 24 2007 Jens Petersen <petersen@redhat.com> - 1.14.8-3
- update license to GPLv2+

* Mon Sep 25 2006 Jens Petersen <petersen@redhat.com> - 1.14.8-2
- update url and source location

* Fri Aug  4 2006 Jens Petersen <petersen@redhat.com> - 1.14.8-1
- update to 1.14.8
- add flim-xemacs-batch-autoloads.patch to fix generation of autoloads
  for xemacs-21.5

* 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.
  Separated from semi package.