36c6164
%define plugindir %{_libdir}/esmtp-plugins
36c6164
3d0848a
Summary:        SMTP client library
3d0848a
Name:           libesmtp
Pawel Salek 3f0e685
Version:        1.0.6
777fde9
Release:        20%{?dist}
3d0848a
License:        LGPLv2+
3d0848a
Source:         http://www.stafford.uklinux.net/libesmtp/%{name}-%{version}.tar.bz2
3d0848a
URL:            http://www.stafford.uklinux.net/libesmtp/
Igor Gnatenko 61c08e0
BuildRequires:  gcc
154344e
BuildRequires:  openssl-devel pkgconfig autoconf automake libtool
c84d747
BuildRequires: make
154344e
Patch0: libesmtp-1.0.6-openssl-1.1.patch
36c6164
36c6164
%description
36c6164
LibESMTP is a library to manage posting (or submission of) electronic
36c6164
mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as
36c6164
Exim. It may be used as part of a Mail User Agent (MUA) or another
36c6164
program that must be able to post electronic mail but where mail
36c6164
functionality is not the program's primary purpose.
36c6164
36c6164
%package devel
36c6164
Summary: Headers and development libraries for libESMTP
3d0848a
# example file is under the GPLv2+
3d0848a
License: LGPLv2+ and GPLv2+
ea97234
Requires: %{name} = %{version}-%{release}, openssl-devel
36c6164
36c6164
%description devel
36c6164
LibESMTP is a library to manage posting (or submission of) electronic
36c6164
mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as
36c6164
Exim.
36c6164
36c6164
The libesmtp-devel package contains headers and development libraries
36c6164
necessary for building programs against libesmtp.
36c6164
36c6164
%prep 
36c6164
%setup -q
154344e
%patch0 -p1 -b .openssl-1.1
154344e
154344e
autoreconf -fi
36c6164
3d0848a
# Keep rpmlint happy about libesmtp-debuginfo...
3d0848a
chmod a-x htable.c
3d0848a
36c6164
%build
36c6164
36c6164
if pkg-config openssl ; then
36c6164
  export CFLAGS="$CFLAGS $RPM_OPT_FLAGS `pkg-config --cflags openssl`"
36c6164
  export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
36c6164
fi
36c6164
%configure --with-auth-plugin-dir=%{plugindir} --enable-pthreads \
36c6164
  --enable-require-all-recipients --enable-debug \
44ee0b0
  --enable-etrn --disable-isoc --disable-more-warnings --disable-static
