perl-sys.spec 14 KB

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