New package: libesmtp

Toshio Kuratomi abadger at sover.net
Sat Jun 11 22:29:57 UTC 2005


On Sat, 2005-06-11 at 18:02 +0000, Pawel Salek wrote:
> Package Name: libesmtp
> 
> Description:
> LibESMTP is a library to manage posting (or submission of) electronic
> mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as
> Exim.  It may be used as part of a Mail User Agent (MUA) or another
> program that must be able to post electronic mail but where mail
> functionality is not the program's primary purpose.
> 
> Location:
> http://balsa.gnome.org/libesmtp-1.0.3r1-1.FC4.src.rpm
> http://balsa.gnome.org/libesmtp.spec
> 
> md5sums:
> a76f22b984cf36685080f8f3c76f9945  libesmtp-1.0.3r1-1.FC4.src.rpm
> 9ff8aa0c2bedea197a4d906a16d999d4  libesmtp.spec
> 
> srpm passes rpmlint test with no warnings. The libesmtp package is  
> basically the same as used to be included in Fedora Core 3, apart from:
> 1). changes to the spec file needed to get the package built under  
> Fedora-devel and get rid of rpmlint error and warnings.
> 
> 2). an extra patch for the build system: original configure script  
> modifies CFLAGS which auto* tools frown upon. This patch has already  
> been communicated to libesmtp author.

Hmmm... This is actually a pretty major departure from the FC4-devel
version of the spec.  I have a tendency to fiddle too much with other
people's specs so it's probably safer if you take a look at the
FC4-devel spec (attached) and then post a revised version for review.

-Toshio
-------------- next part --------------
%define plugindir %{_libdir}/esmtp-plugins

Summary: SMTP client library.
Name:     	libesmtp
Version:  	1.0.3r1
Release: 2
License:	LGPL
Group: System Environment/Libraries
Source:  	http://www.stafford.uklinux.net/libesmtp/%{name}-%{version}.tar.bz2
Patch0:		libesmtp-pthread.patch
URL:       	http://www.stafford.uklinux.net/libesmtp/
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
BuildPrereq:	openssl-devel pkgconfig

%description
LibESMTP is a library to manage posting (or submission of) electronic
mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as
Exim. It may be used as part of a Mail User Agent (MUA) or another
program that must be able to post electronic mail but where mail
functionality is not the program's primary purpose.

%package devel
Summary: Headers and development libraries for libESMTP.
Group: Development/Libraries
Requires: %{name} = %{version}

%description devel
LibESMTP is a library to manage posting (or submission of) electronic
mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as
Exim.

The libesmtp-devel package contains headers and development libraries
necessary for building programs against libesmtp.

%prep 
%setup -q
%patch0 -p1 -b .pthread

%build
if pkg-config openssl ; then
  export CFLAGS="$CFLAGS $RPM_OPT_FLAGS `pkg-config --cflags openssl`"
  export CPPFLAGS="$CPPFLAGS `pkg-config --cflags-only-I openssl`"
  export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
fi
%configure --with-auth-plugin-dir=%{plugindir} --enable-pthreads \
  --enable-require-all-recipients --enable-debug \
  --enable-etrn
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la


%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.GPL NEWS Notes README
%{_libdir}/libesmtp.so.*
%{plugindir}

%files devel
%defattr(-,root,root)
%{_bindir}/libesmtp-config
%{_prefix}/include/*
%{_libdir}/libesmtp.so
%{_libdir}/libesmtp.a

%changelog
* Thu Sep 30 2004 Miloslav Trmac <mitr at redhat.com> - 1.0.3r1-2
- Include libesmtp-config in libesmtp-devel (#125426, patch by Robert Scheck)

* Tue Jul 13 2004 John Dennis <jdennis at redhat.com> 1.0.3r1-1
- bring up to latest upstream release

* Tue Jun 15 2004 Elliot Lee <sopwith at redhat.com>
- rebuilt

* Tue Mar 02 2004 Elliot Lee <sopwith at redhat.com>
- rebuilt

* Fri Feb 13 2004 Elliot Lee <sopwith at redhat.com>
- rebuilt

* Thu Jan 29 2004 Bill Nottingham <notting at redhat.com> 1.0.2-1
- upgrade to 1.0.2 (#113894)

* Fri Oct  3 2003 Bill Nottingham <notting at redhat.com> 1.0.1-1
- update to 1.0.1, rebuild to fix some broken 64-bit libs

* Wed Jun 04 2003 Elliot Lee <sopwith at redhat.com>
- rebuilt

* Wed Jan 22 2003 Tim Powers <timp at redhat.com>
- rebuilt

* Tue Jan  7 2003 Nalin Dahyabhai <nalin at redhat.com> 0.8.12-4
- include compilation flags for openssl as defined for pkg-config
- don't blow up on compile because key schedules aren't arrays

* Tue Nov  5 2002 Bill Nottingham <notting at redhat.com> 0.8.12-3
- build on various platforms

* Tue Jul 23 2002 Bill Nottingham <notting at redhat.com> 0.8.12-2
- fix broken lib (no pthread dependency)

* Mon Jun 24 2002 Bill Nottingham <notting at redhat.com> 0.8.12-1
- update to 0.8.12

* Fri Jun 21 2002 Tim Powers <timp at redhat.com>
- automated rebuild

* Thu May 23 2002 Tim Powers <timp at redhat.com>
- automated rebuild

* Wed Jan 09 2002 Tim Powers <timp at redhat.com>
- automated rebuild

* Thu Aug 30 2001 Bill Nottingham <notting at redhat.com>
- fix assertion failure when sending mail (#52940)

* Mon Aug 20 2001 Bill Nottingham <notting at redhat.com>
- update to 0.8.4 (fixes CRAM-MD5, #52097)

* Mon Jul 30 2001 Bill Nottingham <notting at redhat.com>
- don't enable starttls (not fully tested, at request of author)

* Wed Jul 24 2001 Bill Nottingham <notting at redhat.com>
- rebuild, openssl weirdness

* Mon Jul 23 2001 Bill Nottingham <notting at redhat.com>
- initial build, clean up included spec file
- add %post/%postun


More information about the fedora-extras-list mailing list