libesmtp-vl.spec 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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: 3%{?_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 Mar 20 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-3
  88. - rebuild with openssl-1.0.0d
  89. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-2
  90. - rebuild with rpm-4.8.1 for pkg-config file
  91. * Sat Jul 10 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-1
  92. - new upstream release
  93. - fix bug 599428: use 'version' macro instead of '_version'.
  94. - Use SSL patch by Ludwig Nussel of SUSE (bugzilla att id 399130).
  95. * Tue Mar 9 2010 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-13
  96. - fix CVE-2009-2408 (#571817).
  97. * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.0.4-12
  98. - rebuilt with new openssl
  99. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-11
  100. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  101. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-10
  102. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  103. * Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 1.0.4-9
  104. - rebuild with new openssl
  105. * Sat Nov 1 2008 Manuel "lonely wolf" Wolfshant <wolfy@fedoraproject.org> - 1.0.4-8
  106. - do not package libtool files from the plugin directory
  107. * Fri Apr 4 2008 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-7
  108. - attempt at multilib support (#342011).
  109. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.4-6
  110. - Autorebuild for GCC 4.3
  111. * Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.0.4-5
  112. - Rebuild for deps
  113. * Sun Nov 18 2007 Patrice Dumas <pertusus@free.fr> - 1.0.4-4
  114. - use --disable-static
  115. * Thu Nov 15 2007 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-3
  116. - drop static libs as suggested in bug 377731.
  117. * Mon Sep 11 2006 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-2
  118. - rebuild for FC6.
  119. * Fri Mar 24 2006 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-1
  120. - Update to 1.0.4 - redo build and ssl patches.
  121. * Wed Mar 1 2006 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-8
  122. - Rebuild for Fedora Extras 5
  123. * Sun Dec 4 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-7
  124. - Fix bug 173332 completely, including licence issues.
  125. * Thu Nov 17 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-6
  126. - fix #173332.
  127. * Tue Nov 15 2005 Dan Williams <dcbw@redhat.com> - 1.0.3r1-5
  128. - rebuild against newer crypto libs
  129. * Wed Oct 19 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-4
  130. - fix crashes on certificates with subjectAltName extension. Fix #166844.
  131. * Sun Jun 12 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-3
  132. - Add libesmtp-build.patch - fix building under FC4.
  133. * Thu Sep 30 2004 Miloslav Trmac <mitr@redhat.com> - 1.0.3r1-2
  134. - Include libesmtp-config in libesmtp-devel (#125426, patch by Robert Scheck)
  135. * Tue Jul 13 2004 John Dennis <jdennis@redhat.com> 1.0.3r1-1
  136. - bring up to latest upstream release
  137. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  138. - rebuilt
  139. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
  140. - rebuilt
  141. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  142. - rebuilt
  143. * Thu Jan 29 2004 Bill Nottingham <notting@redhat.com> 1.0.2-1
  144. - upgrade to 1.0.2 (#113894)
  145. * Fri Oct 3 2003 Bill Nottingham <notting@redhat.com> 1.0.1-1
  146. - update to 1.0.1, rebuild to fix some broken 64-bit libs
  147. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  148. - rebuilt
  149. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  150. - rebuilt
  151. * Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 0.8.12-4
  152. - include compilation flags for openssl as defined for pkg-config
  153. - don't blow up on compile because key schedules aren't arrays
  154. * Tue Nov 5 2002 Bill Nottingham <notting@redhat.com> 0.8.12-3
  155. - build on various platforms
  156. * Tue Jul 23 2002 Bill Nottingham <notting@redhat.com> 0.8.12-2
  157. - fix broken lib (no pthread dependency)