perl-sys.spec 8.2 KB

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