perl-dbix.spec 5.7 KB

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