libsieve.spec 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. ##
  2. ## libsieve.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://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: libsieve
  26. Summary: Sieve Mail Filtering Script Library
  27. URL: http://libsieve.sourceforge.net/
  28. Vendor: Aaron Stone et al.
  29. Packager: OpenPKG Foundation e.V.
  30. Distribution: OpenPKG Community
  31. Class: EVAL
  32. Group: Mail
  33. License: LGPL/MIT
  34. Version: 2.2.5
  35. Release: 20070206
  36. # list of sources
  37. Source0: http://osdn.dl.sourceforge.net/libsieve/libsieve-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc, bison, flex
  42. PreReq: OpenPKG, openpkg >= 20040130
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. libSieve is a library for parsing, sorting and filtering your mail.
  47. libSieve provides a library to interpret Sieve scripts, and to
  48. execute those scripts over a given set of messages. The return codes
  49. from the libSieve functions let your program know how to handle the
  50. message. libSieve makes no attempt to have knowledge of how SMTP,
  51. IMAP, or anything else work, just how to parse and deal with a
  52. buffer full of emails.
  53. %track
  54. prog libsieve = {
  55. version = %{version}
  56. url = http://prdownloads.sourceforge.net/libsieve/
  57. regex = libsieve-(\d+(\.\d+)+)\.tar\.(gz|bz2)
  58. }
  59. %prep
  60. %setup -q
  61. %build
  62. # configure library
  63. cd src
  64. CC="%{l_cc}" \
  65. CFLAGS="%{l_cflags -O}" \
  66. YACC="%{l_prefix}/bin/bison -y" \
  67. LEX="%{l_prefix}/bin/flex" \
  68. ./configure \
  69. --prefix=%{l_prefix} \
  70. --disable-shared
  71. # build library
  72. %{l_make} %{l_mflags -O}
  73. %install
  74. # install library
  75. rm -rf $RPM_BUILD_ROOT
  76. ( cd src
  77. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  78. ) || exit $?
  79. # determine installation files
  80. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  81. %files -f files
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT