perl-crypto.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. ##
  2. ## perl-crypto.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. # versions of individual parts
  26. %define V_digest 1.05
  27. %define V_digest_sha1 2.07
  28. %define V_digest_sha 4.3.0
  29. %define V_digest_md2 2.03
  30. %define V_digest_md4 1.3
  31. %define V_digest_md5 2.33
  32. %define V_digest_hmac 1.01
  33. %define V_crypt_ripemd160 0.04
  34. %define V_crypt_enigma 1.3
  35. %define V_crypt_unixcrypt 1.0
  36. %define V_crypt_passwdmd5 1.3
  37. %define V_crypt_des 2.03
  38. %define V_crypt_des_ede3 0.01
  39. %define V_crypt_rc4 2.02
  40. %define V_crypt_rc5 2.00
  41. %define V_crypt_rc6 1.0
  42. %define V_crypt_ghost 1.00
  43. %define V_crypt_blowfish 2.09
  44. %define V_crypt_twofish 2.12
  45. %define V_crypt_rot13 0.04
  46. %define V_crypt_null 1.02
  47. %define V_crypt_ecb 1.1
  48. %define V_crypt_cbc 2.02
  49. %define V_data_uuid 0.11
  50. %define V_string_crc32 1.2
  51. # package information
  52. Name: perl-crypto
  53. Summary: Perl Modules for use with cryptography
  54. URL: http://www.cpan.org/
  55. Vendor: Perl Community
  56. Packager: The OpenPKG Project
  57. Distribution: OpenPKG
  58. Class: BASE
  59. Group: Language
  60. License: GPL/Artistic
  61. Version: 20040217
  62. Release: 20040217
  63. # list of sources
  64. Source0: http://www.cpan.org/modules/by-module/Digest/Digest-%{V_digest}.tar.gz
  65. Source1: http://www.cpan.org/modules/by-module/Digest/Digest-SHA1-%{V_digest_sha1}.tar.gz
  66. Source2: http://www.cpan.org/modules/by-module/Digest/Digest-SHA-%{V_digest_sha}.tar.gz
  67. Source3: http://www.cpan.org/modules/by-module/Digest/Digest-MD2-%{V_digest_md2}.tar.gz
  68. Source4: http://www.cpan.org/modules/by-module/Digest/Digest-MD4-%{V_digest_md4}.tar.gz
  69. Source5: http://www.cpan.org/modules/by-module/Digest/Digest-MD5-%{V_digest_md5}.tar.gz
  70. Source6: http://www.cpan.org/modules/by-module/Digest/Digest-HMAC-%{V_digest_hmac}.tar.gz
  71. Source7: http://www.cpan.org/modules/by-module/Crypt/Crypt-RIPEMD160-%{V_crypt_ripemd160}.tar.gz
  72. Source8: http://www.cpan.org/modules/by-module/Crypt/Crypt-Enigma-%{V_crypt_enigma}.tar.gz
  73. Source9: http://www.cpan.org/modules/by-module/Crypt/Crypt-UnixCrypt-%{V_crypt_unixcrypt}.tar.gz
  74. Source10: http://www.cpan.org/modules/by-module/Crypt/Crypt-PasswdMD5-%{V_crypt_passwdmd5}.tar.gz
  75. Source11: http://www.cpan.org/modules/by-module/Crypt/Crypt-DES-%{V_crypt_des}.tar.gz
  76. Source12: http://www.cpan.org/modules/by-module/Crypt/Crypt-DES_EDE3-%{V_crypt_des_ede3}.tar.gz
  77. Source13: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC4-%{V_crypt_rc4}.tar.gz
  78. Source14: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC5-%{V_crypt_rc5}.tar.gz
  79. Source15: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC6-%{V_crypt_rc6}.tar.gz
  80. Source16: http://www.cpan.org/modules/by-module/Crypt/Crypt-GOST-%{V_crypt_ghost}.tar.gz
  81. Source17: http://www.cpan.org/modules/by-module/Crypt/Crypt-Blowfish-%{V_crypt_blowfish}.tar.gz
  82. Source18: http://www.cpan.org/modules/by-module/Crypt/Crypt-Twofish-%{V_crypt_twofish}.tar.gz
  83. Source19: http://www.cpan.org/modules/by-module/Crypt/Crypt-Rot13-%{V_crypt_rot13}.tar.gz
  84. Source20: http://www.cpan.org/modules/by-module/Crypt/Crypt-NULL-%{V_crypt_null}.tar.gz
  85. Source21: http://www.cpan.org/modules/by-module/Crypt/Crypt-ECB-%{V_crypt_ecb}.tar.gz
  86. Source22: http://www.cpan.org/modules/by-module/Crypt/Crypt-CBC-%{V_crypt_cbc}.tar.gz
  87. Source23: http://www.cpan.org/modules/by-module/Data/Data-UUID-%{V_data_uuid}.tar.gz
  88. Source24: http://www.cpan.org/modules/by-module/String/String-CRC32-%{V_string_crc32}.tar.gz
  89. Patch0: perl-crypto.patch
  90. # build information
  91. Prefix: %{l_prefix}
  92. BuildRoot: %{l_buildroot}
  93. BuildPreReq: OpenPKG, openpkg >= 20040130, perl, perl-openpkg >= 20040126
  94. PreReq: OpenPKG, openpkg >= 20040130, perl, perl-openpkg >= 20040126
  95. AutoReq: no
  96. AutoReqProv: no
  97. %description
  98. Perl module bundle related to Cryptography.
  99. - Digest (%{V_digest})
  100. - Digest::SHA1 (%{V_digest_sha1})
  101. - Digest::SHA (%{V_digest_sha})
  102. - Digest::MD2 (%{V_digest_md2})
  103. - Digest::MD4 (%{V_digest_md4})
  104. - Digest::MD5 (%{V_digest_md5})
  105. - Digest::HMAC (%{V_digest_hmac})
  106. - Crypt::RIPEMD160 (%{V_crypt_ripemd160})
  107. - Crypt::Enigma (%{V_crypt_enigma})
  108. - Crypt::UnixCrypt::%{V_crypt_unixcrypt})
  109. - Crypt::PasswdMD5 (%{V_crypt_passwdmd5})
  110. - Crypt::DES (%{V_crypt_des})
  111. - Crypt::DES::EDE3 (%{V_crypt_des_ede3})
  112. - Crypt::RC4 (%{V_crypt_rc4})
  113. - Crypt::RC5 (%{V_crypt_rc5})
  114. - Crypt::RC6 (%{V_crypt_rc6})
  115. - Crypt::GOST (%{V_crypt_ghost})
  116. - Crypt::Blowfish (%{V_crypt_blowfish})
  117. - Crypt::Twofish (%{V_crypt_twofish})
  118. - Crypt::Rot13 (%{V_crypt_rot13})
  119. - Crypt::NULL (%{V_crypt_null})
  120. - Crypt::ECB (%{V_crypt_ecb})
  121. - Crypt::CBC (%{V_crypt_cbc})
  122. - Data::UUID (%{V_data_uuid})
  123. - String::CRC32 (%{V_string_crc32})
  124. %track
  125. prog perl-crypto:Crypt-Blowfish = {
  126. version = %{V_crypt_blowfish}
  127. url = http://www.cpan.org/modules/by-module/Crypt/
  128. regex = Crypt-Blowfish-(__VER__)\.tar\.gz
  129. }
  130. prog perl-crypto:Crypt-DES = {
  131. version = %{V_crypt_des}
  132. url = http://www.cpan.org/modules/by-module/Crypt/
  133. regex = Crypt-DES-(__VER__)\.tar\.gz
  134. }
  135. prog perl-crypto:Crypt-DES_EDE3 = {
  136. version = %{V_crypt_des_ede3}
  137. url = http://www.cpan.org/modules/by-module/Crypt/
  138. regex = Crypt-DES_EDE3-(__VER__)\.tar\.gz
  139. }
  140. prog perl-crypto:Crypt-Enigma = {
  141. version = %{V_crypt_enigma}
  142. url = http://www.cpan.org/modules/by-module/Crypt/
  143. regex = Crypt-Enigma-(__VER__)\.tar\.gz
  144. }
  145. prog perl-crypto:Crypt-GOST = {
  146. version = %{V_crypt_ghost}
  147. url = http://www.cpan.org/modules/by-module/Crypt/
  148. regex = Crypt-GOST-(__VER__)\.tar\.gz
  149. }
  150. prog perl-crypto:Crypt-NULL = {
  151. version = %{V_crypt_null}
  152. url = http://www.cpan.org/modules/by-module/Crypt/
  153. regex = Crypt-NULL-(__VER__)\.tar\.gz
  154. }
  155. prog perl-crypto:Crypt-PasswdMD5 = {
  156. version = %{V_string_crc32}
  157. url = http://www.cpan.org/modules/by-module/Crypt/
  158. regex = Crypt-PasswdMD5-(__VER__)\.tar\.gz
  159. }
  160. prog perl-crypto:Crypt-RC4 = {
  161. version = %{V_crypt_cbc}
  162. url = http://www.cpan.org/modules/by-module/Crypt/
  163. regex = Crypt-RC4-(__VER__)\.tar\.gz
  164. }
  165. prog perl-crypto:Crypt-RC5 = {
  166. version = %{V_crypt_rc5}
  167. url = http://www.cpan.org/modules/by-module/Crypt/
  168. regex = Crypt-RC5-(__VER__)\.tar\.gz
  169. }
  170. prog perl-crypto:Crypt-RC6 = {
  171. version = %{V_crypt_rc6}
  172. url = http://www.cpan.org/modules/by-module/Crypt/
  173. regex = Crypt-RC6-(__VER__)\.tar\.gz
  174. }
  175. prog perl-crypto:Crypt-RIPEMD160 = {
  176. version = %{V_crypt_rot13}
  177. url = http://www.cpan.org/modules/by-module/Crypt/
  178. regex = Crypt-RIPEMD160-(__VER__)\.tar\.gz
  179. }
  180. prog perl-crypto:Crypt-Rot13 = {
  181. version = %{V_crypt_rot13}
  182. url = http://www.cpan.org/modules/by-module/Crypt/
  183. regex = Crypt-Rot13-(__VER__)\.tar\.gz
  184. }
  185. prog perl-crypto:Crypt-Twofish = {
  186. version = %{V_crypt_twofish}
  187. url = http://www.cpan.org/modules/by-module/Crypt/
  188. regex = Crypt-Twofish-(__VER__)\.tar\.gz
  189. }
  190. prog perl-crypto:Crypt-UnixCrypt = {
  191. version = %{V_crypt_rc6}
  192. url = http://www.cpan.org/modules/by-module/Crypt/
  193. regex = Crypt-UnixCrypt-(__VER__)\.tar\.gz
  194. }
  195. prog perl-crypto:Data-UUID = {
  196. version = %{V_data_uuid}
  197. url = http://www.cpan.org/modules/by-module/Data/
  198. regex = Data-UUID-(__VER__)\.tar\.gz
  199. }
  200. prog perl-crypto:Digest = {
  201. version = %{V_digest}
  202. url = http://www.cpan.org/modules/by-module/Digest/
  203. regex = Digest-(__VER__)\.tar\.gz
  204. }
  205. prog perl-crypto:Digest-HMAC = {
  206. version = %{V_digest_hmac}
  207. url = http://www.cpan.org/modules/by-module/Digest/
  208. regex = Digest-HMAC-(__VER__)\.tar\.gz
  209. }
  210. prog perl-crypto:Digest-MD2 = {
  211. version = %{V_crypt_des}
  212. url = http://www.cpan.org/modules/by-module/Digest/
  213. regex = Digest-MD2-(__VER__)\.tar\.gz
  214. }
  215. prog perl-crypto:Digest-MD4 = {
  216. version = %{V_crypt_enigma}
  217. url = http://www.cpan.org/modules/by-module/Digest/
  218. regex = Digest-MD4-(__VER__)\.tar\.gz
  219. }
  220. prog perl-crypto:Digest-MD5 = {
  221. version = %{V_digest_md5}
  222. url = http://www.cpan.org/modules/by-module/Digest/
  223. regex = Digest-MD5-(__VER__)\.tar\.gz
  224. }
  225. prog perl-crypto:Digest-SHA = {
  226. version = %{V_digest_sha}
  227. url = http://www.cpan.org/modules/by-module/Digest/
  228. regex = Digest-SHA-(__VER__)\.tar\.gz
  229. }
  230. prog perl-crypto:Digest-SHA1 = {
  231. version = %{V_digest_sha1}
  232. url = http://www.cpan.org/modules/by-module/Digest/
  233. regex = Digest-SHA1-(__VER__)\.tar\.gz
  234. }
  235. prog perl-crypto:String-CRC32 = {
  236. version = %{V_string_crc32}
  237. url = http://www.cpan.org/modules/by-module/String/
  238. regex = String-CRC32-(__VER__)\.tar\.gz
  239. }
  240. %prep
  241. %setup -q -c
  242. %setup -q -T -D -a 1
  243. %setup -q -T -D -a 2
  244. %setup -q -T -D -a 3
  245. %setup -q -T -D -a 4
  246. %setup -q -T -D -a 5
  247. %setup -q -T -D -a 6
  248. %setup -q -T -D -a 7
  249. %setup -q -T -D -a 8
  250. %setup -q -T -D -a 9
  251. %setup -q -T -D -a 10
  252. %setup -q -T -D -a 11
  253. %setup -q -T -D -a 12
  254. %setup -q -T -D -a 13
  255. %setup -q -T -D -a 14
  256. %setup -q -T -D -a 15
  257. %setup -q -T -D -a 16
  258. %setup -q -T -D -a 17
  259. %setup -q -T -D -a 18
  260. %setup -q -T -D -a 19
  261. %setup -q -T -D -a 20
  262. %setup -q -T -D -a 21
  263. %setup -q -T -D -a 22
  264. %setup -q -T -D -a 23
  265. %setup -q -T -D -a 24
  266. %patch -p0
  267. %build
  268. %install
  269. %{l_prefix}/bin/perl-openpkg prepare
  270. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  271. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  272. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  273. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  274. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  275. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  276. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  277. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  278. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  279. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  280. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  281. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  282. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  283. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  284. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  285. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  286. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  287. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  288. %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
  289. %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
  290. %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
  291. %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
  292. %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
  293. %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
  294. %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
  295. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  296. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  297. %files -f files
  298. %clean
  299. rm -rf $RPM_BUILD_ROOT