perl-sys.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. ##
  2. ## perl-sys.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2005 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.6
  27. %define V_unix_syslog 0.99
  28. %define V_archive_tar 1.23
  29. %define V_archive_zip 1.14
  30. %define V_expect 1.15
  31. %define V_storable 2.13
  32. %define V_ipc_sharelite 0.09
  33. %define V_ipc_shareable 0.60
  34. %define V_ipc_sharedcache 1.3
  35. %define V_ipc_run 0.79
  36. %define V_ipc_signal 1.00
  37. %define V_ipc_filter 0.001
  38. %define V_file_tail 0.99.1
  39. %define V_freezethaw 0.43
  40. %define V_authen_sasl 2.08
  41. %define V_weakref 0.01
  42. %define V_filehandle_deluxe 0.92
  43. %define V_filehandle_rollback 1.05
  44. %define V_filehandle_unget 0.1620
  45. %define V_spiffy 0.22
  46. %define V_io_all 0.33
  47. %define V_io_multiplex 1.08
  48. %define V_io_interface 0.98
  49. %define V_boulder 1.30
  50. %define V_error 0.15
  51. # package information
  52. Name: perl-sys
  53. Summary: Perl Modules for use with the system
  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: %{V_perl}
  62. Release: 20050121
  63. # list of sources
  64. Source0: http://www.cpan.org/modules/by-module/Unix/Unix-Syslog-%{V_unix_syslog}.tar.gz
  65. Source1: http://www.cpan.org/modules/by-module/Archive/Archive-Tar-%{V_archive_tar}.tar.gz
  66. Source2: http://www.cpan.org/modules/by-module/Archive/Archive-Zip-%{V_archive_zip}.tar.gz
  67. Source3: http://www.cpan.org/modules/by-module/Expect/Expect-%{V_expect}.tar.gz
  68. Source4: http://www.cpan.org/modules/by-module/Storable/Storable-%{V_storable}.tar.gz
  69. Source5: http://www.cpan.org/modules/by-module/IPC/IPC-Shareable-%{V_ipc_shareable}.tar.gz
  70. Source6: http://www.cpan.org/modules/by-module/File/File-Tail-%{V_file_tail}.tar.gz
  71. Source7: http://www.cpan.org/modules/by-module/FreezeThaw/FreezeThaw-%{V_freezethaw}.tar.gz
  72. Source8: http://www.cpan.org/modules/by-module/Authen/Authen-SASL-%{V_authen_sasl}.tar.gz
  73. Source9: http://www.cpan.org/authors/id/L/LU/LUKKA/WeakRef-%{V_weakref}.tar.gz
  74. Source10: http://www.cpan.org/modules/by-module/FileHandle/FileHandle-Deluxe-%{V_filehandle_deluxe}.tar.gz
  75. Source11: http://www.cpan.org/modules/by-module/FileHandle/FileHandle-Rollback-%{V_filehandle_rollback}.tar.gz
  76. Source12: http://www.cpan.org/modules/by-module/FileHandle/FileHandle-Unget-%{V_filehandle_unget}.tar.gz
  77. Source13: http://www.cpan.org/modules/by-module/IPC/IPC-ShareLite-%{V_ipc_sharelite}.tar.gz
  78. Source14: http://www.cpan.org/modules/by-module/IPC/IPC-SharedCache-%{V_ipc_sharedcache}.tar.gz
  79. Source15: http://www.cpan.org/modules/by-module/IPC/IPC-Run-%{V_ipc_run}.tar.gz
  80. Source16: http://www.cpan.org/modules/by-module/IPC/IPC-Signal-%{V_ipc_signal}.tar.gz
  81. Source17: http://www.cpan.org/modules/by-module/IPC/IPC-Filter-%{V_ipc_filter}.tar.gz
  82. Source18: http://www.cpan.org/authors/id/I/IN/INGY/Spiffy-%{V_spiffy}.tar.gz
  83. Source19: http://www.cpan.org/modules/by-module/IO/IO-All-%{V_io_all}.tar.gz
  84. Source20: http://www.cpan.org/modules/by-module/IO/IO-Multiplex-%{V_io_multiplex}.tar.gz
  85. Source21: http://www.cpan.org/modules/by-module/IO/IO-Interface-%{V_io_interface}.tar.gz
  86. Source22: http://www.cpan.org/modules/by-module/Boulder/Boulder-%{V_boulder}.tar.gz
  87. Source23: http://www.cpan.org/modules/by-module/Error/Error-%{V_error}.tar.gz
  88. # build information
  89. Prefix: %{l_prefix}
  90. BuildRoot: %{l_buildroot}
  91. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  92. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  93. BuildPreReq: perl-time, perl-term
  94. PreReq: perl-time, perl-term
  95. AutoReq: no
  96. AutoReqProv: no
  97. %description
  98. Perl modules for use with the system:
  99. - Unix::Syslog (%{V_unix_syslog})
  100. - Archive::Tar (%{V_archive_tar})
  101. - Expect (%{V_expect})
  102. - Storable (%{V_storable})
  103. - IPC::ShareLite (%{V_ipc_sharelite})
  104. - IPC::Shareable (%{V_ipc_shareable})
  105. - IPC::SharedCache (%{V_ipc_sharedcache})
  106. - IPC::Run (%{V_ipc_run})
  107. - IPC::Signal (%{V_ipc_signal})
  108. - IPC::Filter (%{V_ipc_filter})
  109. - File::Tail (%{V_file_tail})
  110. - FreezeThaw (%{V_freezethaw})
  111. - Authen::SASL (%{V_authen_sasl})
  112. - Archive::Zip (%{V_archive_zip})
  113. - WeakRef (%{V_weakref})
  114. - FileHandle::Deluxe (%{V_filehandle_deluxe})
  115. - FileHandle::Rollback (%{V_filehandle_rollback})
  116. - FileHandle::Unget (%{V_filehandle_unget})
  117. - Spiffy (%{V_spiffy})
  118. - IO::All (%{V_io_all})
  119. - IO::Multiplex (%{V_io_multiplex})
  120. - IO::Interface (%{V_io_interface})
  121. - Boulder (%{V_boulder})
  122. - Error (%{V_error})
  123. %track
  124. prog perl-sys:Archive-Tar = {
  125. version = %{V_archive_tar}
  126. url = http://www.cpan.org/modules/by-module/Archive/
  127. regex = Archive-Tar-(__VER__)\.tar\.gz
  128. }
  129. prog perl-sys:Archive-Zip = {
  130. version = %{V_archive_zip}
  131. url = http://www.cpan.org/modules/by-module/Archive/
  132. regex = Archive-Zip-(__VER__)\.tar\.gz
  133. }
  134. prog perl-sys:Authen-SASL = {
  135. version = %{V_authen_sasl}
  136. url = http://www.cpan.org/modules/by-module/Authen/
  137. regex = Authen-SASL-(__VER__)\.tar\.gz
  138. }
  139. prog perl-sys:Expect = {
  140. version = %{V_expect}
  141. url = http://www.cpan.org/modules/by-module/Expect/
  142. regex = Expect-(__VER__)\.tar\.gz
  143. }
  144. prog perl-sys:File-Tail = {
  145. version = %{V_file_tail}
  146. url = http://www.cpan.org/modules/by-module/File/
  147. regex = File-Tail-(__VER__)\.tar\.gz
  148. }
  149. prog perl-sys:FileHandle-Deluxe = {
  150. version = %{V_filehandle_deluxe}
  151. url = http://www.cpan.org/modules/by-module/FileHandle/
  152. regex = FileHandle-Deluxe-(__VER__)\.tar\.gz
  153. }
  154. prog perl-sys:FileHandle-Rollback = {
  155. version = %{V_filehandle_rollback}
  156. url = http://www.cpan.org/modules/by-module/FileHandle/
  157. regex = FileHandle-Rollback-(__VER__)\.tar\.gz
  158. }
  159. prog perl-sys:FileHandle-Unget = {
  160. version = %{V_filehandle_unget}
  161. url = http://www.cpan.org/modules/by-module/FileHandle/
  162. regex = FileHandle-Unget-(__VER__)\.tar\.gz
  163. }
  164. prog perl-sys:FreezeThaw = {
  165. version = %{V_freezethaw}
  166. url = http://www.cpan.org/modules/by-module/FreezeThaw/
  167. regex = FreezeThaw-(__VER__)\.tar\.gz
  168. }
  169. prog perl-sys:IPC-Shareable = {
  170. version = %{V_ipc_shareable}
  171. url = http://www.cpan.org/modules/by-module/IPC/
  172. regex = IPC-Shareable-(__VER__)\.tar\.gz
  173. }
  174. prog perl-sys:IPC-ShareLite = {
  175. version = %{V_ipc_sharelite}
  176. url = http://www.cpan.org/modules/by-module/IPC/
  177. regex = IPC-ShareLite-(__VER__)\.tar\.gz
  178. }
  179. prog perl-sys:IPC-SharedCache = {
  180. version = %{V_ipc_sharedcache}
  181. url = http://www.cpan.org/modules/by-module/IPC/
  182. regex = IPC-SharedCache-(__VER__)\.tar\.gz
  183. }
  184. prog perl-sys:IPC-Run = {
  185. version = %{V_ipc_run}
  186. url = http://www.cpan.org/modules/by-module/IPC/
  187. regex = IPC-Run-(__VER__)\.tar\.gz
  188. }
  189. prog perl-sys:IPC-Signal = {
  190. version = %{V_ipc_signal}
  191. url = http://www.cpan.org/modules/by-module/IPC/
  192. regex = IPC-Signal-(__VER__)\.tar\.gz
  193. }
  194. prog perl-sys:IPC-Filter = {
  195. version = %{V_ipc_filter}
  196. url = http://www.cpan.org/modules/by-module/IPC/
  197. regex = IPC-Filter-(__VER__)\.tar\.gz
  198. }
  199. prog perl-sys:Storable = {
  200. version = %{V_storable}
  201. url = http://www.cpan.org/modules/by-module/Storable/
  202. regex = Storable-(__VER__)\.tar\.gz
  203. }
  204. prog perl-sys:Unix-Syslog = {
  205. version = %{V_unix_syslog}
  206. url = http://www.cpan.org/modules/by-module/Unix/
  207. regex = Unix-Syslog-(__VER__)\.tar\.gz
  208. }
  209. prog perl-sys:WeakRef = {
  210. version = %{V_weakref}
  211. url = http://www.cpan.org/authors/id/L/LU/LUKKA/
  212. regex = WeakRef-(__VER__)\.tar\.gz
  213. }
  214. prog perl-sys:Spiffy = {
  215. version = %{V_spiffy}
  216. url = http://www.cpan.org/authors/id/I/IN/INGY/
  217. regex = Spiffy-(__VER__)\.tar\.gz
  218. }
  219. prog perl-sys:IO-All = {
  220. version = %{V_io_all}
  221. url = http://www.cpan.org/modules/by-module/IO/
  222. regex = IO-All-(__VER__)\.tar\.gz
  223. }
  224. prog perl-sys:IO-Multiplex = {
  225. version = %{V_io_multiplex}
  226. url = http://www.cpan.org/modules/by-module/IO/
  227. regex = IO-Multiplex-(__VER__)\.tar\.gz
  228. }
  229. prog perl-sys:IO-Interface = {
  230. version = %{V_io_interface}
  231. url = http://www.cpan.org/modules/by-module/IO/
  232. regex = IO-Interface-(__VER__)\.tar\.gz
  233. }
  234. prog perl-sys:Boulder = {
  235. version = %{V_boulder}
  236. url = http://www.cpan.org/modules/by-module/Boulder/
  237. regex = Boulder-(__VER__)\.tar\.gz
  238. }
  239. prog perl-sys:Error = {
  240. version = %{V_boulder}
  241. url = http://www.cpan.org/modules/by-module/Error/
  242. regex = Error-(__VER__)\.tar\.gz
  243. }
  244. %prep
  245. %setup -q -c
  246. %setup -q -T -D -a 1
  247. %setup -q -T -D -a 2
  248. %setup -q -T -D -a 3
  249. %setup -q -T -D -a 4
  250. %setup -q -T -D -a 5
  251. %setup -q -T -D -a 6
  252. %setup -q -T -D -a 7
  253. %setup -q -T -D -a 8
  254. %setup -q -T -D -a 9
  255. %setup -q -T -D -a 10
  256. %setup -q -T -D -a 11
  257. %setup -q -T -D -a 12
  258. %setup -q -T -D -a 13
  259. %setup -q -T -D -a 14
  260. %setup -q -T -D -a 15
  261. %setup -q -T -D -a 16
  262. %setup -q -T -D -a 17
  263. %setup -q -T -D -a 18
  264. %setup -q -T -D -a 19
  265. %setup -q -T -D -a 20
  266. %setup -q -T -D -a 21
  267. %setup -q -T -D -a 22
  268. %setup -q -T -D -a 23
  269. %build
  270. %install
  271. rm -rf $RPM_BUILD_ROOT
  272. %{l_prefix}/bin/perl-openpkg prepare
  273. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  274. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  275. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  276. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  277. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  278. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  279. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  280. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  281. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  282. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  283. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  284. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  285. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  286. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  287. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  288. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  289. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  290. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  291. %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
  292. %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
  293. %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
  294. %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
  295. %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
  296. %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
  297. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  298. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  299. %files -f files
  300. %clean
  301. rm -rf $RPM_BUILD_ROOT