beecrypt.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. ##
  2. ## beecrypt.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.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: beecrypt
  27. Summary: Cryptography Library
  28. URL: http://www.virtualunlimited.com/products/beecrypt/
  29. Vendor: Virtual Unlimited, Inc.
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: PLUS
  33. Group: Cryptography
  34. License: LGPL
  35. Version: 4.1.1
  36. Release: 20041119
  37. # list of sources
  38. Source0: http://osdn.dl.sourceforge.net/beecrypt/beecrypt-%{version}.tar.gz
  39. Patch0: beecrypt.patch
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20040130
  44. PreReq: OpenPKG, openpkg >= 20040130
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. BeeCrypt is an open source cryptography library that contains
  49. highly optimized C and assembler implementations of many well-known
  50. algorithms including Blowfish, MD5, SHA-1, Diffie-Hellman, and
  51. ElGamal (full list). Unlike some other crypto libraries, BeeCrypt is
  52. not designed to solve one specific problem, like file encryption,
  53. but to be a general purpose toolkit which can be used in a variety
  54. of applications.
  55. %track
  56. prog beecrypt = {
  57. version = %{version}
  58. url = http://prdownloads.sourceforge.net/beecrypt/
  59. regex = beecrypt-(__VER__)\.tar\.gz
  60. }
  61. %prep
  62. %setup -q
  63. %patch -p0
  64. %{l_shtool} subst \
  65. -e 's;cppglue\.lo;;g' \
  66. -e 's;cppglue\.cxx;;g' \
  67. -e '/^CXX = /s;@CXX@;@CC@;g' \
  68. Makefile.in
  69. %{l_shtool} subst \
  70. -e '/LINENO: error: C[+]* preprocessor/{N;N;N;N;s/.*/:/;}' \
  71. configure
  72. %build
  73. ( echo 'ac_cv_have_dev_dsp=no'
  74. echo 'ac_cv_have_dev_audio=no'
  75. echo 'ac_cv_func_gettimeofday=yes'
  76. echo 'bc_cv_as_noexecstack=no'
  77. ) >config.cache
  78. CC="%{l_cc}" \
  79. CFLAGS="%{l_cflags -O}" \
  80. CPPFLAGS="%{l_cppflags}" \
  81. LDFLAGS="%{l_ldflags}" \
  82. ./configure \
  83. --cache-file=./config.cache \
  84. --prefix=%{l_prefix} \
  85. --without-cplusplus \
  86. --without-java \
  87. --without-python \
  88. --disable-threads \
  89. --disable-shared
  90. %{l_make} %{l_mflags -O}
  91. %install
  92. rm -rf $RPM_BUILD_ROOT
  93. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  94. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  95. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  96. %files -f files
  97. %clean
  98. rm -rf $RPM_BUILD_ROOT