gnupg.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ##
  2. ## gnupg.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: gnupg
  27. Summary: GNU Privacy Guard
  28. URL: http://www.gnupg.org/
  29. Vendor: Werner Koch
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [BASE]
  32. Group: Cryptography
  33. License: GPL
  34. Version: 1.2.2
  35. Release: 20030501
  36. # package options
  37. %option with_idea no
  38. # list of sources
  39. Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.gz
  40. Source1: ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20020206, make, zlib
  45. PreReq: OpenPKG, openpkg >= 20020206
  46. AutoReq: no
  47. AutoReqProv: no
  48. Provides: OPENPGP
  49. %description
  50. GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and
  51. creating digital signatures. GnuPG has advanced key management
  52. capabilities and is compliant with the proposed OpenPGP Internet
  53. standard described in RFC2440. Since GnuPG doesn't use any patented
  54. algorithm, it is not compatible with any version of PGP2 (PGP2.x
  55. uses only IDEA, patented worldwide).
  56. %prep
  57. %setup -q
  58. %if "%{with_idea}" == "yes"
  59. %{l_gzip} -d -c %{SOURCE idea.c.gz} >cipher/idea.c
  60. %endif
  61. %build
  62. CC="%{l_cc}" \
  63. CFLAGS="%{l_cflags -O}" \
  64. LDFLAGS="%{l_ldflags}" \
  65. ./configure \
  66. --prefix=%{l_prefix} \
  67. --with-zlib=%{l_prefix} \
  68. --with-included-gettext \
  69. --disable-mailto \
  70. --disable-exec \
  71. --disable-dynload \
  72. --disable-nls
  73. %{l_make} %{l_mflags}
  74. %install
  75. rm -rf $RPM_BUILD_ROOT
  76. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  77. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
  78. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  79. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  80. %{l_files_std} \
  81. '%attr(4755,root,%{l_mgrp}) %{l_prefix}/bin/gpg'
  82. %files -f files
  83. %clean
  84. rm -rf $RPM_BUILD_ROOT