gsasl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. ##
  2. ## gsasl.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package information
  24. Name: gsasl
  25. Summary: GNU SASL Utility
  26. URL: http://josefsson.org/libgsasl/
  27. Vendor: Simon Josefsson
  28. Packager: OpenPKG Foundation e.V.
  29. Distribution: OpenPKG Community
  30. Class: EVAL
  31. Group: Cryptography
  32. License: GPL
  33. Version: 1.4.0
  34. Release: 20091121
  35. # package options
  36. %option with_kerberos no
  37. %option with_ntlm no
  38. # list of sources
  39. Source0: ftp://alpha.gnu.org/gnu/gsasl/gsasl-%{version}.tar.gz
  40. Patch0: gsasl.patch
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20040130
  45. PreReq: OpenPKG, openpkg >= 20040130
  46. BuildPreReq: gcrypt, libgsasl, readline
  47. PreReq: gcrypt, libgsasl, readline
  48. AutoReq: no
  49. AutoReqProv: no
  50. %description
  51. GNU SASL is an implementation of the Simple Authentication and
  52. Security Layer framework and a few common SASL mechanisms. SASL is
  53. used by network servers (e.g., IMAP, SMTP) to request authentication
  54. from clients, and in clients to authenticate against servers.
  55. %track
  56. prog gsasl = {
  57. version = %{version}
  58. url = ftp://alpha.gnu.org/gnu/gsasl/
  59. regex = gsasl-(__VER__)\.tar\.gz
  60. }
  61. %prep
  62. %setup -q
  63. %patch -p0
  64. %build
  65. mv lib/build-aux .
  66. rm -rf lib/*
  67. ( echo "#!/bin/sh"
  68. echo "true"
  69. ) >lib/configure
  70. mv build-aux lib/
  71. chmod a+x lib/configure
  72. CC="%{l_cc}" \
  73. CFLAGS="%{l_cflags -O}" \
  74. CPPFLAGS="%{l_cppflags}" \
  75. LDFLAGS="%{l_ldflags}" \
  76. LIBS="-lgsasl" \
  77. GREP="grep" \
  78. ./configure \
  79. --prefix=%{l_prefix} \
  80. --mandir=%{l_prefix}/man \
  81. --infodir=%{l_prefix}/info \
  82. --with-libgcrypt \
  83. --with-libgcrypt-prefix=%{l_prefix} \
  84. --with-libreadline-prefix=%{l_prefix} \
  85. --without-gnutls \
  86. --disable-shared \
  87. --disable-nls
  88. %{l_make} %{l_mflags -O}
  89. %install
  90. rm -rf $RPM_BUILD_ROOT
  91. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  92. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  93. %{l_shtool} mkdir -f -p -m 755 \
  94. $RPM_BUILD_ROOT%{l_prefix}/info \
  95. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  96. %{l_shtool} install -c -m 644 \
  97. doc/gsasl.info $RPM_BUILD_ROOT%{l_prefix}/info/
  98. %{l_shtool} install -c -m 644 \
  99. doc/gsasl.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  100. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  101. %files -f files
  102. %clean
  103. rm -rf $RPM_BUILD_ROOT