libesmtp-vl.spec 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. %define plugindir %{_libdir}/esmtp-plugins
  2. Summary: SMTP client library
  3. SUmmary(ja): SMTPクライアントライブラリ
  4. Name: libesmtp
  5. Version: 1.0.4
  6. Release: 2%{?_dist_release}
  7. License: LGPLv2+
  8. Group: System Environment/Libraries
  9. Source: http://www.stafford.uklinux.net/libesmtp/%{name}-%{version}.tar.bz2
  10. Patch1: libesmtp-build.patch
  11. Patch2: libesmtp-1.0.4-ssl.patch
  12. URL: http://www.stafford.uklinux.net/libesmtp/
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. BuildRequires: openssl-devel pkgconfig
  15. %description
  16. LibESMTP is a library to manage posting (or submission of) electronic
  17. mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as
  18. Exim. It may be used as part of a Mail User Agent (MUA) or another
  19. program that must be able to post electronic mail but where mail
  20. functionality is not the program's primary purpose.
  21. %package devel
  22. Summary: Headers and development libraries for libESMTP
  23. # example file is under the GPLv2+
  24. License: LGPLv2+ and GPLv2+
  25. Group: Development/Libraries
  26. Requires: %{name} = %{version}-%{release}, openssl-devel
  27. %description devel
  28. LibESMTP is a library to manage posting (or submission of) electronic
  29. mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as
  30. Exim.
  31. The libesmtp-devel package contains headers and development libraries
  32. necessary for building programs against libesmtp.
  33. %prep
  34. %setup -q
  35. %patch1 -p1 -b .build
  36. %patch2 -p1 -b .571817
  37. # Keep rpmlint happy about libesmtp-debuginfo...
  38. chmod a-x htable.c
  39. %build
  40. if pkg-config openssl ; then
  41. export CFLAGS="$CFLAGS $RPM_OPT_FLAGS `pkg-config --cflags openssl`"
  42. export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
  43. fi
  44. %configure --with-auth-plugin-dir=%{plugindir} --enable-pthreads \
  45. --enable-require-all-recipients --enable-debug \
  46. --enable-etrn --disable-isoc --disable-more-warnings --disable-static
  47. make %{?_smp_mflags}
  48. cat << "EOF" > libesmtp.pc
  49. prefix=%{_prefix}
  50. exec_prefix=%{_prefix}
  51. libdir=%{_libdir}
  52. includedir=%{_includedir}
  53. Name: libESMTP
  54. Version: %{version}
  55. Description: SMTP client library.
  56. Requires: openssl
  57. Libs: -pthread -L${libdir} -lesmtp
  58. Cflags:
  59. EOF
  60. cat << "EOF" > libesmtp-config
  61. #! /bin/sh
  62. exec pkg-config "$@" libesmtp
  63. EOF
  64. %install
  65. rm -rf $RPM_BUILD_ROOT
  66. make DESTDIR=$RPM_BUILD_ROOT install INSTALL='install -p'
  67. rm $RPM_BUILD_ROOT/%{_libdir}/*.la
  68. rm $RPM_BUILD_ROOT/%{_libdir}/esmtp-plugins/*.la
  69. install -p -m644 -D libesmtp.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libesmtp.pc
  70. %clean
  71. rm -rf $RPM_BUILD_ROOT
  72. %post -p /sbin/ldconfig
  73. %postun -p /sbin/ldconfig
  74. %files
  75. %defattr(-,root,root,-)
  76. %doc AUTHORS COPYING.LIB NEWS Notes README
  77. %{_libdir}/libesmtp.so.*
  78. %{plugindir}
  79. %files devel
  80. %defattr(-,root,root,-)
  81. %doc examples COPYING
  82. %{_bindir}/libesmtp-config
  83. %{_prefix}/include/*
  84. %{_libdir}/libesmtp.so
  85. %{_libdir}/pkgconfig/libesmtp.pc
  86. %changelog
  87. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-2
  88. - rebuild with rpm-4.8.1 for pkg-config file
  89. * Sat Jul 10 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-1
  90. - new upstream release
  91. - fix bug 599428: use 'version' macro instead of '_version'.
  92. - Use SSL patch by Ludwig Nussel of SUSE (bugzilla att id 399130).
  93. * Tue Mar 9 2010 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-13
  94. - fix CVE-2009-2408 (#571817).
  95. * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.0.4-12
  96. - rebuilt with new openssl
  97. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-11
  98. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  99. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-10
  100. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  101. * Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 1.0.4-9
  102. - rebuild with new openssl
  103. * Sat Nov 1 2008 Manuel "lonely wolf" Wolfshant <wolfy@fedoraproject.org> - 1.0.4-8
  104. - do not package libtool files from the plugin directory
  105. * Fri Apr 4 2008 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-7
  106. - attempt at multilib support (#342011).
  107. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.4-6
  108. - Autorebuild for GCC 4.3
  109. * Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.0.4-5
  110. - Rebuild for deps
  111. * Sun Nov 18 2007 Patrice Dumas <pertusus@free.fr> - 1.0.4-4
  112. - use --disable-static
  113. * Thu Nov 15 2007 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-3
  114. - drop static libs as suggested in bug 377731.
  115. * Mon Sep 11 2006 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-2
  116. - rebuild for FC6.
  117. * Fri Mar 24 2006 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-1
  118. - Update to 1.0.4 - redo build and ssl patches.
  119. * Wed Mar 1 2006 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-8
  120. - Rebuild for Fedora Extras 5
  121. * Sun Dec 4 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-7
  122. - Fix bug 173332 completely, including licence issues.
  123. * Thu Nov 17 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-6
  124. - fix #173332.
  125. * Tue Nov 15 2005 Dan Williams <dcbw@redhat.com> - 1.0.3r1-5
  126. - rebuild against newer crypto libs
  127. * Wed Oct 19 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-4
  128. - fix crashes on certificates with subjectAltName extension. Fix #166844.
  129. * Sun Jun 12 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-3
  130. - Add libesmtp-build.patch - fix building under FC4.
  131. * Thu Sep 30 2004 Miloslav Trmac <mitr@redhat.com> - 1.0.3r1-2
  132. - Include libesmtp-config in libesmtp-devel (#125426, patch by Robert Scheck)
  133. * Tue Jul 13 2004 John Dennis <jdennis@redhat.com> 1.0.3r1-1
  134. - bring up to latest upstream release
  135. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  136. - rebuilt
  137. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
  138. - rebuilt
  139. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  140. - rebuilt
  141. * Thu Jan 29 2004 Bill Nottingham <notting@redhat.com> 1.0.2-1
  142. - upgrade to 1.0.2 (#113894)
  143. * Fri Oct 3 2003 Bill Nottingham <notting@redhat.com> 1.0.1-1
  144. - update to 1.0.1, rebuild to fix some broken 64-bit libs
  145. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  146. - rebuilt
  147. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  148. - rebuilt
  149. * Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 0.8.12-4
  150. - include compilation flags for openssl as defined for pkg-config
  151. - don't blow up on compile because key schedules aren't arrays
  152. * Tue Nov 5 2002 Bill Nottingham <notting@redhat.com> 0.8.12-3
  153. - build on various platforms
  154. * Tue Jul 23 2002 Bill Nottingham <notting@redhat.com> 0.8.12-2
  155. - fix broken lib (no pthread dependency)