perl-sys.spec 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. ##
  2. ## perl-sys.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.3
  27. %define V_unix_syslog 0.99
  28. %define V_archive_tar 1.08
  29. %define V_archive_zip 1.10
  30. %define V_expect 1.15
  31. %define V_storable 2.12
  32. %define V_ipc_sharelite 0.09
  33. %define V_ipc_shareable 0.60
  34. %define V_ipc_sharedcache 1.3
  35. %define V_file_tail 0.98
  36. %define V_freezethaw 0.43
  37. %define V_authen_sasl 2.07
  38. %define V_weakref 0.01
  39. %define V_filehandle_deluxe 0.92
  40. %define V_filehandle_rollback 1.05
  41. %define V_filehandle_unget 0.14
  42. # package information
  43. Name: perl-sys
  44. Summary: Perl Modules for use with the system
  45. URL: http://www.cpan.org/
  46. Vendor: Perl Community
  47. Packager: The OpenPKG Project
  48. Distribution: OpenPKG
  49. Class: BASE
  50. Group: Language
  51. License: GPL/Artistic
  52. Version: %{V_perl}
  53. Release: 20040413
  54. # list of sources
  55. Source0: http://www.cpan.org/modules/by-module/Unix/Unix-Syslog-%{V_unix_syslog}.tar.gz
  56. Source1: http://www.cpan.org/modules/by-module/Archive/Archive-Tar-%{V_archive_tar}.tar.gz
  57. Source2: http://www.cpan.org/modules/by-module/Archive/Archive-Zip-%{V_archive_zip}.tar.gz
  58. Source3: http://www.cpan.org/modules/by-module/Expect/Expect-%{V_expect}.tar.gz
  59. Source4: http://www.cpan.org/modules/by-module/Storable/Storable-%{V_storable}.tar.gz
  60. Source5: http://www.cpan.org/modules/by-module/IPC/IPC-Shareable-%{V_ipc_shareable}.tar.gz
  61. Source6: http://www.cpan.org/modules/by-module/File/File-Tail-%{V_file_tail}.tar.gz
  62. Source7: http://www.cpan.org/modules/by-module/FreezeThaw/FreezeThaw-%{V_freezethaw}.tar.gz
  63. Source8: http://www.cpan.org/modules/by-module/Authen/Authen-SASL-%{V_authen_sasl}.tar.gz
  64. Source9: http://www.cpan.org/authors/id/L/LU/LUKKA/WeakRef-%{V_weakref}.tar.gz
  65. Source10: http://www.cpan.org/modules/by-module/FileHandle/FileHandle-Deluxe-%{V_filehandle_deluxe}.tar.gz
  66. Source11: http://www.cpan.org/modules/by-module/FileHandle/FileHandle-Rollback-%{V_filehandle_rollback}.tar.gz
  67. Source12: http://www.cpan.org/modules/by-module/FileHandle/FileHandle-Unget-%{V_filehandle_unget}.tar.gz
  68. Source13: http://www.cpan.org/modules/by-module/IPC/IPC-ShareLite-%{V_ipc_sharelite}.tar.gz
  69. Source14: http://www.cpan.org/modules/by-module/IPC/IPC-SharedCache-%{V_ipc_sharedcache}.tar.gz
  70. # build information
  71. Prefix: %{l_prefix}
  72. BuildRoot: %{l_buildroot}
  73. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  74. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  75. BuildPreReq: perl-time, perl-term
  76. PreReq: perl-time, perl-term
  77. AutoReq: no
  78. AutoReqProv: no
  79. %description
  80. Perl modules for use with the system:
  81. - Unix::Syslog (%{V_unix_syslog})
  82. - Archive::Tar (%{V_archive_tar})
  83. - Expect (%{V_expect})
  84. - Storable (%{V_storable})
  85. - IPC::ShareLite (%{V_ipc_sharelite})
  86. - IPC::Shareable (%{V_ipc_shareable})
  87. - IPC::SharedCache (%{V_ipc_sharedcache})
  88. - File::Tail (%{V_file_tail})
  89. - FreezeThaw (%{V_freezethaw})
  90. - Authen::SASL (%{V_authen_sasl})
  91. - Archive::Zip (%{V_archive_zip})
  92. - WeakRef (%{V_weakref})
  93. - FileHandle::Deluxe (%{V_filehandle_deluxe})
  94. - FileHandle::Rollback (%{V_filehandle_rollback})
  95. - FileHandle::Unget (%{V_filehandle_unget})
  96. %track
  97. prog perl-sys:Archive-Tar = {
  98. version = %{V_archive_tar}
  99. url = http://www.cpan.org/modules/by-module/Archive/
  100. regex = Archive-Tar-(__VER__)\.tar\.gz
  101. }
  102. prog perl-sys:Archive-Zip = {
  103. version = %{V_archive_zip}
  104. url = http://www.cpan.org/modules/by-module/Archive/
  105. regex = Archive-Zip-(__VER__)\.tar\.gz
  106. }
  107. prog perl-sys:Authen-SASL = {
  108. version = %{V_authen_sasl}
  109. url = http://www.cpan.org/modules/by-module/Authen/
  110. regex = Authen-SASL-(__VER__)\.tar\.gz
  111. }
  112. prog perl-sys:Expect = {
  113. version = %{V_expect}
  114. url = http://www.cpan.org/modules/by-module/Expect/
  115. regex = Expect-(__VER__)\.tar\.gz
  116. }
  117. prog perl-sys:File-Tail = {
  118. version = %{V_file_tail}
  119. url = http://www.cpan.org/modules/by-module/File/
  120. regex = File-Tail-(__VER__)\.tar\.gz
  121. }
  122. prog perl-sys:FileHandle-Deluxe = {
  123. version = %{V_filehandle_deluxe}
  124. url = http://www.cpan.org/modules/by-module/FileHandle/
  125. regex = FileHandle-Deluxe-(__VER__)\.tar\.gz
  126. }
  127. prog perl-sys:FileHandle-Rollback = {
  128. version = %{V_filehandle_rollback}
  129. url = http://www.cpan.org/modules/by-module/FileHandle/
  130. regex = FileHandle-Rollback-(__VER__)\.tar\.gz
  131. }
  132. prog perl-sys:FileHandle-Unget = {
  133. version = %{V_filehandle_unget}
  134. url = http://www.cpan.org/modules/by-module/FileHandle/
  135. regex = FileHandle-Unget-(__VER__)\.tar\.gz
  136. }
  137. prog perl-sys:FreezeThaw = {
  138. version = %{V_freezethaw}
  139. url = http://www.cpan.org/modules/by-module/FreezeThaw/
  140. regex = FreezeThaw-(__VER__)\.tar\.gz
  141. }
  142. prog perl-sys:IPC-Shareable = {
  143. version = %{V_ipc_shareable}
  144. url = http://www.cpan.org/modules/by-module/IPC/
  145. regex = IPC-Shareable-(__VER__)\.tar\.gz
  146. }
  147. prog perl-sys:IPC-ShareLite = {
  148. version = %{V_ipc_sharelite}
  149. url = http://www.cpan.org/modules/by-module/IPC/
  150. regex = IPC-ShareLite-(__VER__)\.tar\.gz
  151. }
  152. prog perl-sys:IPC-SharedCache = {
  153. version = %{V_ipc_sharedcache}
  154. url = http://www.cpan.org/modules/by-module/IPC/
  155. regex = IPC-SharedCache-(__VER__)\.tar\.gz
  156. }
  157. prog perl-sys:Storable = {
  158. version = %{V_storable}
  159. url = http://www.cpan.org/modules/by-module/Storable/
  160. regex = Storable-(__VER__)\.tar\.gz
  161. }
  162. prog perl-sys:Unix-Syslog = {
  163. version = %{V_unix_syslog}
  164. url = http://www.cpan.org/modules/by-module/Unix/
  165. regex = Unix-Syslog-(__VER__)\.tar\.gz
  166. }
  167. prog perl-sys:WeakRef = {
  168. version = %{V_weakref}
  169. url = http://search.cpan.org/CPAN/authors/id/L/LU/LUKKA/
  170. regex = WeakRef-(__VER__)\.tar\.gz
  171. }
  172. %prep
  173. %setup -q -c
  174. %setup -q -T -D -a 1
  175. %setup -q -T -D -a 2
  176. %setup -q -T -D -a 3
  177. %setup -q -T -D -a 4
  178. %setup -q -T -D -a 5
  179. %setup -q -T -D -a 6
  180. %setup -q -T -D -a 7
  181. %setup -q -T -D -a 8
  182. %setup -q -T -D -a 9
  183. %setup -q -T -D -a 10
  184. %setup -q -T -D -a 11
  185. %setup -q -T -D -a 12
  186. %setup -q -T -D -a 13
  187. %setup -q -T -D -a 14
  188. %build
  189. %install
  190. %{l_prefix}/bin/perl-openpkg prepare
  191. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  192. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  193. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  194. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  195. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  196. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  197. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  198. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  199. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  200. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  201. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  202. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  203. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  204. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  205. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  206. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  207. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  208. %files -f files
  209. %clean
  210. rm -rf $RPM_BUILD_ROOT