cryptlib.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. ##
  2. ## cryptlib.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2006 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.23
  26. %define V_comp 323
  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: 20060710
  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. Patch0: cryptlib.patch
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20040130, infozip, make, gcc
  47. PreReq: OpenPKG, openpkg >= 20040130
  48. AutoReq: no
  49. AutoReqProv: no
  50. %description
  51. CryptLib is a powerful security toolkit which allows even
  52. inexperienced crypto programmers to easily add encryption and
  53. authentication services to their software. The high-level interface
  54. provides anyone with the ability to add strong security capabilities
  55. to an application in as little as half an hour, without needing
  56. to know any of the low-level details which make the encryption
  57. or authentication work. Because of this, cryptlib dramatically
  58. reduces the cost involved in adding security to new or existing
  59. applications. CryptLib provides a standardised interface to a number
  60. of popular encryption algorithms, as well as providing a high-level
  61. interface which hides most of the implementation details and
  62. provides an operating-system-independent encoding method which makes
  63. it easy to transfer secured data from one operating environment to
  64. another.
  65. %track
  66. prog cryptlib = {
  67. version = %{V_comp}
  68. url = ftp://ftp.franken.de/pub/crypt/cryptlib/
  69. regex = cl(__VER__)\.zip
  70. }
  71. %prep
  72. %setup -q -c -T
  73. %{l_prefix}/bin/unzip -q -x %{SOURCE0}
  74. %patch -p0
  75. %{l_shtool} subst -e 's;\r$;;' tools/*.pl tools/*.sh
  76. %build
  77. %{l_make} %{l_mflags} \
  78. CC="%{l_cc} %{l_cflags -O}"
  79. %install
  80. rm -rf $RPM_BUILD_ROOT
  81. %{l_shtool} mkdir -f -p -m 755 \
  82. $RPM_BUILD_ROOT%{l_prefix}/include \
  83. $RPM_BUILD_ROOT%{l_prefix}/lib \
  84. $RPM_BUILD_ROOT%{l_prefix}/share/cryptlib
  85. %{l_shtool} install -c -m 644 \
  86. cryptlib.h $RPM_BUILD_ROOT%{l_prefix}/include/
  87. %{l_shtool} install -c -m 644 \
  88. libcl.a $RPM_BUILD_ROOT%{l_prefix}/lib/libcryptlib.a
  89. %{l_shtool} install -c -m 644 \
  90. %{SOURCE manual.pdf} $RPM_BUILD_ROOT%{l_prefix}/share/cryptlib/
  91. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  92. %{l_files_std} \
  93. '%doc %{l_prefix}/share/cryptlib/manual.pdf'
  94. %files -f files
  95. %clean
  96. rm -rf $RPM_BUILD_ROOT