cryptlib.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. ##
  2. ## cryptlib.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package version
  25. %define V_full 3.2
  26. %define V_comp 32
  27. # package information
  28. Name: cryptlib
  29. Summary: Cryptography Library
  30. URL: http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
  31. Vendor: Peter Gutmann
  32. Packager: OpenPKG
  33. Distribution: OpenPKG
  34. Class: EVAL
  35. Group: Cryptography
  36. License: MIT-style
  37. Version: %{V_full}
  38. Release: 20050507
  39. # list of sources
  40. Source0: ftp://ftp.franken.de/pub/crypt/cryptlib/cl%{V_comp}.zip
  41. Source1: ftp://ftp.franken.de/pub/crypt/cryptlib/manual.pdf
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20040130, infozip, make, gcc
  46. PreReq: OpenPKG, openpkg >= 20040130
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. CryptLib is a powerful security toolkit which allows even
  51. inexperienced crypto programmers to easily add encryption and
  52. authentication services to their software. The high-level interface
  53. provides anyone with the ability to add strong security capabilities
  54. to an application in as little as half an hour, without needing
  55. to know any of the low-level details which make the encryption
  56. or authentication work. Because of this, cryptlib dramatically
  57. reduces the cost involved in adding security to new or existing
  58. applications. CryptLib provides a standardised interface to a number
  59. of popular encryption algorithms, as well as providing a high-level
  60. interface which hides most of the implementation details and
  61. provides an operating-system-independent encoding method which makes
  62. it easy to transfer secured data from one operating environment to
  63. another.
  64. %track
  65. prog cryptlib = {
  66. version = %{V_comp}
  67. url = ftp://ftp.franken.de/pub/crypt/cryptlib/
  68. regex = cl(__VER__)\.zip
  69. }
  70. %prep
  71. %setup -q -c -T
  72. %{l_prefix}/bin/unzip -q -x %{SOURCE0}
  73. %build
  74. %{l_make} %{l_mflags} \
  75. CC="%{l_cc} %{l_cflags -O}"
  76. %install
  77. rm -rf $RPM_BUILD_ROOT
  78. %{l_shtool} mkdir -f -p -m 755 \
  79. $RPM_BUILD_ROOT%{l_prefix}/include \
  80. $RPM_BUILD_ROOT%{l_prefix}/lib \
  81. $RPM_BUILD_ROOT%{l_prefix}/share/cryptlib
  82. %{l_shtool} install -c -m 644 \
  83. cryptlib.h $RPM_BUILD_ROOT%{l_prefix}/include/
  84. %{l_shtool} install -c -m 644 \
  85. libcl.a $RPM_BUILD_ROOT%{l_prefix}/lib/libcryptlib.a
  86. %{l_shtool} install -c -m 644 \
  87. %{SOURCE manual.pdf} $RPM_BUILD_ROOT%{l_prefix}/share/cryptlib/
  88. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  89. %{l_files_std} \
  90. '%doc %{l_prefix}/share/cryptlib/manual.pdf'
  91. %files -f files
  92. %clean
  93. rm -rf $RPM_BUILD_ROOT