perl-dbix.spec 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. ##
  2. ## perl-dbix.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.4
  27. %define V_dbix_dbschema 0.23
  28. %define V_dbix_datasource 0.02
  29. %define V_dbix_searchbuilder 0.99
  30. %define V_dbix_dwiw 0.36
  31. %define V_dbix_ha 0.61
  32. %define V_dbix_anydbd 2.01
  33. %define V_dbix_sqlengine 0.028
  34. %define V_dbix_simple 1.22
  35. # package information
  36. Name: perl-dbix
  37. Summary: High Level Perl Modules on top of DBI
  38. URL: http://www.cpan.org/
  39. Vendor: Perl Community
  40. Packager: The OpenPKG Project
  41. Distribution: OpenPKG
  42. Class: BASE
  43. Group: Language
  44. License: GPL/Artistic
  45. Version: %{V_perl}
  46. Release: 20040508
  47. # list of sources
  48. Source0: http://www.cpan.org/modules/by-module/DBIx/DBIx-DBSchema-%{V_dbix_dbschema}.tar.gz
  49. Source1: http://www.cpan.org/modules/by-module/DBIx/DBIx-DataSource-%{V_dbix_datasource}.tar.gz
  50. Source2: http://www.cpan.org/modules/by-module/DBIx/DBIx-SearchBuilder-%{V_dbix_searchbuilder}.tar.gz
  51. Source3: http://www.cpan.org/modules/by-module/DBIx/DBIx-DWIW-%{V_dbix_dwiw}.tar.gz
  52. Source4: http://www.cpan.org/modules/by-module/DBIx/DBIx-HA-%{V_dbix_ha}.tar.gz
  53. Source5: http://www.cpan.org/modules/by-module/DBIx/DBIx-AnyDBD-%{V_dbix_anydbd}.tar.gz
  54. Source6: http://www.cpan.org/modules/by-module/DBIx/DBIx-SQLEngine-%{V_dbix_sqlengine}.tar.gz
  55. Source7: http://www.cpan.org/modules/by-module/DBIx/DBIx-Simple-%{V_dbix_simple}.tar.gz
  56. # build information
  57. Prefix: %{l_prefix}
  58. BuildRoot: %{l_buildroot}
  59. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  60. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  61. BuildPreReq: perl-dbi, perl-util, perl-sys
  62. PreReq: perl-dbi, perl-util, perl-sys
  63. AutoReq: no
  64. AutoReqProv: no
  65. %description
  66. Various modules for using the DBI API of Perl:
  67. - DBIx::DBSchema (%{V_dbix_dbschema})
  68. - DBIx::DataSource (%{V_dbix_datasource})
  69. - DBIx::SearchBuilder (%{V_dbix_searchbuilder})
  70. - DBIx::DWIW (%{V_dbix_dwiw})
  71. - DBIx::HA (%{V_dbix_ha})
  72. - DBIx::AnyDBD (%{V_dbix_anydbd})
  73. - DBIx::SQLEngine (%{V_dbix_sqlengine})
  74. - DBIx::Simple (%{V_dbix_simple})
  75. %track
  76. prog perl-dbix:DBIx-DataSource = {
  77. version = %{V_dbix_datasource}
  78. url = http://www.cpan.org/modules/by-module/DBIx/
  79. regex = DBIx-DataSource-(__VER__)\.tar\.gz
  80. }
  81. prog perl-dbix:DBIx-DBSchema = {
  82. version = %{V_dbix_dbschema}
  83. url = http://www.cpan.org/modules/by-module/DBIx/
  84. regex = DBIx-DBSchema-(__VER__)\.tar\.gz
  85. }
  86. prog perl-dbix:DBIx-SearchBuilder = {
  87. version = %{V_dbix_searchbuilder}
  88. url = http://www.cpan.org/modules/by-module/DBIx/
  89. regex = DBIx-SearchBuilder-(__VER__)\.tar\.gz
  90. }
  91. prog perl-dbix:DBIx-DWIW = {
  92. version = %{V_dbix_dwiw}
  93. url = http://www.cpan.org/modules/by-module/DBIx/
  94. regex = DBIx-DWIW-(__VER__)\.tar\.gz
  95. }
  96. prog perl-dbix:DBIx-HA = {
  97. version = %{V_dbix_ha}
  98. url = http://www.cpan.org/modules/by-module/DBIx/
  99. regex = DBIx-HA-(__VER__)\.tar\.gz
  100. }
  101. prog perl-dbix:DBIx-AnyDBD = {
  102. version = %{V_dbix_anydbd}
  103. url = http://www.cpan.org/modules/by-module/DBIx/
  104. regex = DBIx-AnyDBD-(__VER__)\.tar\.gz
  105. }
  106. prog perl-dbix:DBIx-SQLEngine = {
  107. version = %{V_dbix_sqlengine}
  108. url = http://www.cpan.org/modules/by-module/DBIx/
  109. regex = DBIx-SQLEngine-(__VER__)\.tar\.gz
  110. }
  111. prog perl-dbix:DBIx-Simple = {
  112. version = %{V_dbix_simple}
  113. url = http://www.cpan.org/modules/by-module/DBIx/
  114. regex = DBIx-Simple-(__VER__)\.tar\.gz
  115. }
  116. %prep
  117. %setup -q -c
  118. %setup -q -T -D -a 1
  119. %setup -q -T -D -a 2
  120. %setup -q -T -D -a 3
  121. %setup -q -T -D -a 4
  122. %setup -q -T -D -a 5
  123. %setup -q -T -D -a 6
  124. %setup -q -T -D -a 7
  125. %build
  126. %install
  127. rm -rf $RPM_BUILD_ROOT
  128. %{l_prefix}/bin/perl-openpkg prepare
  129. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  130. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  131. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  132. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  133. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  134. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  135. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  136. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  137. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  138. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  139. %files -f files
  140. %clean
  141. rm -rf $RPM_BUILD_ROOT