File emil.spec of Package emil

#
# spec file for package emil (Version 2.1.0beta9)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           emil
BuildRequires:  bison ed flex
License:        GNU General Public License (GPL)
Group:          Productivity/Networking/Email/Utilities
Autoreqprov:    on
Version:        2.1.0beta9
Release:        853
Summary:        E-Mail Filter
Source:         ftp://ftp.uu.se/pub/unix/networking/mail/emil/emil-2.1.0-beta9.tar.gz
Patch:          emil-2.1.0-beta9.diff
Patch1:         ftp://ftp.uu.se/pub/unix/networking/mail/emil/emil-2.1.0-beta9.patch1
Patch2:         warn.patch
Patch3:         emil-2.1.0-beta9-flex.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This program enables you to convert MIME, SUN mailtool, and 'plain old
style RFC822'.

It is especially useful for elm users.



Authors:
--------
    Martin Wendel <Martin.Wendel@its.uu.se>
    Torbjorn Wictorin <Torbjorn Wictorin@its.uu.se>

%prep
%setup -n emil-2.1.0-beta9
%patch
%patch1
%patch2
%patch3

%build
CFLAGS=$RPM_OPT_FLAGS ./configure --prefix=/usr --mandir='${prefix}/share/man'
make SENDMAILPATH=/usr/sbin/sendmail

%install
make prefix=$RPM_BUILD_ROOT/usr install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/usr/bin/emil
/usr/lib/charsets.cpl
%config /usr/lib/emil.cf
%{_mandir}/man8/emil.8.gz
%{_mandir}/man8/emil.cf.8.gz

%changelog
* Thu Mar 29 2007 - schwab@suse.de
- Add flex and bison to BuildRequires.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jul 06 2005 - schwab@suse.de
- Fix missing declarations.
* Fri Aug 27 2004 - schwab@suse.de
- Fix for new flex.
* Sat Apr 17 2004 - schwab@suse.de
- Pacify autobuild.
* Thu Mar 25 2004 - mmj@suse.de
- Fix sendmail path
* Fri Mar 05 2004 - schwab@suse.de
- Remove fixed sized buffers.
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Fri Aug 01 2003 - coolo@suse.de
- don't strip explictly
* Tue Apr 22 2003 - coolo@suse.de
- use BuildRoot
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Sat Jan 26 2002 - schwab@suse.de
- Fix for bison 1.32.
* Mon Sep 25 2000 - schwab@suse.de
- Add group tag.
* Thu Jan 20 2000 - schwab@suse.de
- /usr/man -> /usr/share/man
* Wed Sep 22 1999 - schwab@suse.de
- buffer overflow fixes from Thomas
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Mon Aug 30 1999 - schwab@suse.de
- specfile cleanup
- apply patch from
  ftp://ftp.uu.se/pub/unix/networking/mail/emil/emil-2.1.0-beta9.patch1
* Fri Sep 25 1998 - ro@suse.de
- moved initialisation of file* into main
* Thu Jan 02 1997 - florian@suse.de
- Update auf neue Version 2.1.0-beta9.
openSUSE Build Service is sponsored by