perl-crypto.spec 14 KB

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