perl-sys.spec 7.8 KB

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