smtpfeed.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. ##
  2. ## smtpfeed.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: smtpfeed
  26. Summary: LMTP Mailer for Mass Delivery via SMTP
  27. URL: http://www.gnu.org/software/recode/
  28. Vendor: Francois Pinard
  29. Packager: The OpenPKG Project
  30. Distribution: OpenPKG [EXP]
  31. Group: Mail
  32. License: GPL
  33. Version: 1.16
  34. Release: %{l_branch}.0
  35. # list of sources
  36. Source0: ftp://ftp.kyoto.wide.ad.jp/pub/mail/smtpfeed/smtpfeed-%{version}.tar.gz
  37. Source1: fakesyslog.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20011023.0
  42. PreReq: OpenPKG, openpkg >= 20011023.0
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. SMTPfeed is an SMTP delivery agent which is called by an
  47. LMTP-speaking MTA (like Sendmail or Postfix). It improves time
  48. required to complete delivery a message to huge number of
  49. recipients. SMTPfeed is effective for delivery of large mailing
  50. lists.
  51. %prep
  52. %setup0 -q -c
  53. %setup1 -q -T -D -a 1
  54. %build
  55. # build faked syslog(3) library
  56. fakesyslogdir="`pwd`/fakesyslog"
  57. ( cd fakesyslog
  58. CC="%{l_cc}" \
  59. CFLAGS="%{l_cflags -O}" \
  60. ./configure \
  61. --with-logfile=%{l_prefix}/var/smtpfeed/smtpfeed.log
  62. %{l_make} %{l_mflags}
  63. )
  64. # build SMTPfeed
  65. ( cd smtpfeed-%{version}
  66. %{l_rpmtool} subst \
  67. 's;smtpfeed 1.[0-9]*;smtpfeed %{version};' \
  68. -- version.c
  69. CC="%{l_cc}" \
  70. CFLAGS="%{l_cflags -O}" \
  71. LDFLAGS="-L$fakesyslogdir" \
  72. LIBS="-lfakesyslog" \
  73. ./configure \
  74. --prefix=%{l_prefix}
  75. %{l_make} %{l_mflags -O}
  76. )
  77. %install
  78. rm -rf $RPM_BUILD_ROOT
  79. %{l_shtool} mkdir -f -p -m 755 \
  80. $RPM_BUILD_ROOT%{l_prefix}/bin \
  81. $RPM_BUILD_ROOT%{l_prefix}/man/man8 \
  82. $RPM_BUILD_ROOT%{l_prefix}/var/smtpfeed
  83. ( cd smtpfeed-%{version}
  84. %{l_shtool} install -c -s -m 755 \
  85. smtpfeed $RPM_BUILD_ROOT%{l_prefix}/bin/
  86. %{l_shtool} install -c -m 644 \
  87. smtpfeed.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
  88. %{l_shtool} install -c -m 644 \
  89. /dev/null $RPM_BUILD_ROOT%{l_prefix}/var/smtpfeed/smtpfeed.log
  90. )
  91. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  92. %files -f files
  93. %clean
  94. rm -rf $RPM_BUILD_ROOT