From 3d0848a1ce65ca2125357d0bf2415a94cc2f1aca Mon Sep 17 00:00:00 2001 From: Pawel Salek Date: Thu, 15 Nov 2007 21:22:15 +0000 Subject: [PATCH] Drop static libs as suggested in bug 377731. --- libesmtp.spec | 67 ++++++++++++++++++--------------------------------- 1 file changed, 23 insertions(+), 44 deletions(-) diff --git a/libesmtp.spec b/libesmtp.spec index 245ee5b..f81ae99 100644 --- a/libesmtp.spec +++ b/libesmtp.spec @@ -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 - 1.0.4-3 +- drop static libs as suggested in bug 377731. + * Mon Sep 11 2006 Pawel Salek - 1.0.4-2 - rebuild for FC6. @@ -139,31 +146,3 @@ rm -rf $RPM_BUILD_ROOT * Tue Jul 23 2002 Bill Nottingham 0.8.12-2 - fix broken lib (no pthread dependency) - -* Mon Jun 24 2002 Bill Nottingham 0.8.12-1 -- update to 0.8.12 - -* Fri Jun 21 2002 Tim Powers -- automated rebuild - -* Thu May 23 2002 Tim Powers -- automated rebuild - -* Wed Jan 09 2002 Tim Powers -- automated rebuild - -* Thu Aug 30 2001 Bill Nottingham -- fix assertion failure when sending mail (#52940) - -* Mon Aug 20 2001 Bill Nottingham -- update to 0.8.4 (fixes CRAM-MD5, #52097) - -* Mon Jul 30 2001 Bill Nottingham -- don't enable starttls (not fully tested, at request of author) - -* Wed Jul 24 2001 Bill Nottingham -- rebuild, openssl weirdness - -* Mon Jul 23 2001 Bill Nottingham -- initial build, clean up included spec file -- add %post/%postun