diff --git a/libesmtp-1.0.4-bloat.patch b/libesmtp-1.0.4-bloat.patch new file mode 100644 index 0000000..1202fe5 --- /dev/null +++ b/libesmtp-1.0.4-bloat.patch @@ -0,0 +1,13 @@ +Index: libesmtp-config.in +=================================================================== +--- libesmtp-config.in.orig 2001-12-12 15:30:37.000000000 +0100 ++++ libesmtp-config.in 2007-09-04 08:34:01.000000000 +0200 +@@ -69,7 +69,7 @@ while test $# -gt 0; do + ;; + + --libs) +- echo @PTHREAD_LDFLAGS@ -L@libdir@ -lesmtp @LIBS@ @PTHREAD_LIBS@ ++ echo -lesmtp + ;; + + --plugindir) diff --git a/libesmtp.changes b/libesmtp.changes index f323887..a8d61a0 100644 --- a/libesmtp.changes +++ b/libesmtp.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Tue Sep 4 16:41:52 CEST 2007 - mrueckert@suse.de + +- remove postfix from the buildrequires +- do not package generic INSTALL file + +------------------------------------------------------------------- +Tue Sep 4 09:37:02 CEST 2007 - crrodriguez@suse.de + +- fix #307257 missing requires of the libesmtp-devel package + ------------------------------------------------------------------- Wed Jan 25 21:32:18 CET 2006 - mls@suse.de diff --git a/libesmtp.spec b/libesmtp.spec index c75a301..892972f 100644 --- a/libesmtp.spec +++ b/libesmtp.spec @@ -1,27 +1,28 @@ # # spec file for package libesmtp (Version 1.0.4) # -# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild -Name: libesmtp -BuildRequires: bind-devel openssl-devel postfix -URL: http://www.stafford.uklinux.net/libesmtp/ -License: GPL, LGPL -Group: Development/Libraries/C and C++ -Summary: A Library for Posting Electronic Mail -Version: 1.0.4 -Release: 1 -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: %{name}-%{version}.tar.bz2 -Patch0: libesmtp-removedecls.diff -Patch1: libesmtp-lwres_includedir.patch +Name: libesmtp +BuildRequires: bind-devel openssl-devel +Url: http://www.stafford.uklinux.net/libesmtp/ +License: GPL v2 or later; LGPL v2 or later +Group: Development/Libraries/C and C++ +Summary: A Library for Posting Electronic Mail +Version: 1.0.4 +Release: 97 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source0: %{name}-%{version}.tar.bz2 +Patch0: libesmtp-removedecls.diff +Patch1: libesmtp-lwres_includedir.patch +Patch2: libesmtp-1.0.4-bloat.patch %description libESMTP is a library to manage posting (or submission of) electronic @@ -32,6 +33,24 @@ functionality is not that program's primary purpose. +Authors: +-------- + Brian Stafford + +%package devel +Summary: A Library for Posting Electronic Mail +Group: Development/Libraries/C and C++ +Requires: libesmtp = %{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. 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 that program's primary purpose. + + + Authors: -------- Brian Stafford @@ -40,60 +59,47 @@ Authors: %setup -q %patch0 %patch1 +%patch2 %build -autoreconf -CFLAGS="$CFLAGS $RPM_OPT_FLAGS" \ -CXXFLAGS="$CFLAGS $RPM_OPT_FLAGS" \ - ./configure \ - --prefix=/usr \ - --libdir=%{_libdir} \ - --disable-static \ +autoreconf -fi +%configure --disable-static --with-pic \ --with-lwres=/usr/include/bind/ \ --enable-ntlm \ --enable-etrn -make +%{__make} %{?jobs:-j%jobs} %install -make DESTDIR=${RPM_BUILD_ROOT}/ install +make DESTDIR=%{buildroot} install +#uses dlsym not ltdl ..useless files +rm -rf %{buildroot}%{_libdir}/esmtp-plugins/*a +rm -rf %{buildroot}%{_libdir}/*a %clean -rm -rf ${RPM_BUILD_ROOT} -%package devel -Summary: A Library for Posting Electronic Mail -Group: Development/Libraries/C and C++ -Requires: libesmtp = %{version} +rm -rf %{buildroot} -%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. 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 that program's primary purpose. - - - -Authors: --------- - Brian Stafford +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig %files %defattr(-,root,root) -%doc README AUTHORS INSTALL ChangeLog COPYING -/usr/bin/* -%dir /usr/%_lib/esmtp-plugins -/usr/%_lib/esmtp-plugins/*so* -/usr/%_lib/libesmtp.*so.* +%doc README AUTHORS ChangeLog COPYING +%dir %{_libdir}/esmtp-plugins +%{_libdir}/esmtp-plugins/*so* +%{_libdir}/libesmtp.*so.* %files devel %defattr(-,root,root) -/usr/%_lib/esmtp-plugins/*a -/usr/include/* -/usr/%_lib/libesmtp.*so -/usr/%_lib/*a - -%changelog -n libesmtp +%{_bindir}/libesmtp-config +%{_includedir}/*.h +%{_libdir}/libesmtp.*so +%changelog +* Tue Sep 04 2007 - mrueckert@suse.de +- remove postfix from the buildrequires +- do not package generic INSTALL file +* Tue Sep 04 2007 - crrodriguez@suse.de +- fix #307257 missing requires of the libesmtp-devel package * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Tue Jan 17 2006 - lmichnovic@suse.cz