gnupg.spec 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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: 20030707
  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
  45. PreReq: OpenPKG, openpkg >= 20020206
  46. BuildPreReq: zlib
  47. PreReq: zlib
  48. AutoReq: no
  49. AutoReqProv: no
  50. Provides: OPENPGP
  51. %description
  52. GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and
  53. creating digital signatures. GnuPG has advanced key management
  54. capabilities and is compliant with the proposed OpenPGP Internet
  55. standard described in RFC2440. Since GnuPG doesn't use any patented
  56. algorithm, it is not compatible with any version of PGP2 (PGP2.x
  57. uses only IDEA, patented worldwide).
  58. %prep
  59. %setup -q
  60. %if "%{with_idea}" == "yes"
  61. %{l_gzip} -d -c %{SOURCE idea.c.gz} >cipher/idea.c
  62. %endif
  63. %build
  64. CC="%{l_cc}" \
  65. CFLAGS="%{l_cflags -O}" \
  66. LDFLAGS="%{l_ldflags}" \
  67. ./configure \
  68. --prefix=%{l_prefix} \
  69. --with-zlib=%{l_prefix} \
  70. --with-included-gettext \
  71. --disable-mailto \
  72. --disable-exec \
  73. --disable-dynload \
  74. --disable-nls
  75. %{l_make} %{l_mflags}
  76. %install
  77. rm -rf $RPM_BUILD_ROOT
  78. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  79. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
  80. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  81. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  82. %{l_files_std} \
  83. '%attr(4755,root,%{l_mgrp}) %{l_prefix}/bin/gpg'
  84. %files -f files
  85. %clean
  86. rm -rf $RPM_BUILD_ROOT