495e299
make %{?_smp_mflags}
3272913
cat << "EOF" > libesmtp.pc
3272913
prefix=%{_prefix}
3272913
exec_prefix=%{_prefix}
3272913
libdir=%{_libdir}
3272913
includedir=%{_includedir}
3272913
3272913
Name: libESMTP
c14561b
Version: %{version}
3272913
Description: SMTP client library.
3272913
Requires: openssl
3272913
Libs: -pthread -L${libdir} -lesmtp
3272913
Cflags:
3272913
EOF
3272913
3272913
cat << "EOF" > libesmtp-config
3272913
#! /bin/sh
3272913
exec pkg-config "$@" libesmtp
3272913
EOF
36c6164
36c6164
%install
36c6164
rm -rf $RPM_BUILD_ROOT
3d0848a
make DESTDIR=$RPM_BUILD_ROOT install INSTALL='install -p'
3d0848a
rm $RPM_BUILD_ROOT/%{_libdir}/*.la
cd41e5c
rm $RPM_BUILD_ROOT/%{_libdir}/esmtp-plugins/*.la
3272913
install -p -m644 -D libesmtp.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libesmtp.pc
36c6164
36c6164
0ccf012
%ldconfig_scriptlets
36c6164
36c6164
%files
c5b8b52
%doc AUTHORS COPYING.LIB NEWS Notes README
36c6164
%{_libdir}/libesmtp.so.*
36c6164
%{plugindir}
36c6164
36c6164
%files devel
c5b8b52
%doc examples COPYING
36c6164
%{_bindir}/libesmtp-config
36c6164
%{_prefix}/include/*
36c6164
%{_libdir}/libesmtp.so
3272913
%{_libdir}/pkgconfig/libesmtp.pc
36c6164
36c6164
%changelog
777fde9
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-20
777fde9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
777fde9
183a74c
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-19
183a74c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
183a74c
f4a8402
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-18
f4a8402
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f4a8402
e370403
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-17
e370403
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e370403
154344e
* Sat Jul 21 2018 Pawel Salek <salek@kth.se> - 1.0.6-16
154344e
- apply the ssl patch from https://bugzilla.redhat.com/show_bug.cgi?id=1483350
154344e
3ef7720
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-15
3ef7720
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3ef7720
ff8426b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-14
ff8426b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ff8426b
e3cc5d9
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-13
e3cc5d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e3cc5d9
9669240
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-12
9669240
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9669240
c7f8c08
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-11
c7f8c08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c7f8c08
75f6185
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-10
75f6185
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
75f6185
f917949
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-9
f917949
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f917949
e69df6c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-8
e69df6c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e69df6c
e292e27
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-7
e292e27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e292e27
08c742d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-6
08c742d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
08c742d
52f48c8
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-5
52f48c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
52f48c8
7a3b89a
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-4
7a3b89a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7a3b89a
c3b8355
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-3
c3b8355
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c3b8355
4240987
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-2
4240987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4240987
Pawel Salek 3f0e685
* Fri Dec  3 2010 Pawel Salek <pawsa@theochem.kth.se> - 1.0.6-1
Pawel Salek 3f0e685
- update to upstream 1.0.6
Pawel Salek 3f0e685
c14561b
* Sat Jun 12 2010 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-14
c14561b
c14561b
- fix bug 599428: use 'version' macro instead of '_version'.
c14561b
- Use SSL patch by Ludwig Nussel of SUSE (bugzilla att id 399130).
c14561b
048acd8
* Tue Mar  9 2010 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-13
048acd8
- fix CVE-2009-2408 (#571817).
048acd8
953047b
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.0.4-12
953047b
- rebuilt with new openssl
953047b
0db107a
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-11
0db107a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0db107a
901bc47
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-10
901bc47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
901bc47
8e53447
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 1.0.4-9
8e53447
- rebuild with new openssl
8e53447
cd41e5c
* Sat Nov  1 2008 Manuel "lonely wolf" Wolfshant <wolfy@fedoraproject.org> - 1.0.4-8
cd41e5c
- do not package libtool files from the plugin directory
cd41e5c
3272913
* Fri Apr  4 2008 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-7
3272913
- attempt at multilib support (#342011).
3272913
30ce39a
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.4-6
30ce39a
- Autorebuild for GCC 4.3
30ce39a
49b276f
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.0.4-5
49b276f
 - Rebuild for deps
49b276f
44ee0b0
* Sun Nov 18 2007 Patrice Dumas <pertusus@free.fr> - 1.0.4-4
44ee0b0
- use --disable-static
44ee0b0
3d0848a
* Thu Nov 15 2007 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-3
3d0848a
- drop static libs as suggested in bug 377731.
3d0848a
e69d845
* Mon Sep 11 2006 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-2
e69d845
- rebuild for FC6.
e69d845
c5b8b52
* Fri Mar 24 2006 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-1
c5b8b52
- Update to 1.0.4 - redo build and ssl patches.
c5b8b52
c71c45c
* Wed Mar  1 2006 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-8
c71c45c
- Rebuild for Fedora Extras 5
c71c45c
495e299
* Sun Dec  4 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-7
495e299
- Fix bug 173332 completely, including licence issues.
495e299
ea97234
* Thu Nov 17 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-6
ea97234
- fix #173332.
ea97234
89aa03a
* Tue Nov 15 2005 Dan Williams <dcbw@redhat.com> - 1.0.3r1-5
89aa03a
- rebuild against newer crypto libs
89aa03a
be6bcb2
* Wed Oct 19 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-4
be6bcb2
- fix crashes on certificates with subjectAltName extension. Fix #166844.
be6bcb2
36c6164
* Sun Jun 12 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-3
36c6164
- Add libesmtp-build.patch - fix building under FC4.
36c6164
36c6164
* Thu Sep 30 2004 Miloslav Trmac <mitr@redhat.com> - 1.0.3r1-2
36c6164
- Include libesmtp-config in libesmtp-devel (#125426, patch by Robert Scheck)
36c6164
36c6164
* Tue Jul 13 2004 John Dennis <jdennis@redhat.com> 1.0.3r1-1
36c6164
- bring up to latest upstream release
36c6164
36c6164
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
36c6164
- rebuilt
36c6164
36c6164
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
36c6164
- rebuilt
36c6164
36c6164
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
36c6164
- rebuilt
36c6164
36c6164
* Thu Jan 29 2004 Bill Nottingham <notting@redhat.com> 1.0.2-1
36c6164
- upgrade to 1.0.2 (#113894)
36c6164
36c6164
* Fri Oct  3 2003 Bill Nottingham <notting@redhat.com> 1.0.1-1
36c6164
- update to 1.0.1, rebuild to fix some broken 64-bit libs
36c6164
36c6164
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
36c6164
- rebuilt
36c6164
36c6164
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
36c6164
- rebuilt
36c6164
36c6164
* Tue Jan  7 2003 Nalin Dahyabhai <nalin@redhat.com> 0.8.12-4
36c6164
- include compilation flags for openssl as defined for pkg-config
36c6164
- don't blow up on compile because key schedules aren't arrays
36c6164
36c6164
* Tue Nov  5 2002 Bill Nottingham <notting@redhat.com> 0.8.12-3
36c6164
- build on various platforms
36c6164
36c6164
* Tue Jul 23 2002 Bill Nottingham <notting@redhat.com> 0.8.12-2
36c6164
- fix broken lib (no pthread dependency)