Drop static libs as suggested in bug 377731.

epel9
Pawel Salek 17 years ago
parent 32fd355600
commit 3d0848a1ce

@ -1,17 +1,17 @@
%define plugindir %{_libdir}/esmtp-plugins
Summary: SMTP client library
Name: libesmtp
Version: 1.0.4
Release: 2%{?dist}
License: LGPL
Group: System Environment/Libraries
Source: http://www.stafford.uklinux.net/libesmtp/%{name}-%{version}.tar.bz2
Patch1: libesmtp-build.patch
Patch2: libesmtp-1.0.4-ssl.patch
URL: http://www.stafford.uklinux.net/libesmtp/
Summary: SMTP client library
Name: libesmtp
Version: 1.0.4
Release: 3%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
Source: http://www.stafford.uklinux.net/libesmtp/%{name}-%{version}.tar.bz2
Patch1: libesmtp-build.patch
Patch2: libesmtp-1.0.4-ssl.patch
URL: http://www.stafford.uklinux.net/libesmtp/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: openssl-devel pkgconfig automake libtool
BuildRequires: openssl-devel pkgconfig
%description
LibESMTP is a library to manage posting (or submission of) electronic
@ -22,8 +22,9 @@ functionality is not the program's primary purpose.
%package devel
Summary: Headers and development libraries for libESMTP
# example file is under the GPLv2+
License: LGPLv2+ and GPLv2+
Group: Development/Libraries
License: LGPL/GPL
Requires: %{name} = %{version}-%{release}, openssl-devel
%description devel
@ -39,22 +40,25 @@ necessary for building programs against libesmtp.
%patch1 -p1 -b .build
#%patch2 -p1 -b .ssl
# Keep rpmlint happy about libesmtp-debuginfo...
chmod a-x htable.c
%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
--enable-etrn --disable-isoc --disable-more-warnings
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
make DESTDIR=$RPM_BUILD_ROOT install INSTALL='install -p'
rm $RPM_BUILD_ROOT/%{_libdir}/*.la
rm $RPM_BUILD_ROOT/%{plugindir}/*.a
%clean
@ -79,6 +83,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libesmtp.a
%changelog
* Thu Nov 15 2007 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-3
- drop static libs as suggested in bug 377731.
* Mon Sep 11 2006 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-2
- rebuild for FC6.
@ -139,31 +146,3 @@ rm -rf $RPM_BUILD_ROOT
* Tue Jul 23 2002 Bill Nottingham <notting@redhat.com> 0.8.12-2
- fix broken lib (no pthread dependency)
* Mon Jun 24 2002 Bill Nottingham <notting@redhat.com> 0.8.12-1
- update to 0.8.12
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Thu May 23 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Thu Aug 30 2001 Bill Nottingham <notting@redhat.com>
- fix assertion failure when sending mail (#52940)
* Mon Aug 20 2001 Bill Nottingham <notting@redhat.com>
- update to 0.8.4 (fixes CRAM-MD5, #52097)
* Mon Jul 30 2001 Bill Nottingham <notting@redhat.com>
- don't enable starttls (not fully tested, at request of author)
* Wed Jul 24 2001 Bill Nottingham <notting@redhat.com>
- rebuild, openssl weirdness
* Mon Jul 23 2001 Bill Nottingham <notting@redhat.com>
- initial build, clean up included spec file
- add %post/%postun

Loading…
Cancel
Save