This commit is contained in:
parent
1d330fd996
commit
d542c83cfc
13
libesmtp-1.0.4-bloat.patch
Normal file
13
libesmtp-1.0.4-bloat.patch
Normal file
@ -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)
|
@ -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
|
Wed Jan 25 21:32:18 CET 2006 - mls@suse.de
|
||||||
|
|
||||||
|
@ -1,27 +1,28 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libesmtp (Version 1.0.4)
|
# 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
|
# This file and all modifications and additions to the pristine
|
||||||
# package are under the same license as the package itself.
|
# 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
|
# norootforbuild
|
||||||
|
|
||||||
Name: libesmtp
|
Name: libesmtp
|
||||||
BuildRequires: bind-devel openssl-devel postfix
|
BuildRequires: bind-devel openssl-devel
|
||||||
URL: http://www.stafford.uklinux.net/libesmtp/
|
Url: http://www.stafford.uklinux.net/libesmtp/
|
||||||
License: GPL, LGPL
|
License: GPL v2 or later; LGPL v2 or later
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Summary: A Library for Posting Electronic Mail
|
Summary: A Library for Posting Electronic Mail
|
||||||
Version: 1.0.4
|
Version: 1.0.4
|
||||||
Release: 1
|
Release: 97
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Patch0: libesmtp-removedecls.diff
|
Patch0: libesmtp-removedecls.diff
|
||||||
Patch1: libesmtp-lwres_includedir.patch
|
Patch1: libesmtp-lwres_includedir.patch
|
||||||
|
Patch2: libesmtp-1.0.4-bloat.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libESMTP is a library to manage posting (or submission of) electronic
|
libESMTP is a library to manage posting (or submission of) electronic
|
||||||
@ -36,29 +37,6 @@ Authors:
|
|||||||
--------
|
--------
|
||||||
Brian Stafford <brian@stafford.uklinux.net>
|
Brian Stafford <brian@stafford.uklinux.net>
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q
|
|
||||||
%patch0
|
|
||||||
%patch1
|
|
||||||
|
|
||||||
%build
|
|
||||||
autoreconf
|
|
||||||
CFLAGS="$CFLAGS $RPM_OPT_FLAGS" \
|
|
||||||
CXXFLAGS="$CFLAGS $RPM_OPT_FLAGS" \
|
|
||||||
./configure \
|
|
||||||
--prefix=/usr \
|
|
||||||
--libdir=%{_libdir} \
|
|
||||||
--disable-static \
|
|
||||||
--with-lwres=/usr/include/bind/ \
|
|
||||||
--enable-ntlm \
|
|
||||||
--enable-etrn
|
|
||||||
make
|
|
||||||
|
|
||||||
%install
|
|
||||||
make DESTDIR=${RPM_BUILD_ROOT}/ install
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: A Library for Posting Electronic Mail
|
Summary: A Library for Posting Electronic Mail
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
@ -77,23 +55,51 @@ Authors:
|
|||||||
--------
|
--------
|
||||||
Brian Stafford <brian@stafford.uklinux.net>
|
Brian Stafford <brian@stafford.uklinux.net>
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0
|
||||||
|
%patch1
|
||||||
|
%patch2
|
||||||
|
|
||||||
|
%build
|
||||||
|
autoreconf -fi
|
||||||
|
%configure --disable-static --with-pic \
|
||||||
|
--with-lwres=/usr/include/bind/ \
|
||||||
|
--enable-ntlm \
|
||||||
|
--enable-etrn
|
||||||
|
%{__make} %{?jobs:-j%jobs}
|
||||||
|
|
||||||
|
%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 %{buildroot}
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README AUTHORS INSTALL ChangeLog COPYING
|
%doc README AUTHORS ChangeLog COPYING
|
||||||
/usr/bin/*
|
%dir %{_libdir}/esmtp-plugins
|
||||||
%dir /usr/%_lib/esmtp-plugins
|
%{_libdir}/esmtp-plugins/*so*
|
||||||
/usr/%_lib/esmtp-plugins/*so*
|
%{_libdir}/libesmtp.*so.*
|
||||||
/usr/%_lib/libesmtp.*so.*
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/usr/%_lib/esmtp-plugins/*a
|
%{_bindir}/libesmtp-config
|
||||||
/usr/include/*
|
%{_includedir}/*.h
|
||||||
/usr/%_lib/libesmtp.*so
|
%{_libdir}/libesmtp.*so
|
||||||
/usr/%_lib/*a
|
%changelog
|
||||||
|
* Tue Sep 04 2007 - mrueckert@suse.de
|
||||||
%changelog -n libesmtp
|
- 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
|
* Wed Jan 25 2006 - mls@suse.de
|
||||||
- converted neededforbuild to BuildRequires
|
- converted neededforbuild to BuildRequires
|
||||||
* Tue Jan 17 2006 - lmichnovic@suse.cz
|
* Tue Jan 17 2006 - lmichnovic@suse.cz
|
||||||
|
Loading…
Reference in New Issue
Block a user