pgp2.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. ##
  2. ## pgp2.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 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. %define V_short 2.x
  26. %define V_long 2.6.3i
  27. %define V_strip 263
  28. # package information
  29. Name: pgp2
  30. Summary: Preety Good Privacy
  31. URL: http://www.pgpi.org/
  32. Vendor: Philip Zimmerman
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG [REL]
  35. Group: Cryptography
  36. License: GPL
  37. Version: %{V_long}
  38. Release: 20020621
  39. # list of sources
  40. Source0: ftp://ftp.pgpi.org/pub/pgp/%{V_short}/src/pgp%{V_strip}is.tar.gz
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20020206, tar
  45. PreReq: OpenPKG, openpkg >= 20020206
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. PGP (Pretty Good Privacy) is a public key encryption program
  50. originally written by Phil Zimmermann in 1991. This is version
  51. %{V_long}, considered a classic PGP by some and out of date by
  52. others. However, this version of PGP is absent of questionable
  53. security features implemented in more current releases. Because
  54. of this, the most paranoid PGP users prefer this classic version.
  55. An article at the URL
  56. http://senderek.de/security/key-experiments.html explains the
  57. questionable security features of newer versions of PGP, and
  58. the reasons that PGP %{V_long} might be the most secure
  59. version to date.
  60. %prep
  61. %setup -c -n pgp-%{V_long}
  62. %{l_prefix}/bin/tar -xf pgp%{V_strip}ii.tar
  63. %build
  64. cd src
  65. CC="%{l_cc}" CFLAGS="%{l_cflags -O}"
  66. CFLAGS="%{l_cflags -O}"
  67. case "%{l_target}" in
  68. *-freebsd* ) CFLAGS="$CFLAGS -pthread" ;;
  69. *-solaris* ) CFLAGS="$CFLAGS -pthreads" ;;
  70. esac
  71. case "%{l_target}" in
  72. *-freebsd* )
  73. OS=freebsd
  74. ;;
  75. *-linux* )
  76. OS=linux
  77. ;;
  78. *ix86-solaris* )
  79. OS=solx86gcc
  80. ;;
  81. *-solaris* )
  82. OS=sun4gcc
  83. ;;
  84. *)
  85. echo "Unsupported platform" 1>&2
  86. exit 1
  87. ;;
  88. esac
  89. %{l_make} %{l_mflags} $OS
  90. %install
  91. rm -rf $RPM_BUILD_ROOT
  92. %{l_shtool} mkdir -f -p -m 755 \
  93. $RPM_BUILD_ROOT%{l_prefix}/bin \
  94. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  95. %{l_shtool} install -c -s -m 755 \
  96. src/pgp $RPM_BUILD_ROOT%{l_prefix}/bin/
  97. %{l_shtool} install -c -m 644 \
  98. doc/pgp.1 \
  99. $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