perl-dbix.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. ##
  2. ## perl-dbix.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # versions of individual parts
  25. %define V_perl 5.10.0
  26. %define V_dbix_dbschema 0.36
  27. %define V_dbix_datasource 0.02
  28. %define V_dbix_searchbuilder 1.50
  29. %define V_dbix_dwiw 0.48
  30. %define V_dbix_ha 1.00
  31. %define V_dbix_anydbd 2.01
  32. %define V_dbix_sqlengine 0.93
  33. %define V_dbix_simple 1.32
  34. %define V_dbix_wrapper 0.24
  35. %define V_dbix_contextualfetch 1.03
  36. %define V_ima_dbi 0.35
  37. %define V_class_dbi 3.0.17
  38. %define V_class_dbi_plugin 0.03
  39. %define V_class_dbi_plugin_type 0.02
  40. %define V_class_dbi_plugin_abstractcount 0.07
  41. %define V_class_dbi_plugin_retrieveall 1.04
  42. %define V_class_dbi_asform 2.42
  43. %define V_class_dbi_view 0.07
  44. # package information
  45. Name: perl-dbix
  46. Summary: High Level Perl Modules on top of DBI
  47. URL: http://www.cpan.org/
  48. Vendor: Perl Community
  49. Packager: OpenPKG Foundation e.V.
  50. Distribution: OpenPKG Community
  51. Class: BASE
  52. Group: Perl
  53. License: GPL/Artistic
  54. Version: %{V_perl}
  55. Release: 20071219
  56. # list of sources
  57. Source0: http://www.cpan.org/modules/by-module/DBIx/DBIx-DBSchema-%{V_dbix_dbschema}.tar.gz
  58. Source1: http://www.cpan.org/modules/by-module/DBIx/DBIx-DataSource-%{V_dbix_datasource}.tar.gz
  59. Source2: http://www.cpan.org/modules/by-module/DBIx/DBIx-SearchBuilder-%{V_dbix_searchbuilder}.tar.gz
  60. Source3: http://www.cpan.org/modules/by-module/DBIx/DBIx-DWIW-%{V_dbix_dwiw}.tar.gz
  61. Source4: http://www.cpan.org/modules/by-module/DBIx/DBIx-HA-%{V_dbix_ha}.tar.gz
  62. Source5: http://www.cpan.org/modules/by-module/DBIx/DBIx-AnyDBD-%{V_dbix_anydbd}.tar.gz
  63. Source6: http://www.cpan.org/modules/by-module/DBIx/DBIx-SQLEngine-%{V_dbix_sqlengine}.tar.gz
  64. Source7: http://www.cpan.org/modules/by-module/DBIx/DBIx-Simple-%{V_dbix_simple}.tar.gz
  65. Source8: http://www.cpan.org/modules/by-module/DBIx/DBIx-ContextualFetch-%{V_dbix_contextualfetch}.tar.gz
  66. Source9: http://www.cpan.org/modules/by-authors/id/P/PE/PERRIN/Ima-DBI-%{V_ima_dbi}.tar.gz
  67. Source10: http://www.cpan.org/modules/by-module/Class/Class-DBI-v%{V_class_dbi}.tar.gz
  68. Source11: http://www.cpan.org/modules/by-module/Class/Class-DBI-Plugin-%{V_class_dbi_plugin}.tar.gz
  69. Source12: http://www.cpan.org/modules/by-module/Class/Class-DBI-Plugin-Type-%{V_class_dbi_plugin_type}.tar.gz
  70. Source13: http://www.cpan.org/modules/by-module/Class/Class-DBI-Plugin-AbstractCount-%{V_class_dbi_plugin_abstractcount}.tar.gz
  71. Source14: http://www.cpan.org/modules/by-module/Class/Class-DBI-Plugin-RetrieveAll-%{V_class_dbi_plugin_retrieveall}.tar.gz
  72. Source15: http://www.cpan.org/modules/by-module/Class/Class-DBI-AsForm-%{V_class_dbi_asform}.tar.gz
  73. Source16: http://www.cpan.org/modules/by-module/Class/Class-DBI-View-%{V_class_dbi_view}.tar.gz
  74. Source17: http://www.cpan.org/modules/by-module/DBIx/DBIx-Wrapper-%{V_dbix_wrapper}.tar.gz
  75. # build information
  76. Prefix: %{l_prefix}
  77. BuildRoot: %{l_buildroot}
  78. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  79. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  80. BuildPreReq: perl-module, perl-dbi, perl-dbi::with_dbd_sqlite = yes, perl-util, perl-sys, perl-cache, perl-devel
  81. PreReq: perl-module, perl-dbi, perl-dbi::with_dbd_sqlite = yes, perl-util, perl-sys, perl-cache, perl-devel
  82. AutoReq: no
  83. AutoReqProv: no
  84. %description
  85. Various modules for using the DBI API of Perl:
  86. - DBIx::DBSchema (%{V_dbix_dbschema})
  87. - DBIx::DataSource (%{V_dbix_datasource})
  88. - DBIx::SearchBuilder (%{V_dbix_searchbuilder})
  89. - DBIx::DWIW (%{V_dbix_dwiw})
  90. - DBIx::HA (%{V_dbix_ha})
  91. - DBIx::AnyDBD (%{V_dbix_anydbd})
  92. - DBIx::SQLEngine (%{V_dbix_sqlengine})
  93. - DBIx::Simple (%{V_dbix_simple})
  94. - DBIx::Wrapper (%{V_dbix_wrapper})
  95. - DBIx::ContextualFetch (%{V_dbix_contextualfetch})
  96. - Ima::DBI (%{V_ima_dbi})
  97. - Class::DBI (%{V_class_dbi})
  98. - Class::DBI::Plugin (%{V_class_dbi_plugin})
  99. - Class::DBI::Plugin::Type (%{V_class_dbi_plugin_type})
  100. - Class::DBI::Plugin::AbstractCount (%{V_class_dbi_plugin_abstractcount})
  101. - Class::DBI::Plugin::RetrieveAll (%{V_class_dbi_plugin_retrieveall})
  102. - Class::DBI::AsForm (%{V_class_dbi_asform})
  103. - Class::DBI::View (%{V_class_dbi_view})
  104. %track
  105. prog perl-dbix:DBIx-DataSource = {
  106. version = %{V_dbix_datasource}
  107. url = http://www.cpan.org/modules/by-module/DBIx/
  108. regex = DBIx-DataSource-(__VER__)\.tar\.gz
  109. }
  110. prog perl-dbix:DBIx-DBSchema = {
  111. version = %{V_dbix_dbschema}
  112. url = http://www.cpan.org/modules/by-module/DBIx/
  113. regex = DBIx-DBSchema-(__VER__)\.tar\.gz
  114. }
  115. prog perl-dbix:DBIx-SearchBuilder = {
  116. version = %{V_dbix_searchbuilder}
  117. url = http://www.cpan.org/modules/by-module/DBIx/
  118. regex = DBIx-SearchBuilder-(__VER__)\.tar\.gz
  119. }
  120. prog perl-dbix:DBIx-DWIW = {
  121. version = %{V_dbix_dwiw}
  122. url = http://www.cpan.org/modules/by-module/DBIx/
  123. regex = DBIx-DWIW-(__VER__)\.tar\.gz
  124. }
  125. prog perl-dbix:DBIx-HA = {
  126. version = %{V_dbix_ha}
  127. url = http://www.cpan.org/modules/by-module/DBIx/
  128. regex = DBIx-HA-(__VER__)\.tar\.gz
  129. }
  130. prog perl-dbix:DBIx-AnyDBD = {
  131. version = %{V_dbix_anydbd}
  132. url = http://www.cpan.org/modules/by-module/DBIx/
  133. regex = DBIx-AnyDBD-(__VER__)\.tar\.gz
  134. }
  135. prog perl-dbix:DBIx-SQLEngine = {
  136. version = %{V_dbix_sqlengine}
  137. url = http://www.cpan.org/modules/by-module/DBIx/
  138. regex = DBIx-SQLEngine-(__VER__)\.tar\.gz
  139. }
  140. prog perl-dbix:DBIx-Simple = {
  141. version = %{V_dbix_simple}
  142. url = http://www.cpan.org/modules/by-module/DBIx/
  143. regex = DBIx-Simple-(__VER__)\.tar\.gz
  144. }
  145. prog perl-dbix:DBIx-Wrapper = {
  146. version = %{V_dbix_wrapper}
  147. url = http://www.cpan.org/modules/by-module/DBIx/
  148. regex = DBIx-Wrapper-(__VER__)\.tar\.gz
  149. }
  150. prog perl-dbix:DBIx-ContextualFetch = {
  151. version = %{V_dbix_contextualfetch}
  152. url = http://www.cpan.org/modules/by-module/DBIx/
  153. regex = DBIx-ContextualFetch-(__VER__)\.tar\.gz
  154. }
  155. prog perl-dbix:Ima-DBI = {
  156. version = %{V_ima_dbi}
  157. url = http://www.cpan.org/modules/by-authors/id/P/PE/PERRIN/
  158. regex = Ima-DBI-(__VER__)\.tar\.gz
  159. }
  160. prog perl-dbix:Class-DBI = {
  161. version = %{V_class_dbi}
  162. url = http://www.cpan.org/modules/by-module/Class/
  163. regex = Class-DBI-v?(__VER__)\.tar\.gz
  164. }
  165. prog perl-dbix:Class-DBI-Plugin = {
  166. version = %{V_class_dbi_plugin}
  167. url = http://www.cpan.org/modules/by-module/Class/
  168. regex = Class-DBI-Plugin-(__VER__)\.tar\.gz
  169. }
  170. prog perl-dbix:Class-DBI-Plugin-Type = {
  171. version = %{V_class_dbi_plugin_type}
  172. url = http://www.cpan.org/modules/by-module/Class/
  173. regex = Class-DBI-Plugin-Type-(__VER__)\.tar\.gz
  174. }
  175. prog perl-dbix:Class-DBI-Plugin-AbstractCount = {
  176. version = %{V_class_dbi_plugin_abstractcount}
  177. url = http://www.cpan.org/modules/by-module/Class/
  178. regex = Class-DBI-Plugin-AbstractCount-(__VER__)\.tar\.gz
  179. }
  180. prog perl-dbix:Class-DBI-Plugin-RetrieveAll = {
  181. version = %{V_class_dbi_plugin_retrieveall}
  182. url = http://www.cpan.org/modules/by-module/Class/
  183. regex = Class-DBI-Plugin-RetrieveAll-(__VER__)\.tar\.gz
  184. }
  185. prog perl-dbix:Class-DBI-AsForm = {
  186. version = %{V_class_dbi_asform}
  187. url = http://www.cpan.org/modules/by-module/Class/
  188. regex = Class-DBI-AsForm-(__VER__)\.tar\.gz
  189. }
  190. prog perl-dbix:Class-DBI-View = {
  191. version = %{V_class_dbi_view}
  192. url = http://www.cpan.org/modules/by-module/Class/
  193. regex = Class-DBI-View-(__VER__)\.tar\.gz
  194. }
  195. %prep
  196. %setup -q -c
  197. %setup -q -T -D -a 1
  198. %setup -q -T -D -a 2
  199. %setup -q -T -D -a 3
  200. %setup -q -T -D -a 4
  201. %setup -q -T -D -a 5
  202. %setup -q -T -D -a 6
  203. %setup -q -T -D -a 7
  204. %setup -q -T -D -a 8
  205. %setup -q -T -D -a 9
  206. %setup -q -T -D -a 10
  207. %setup -q -T -D -a 11
  208. %setup -q -T -D -a 12
  209. %setup -q -T -D -a 13
  210. %setup -q -T -D -a 14
  211. %setup -q -T -D -a 15
  212. %setup -q -T -D -a 16
  213. %setup -q -T -D -a 17
  214. %build
  215. %install
  216. rm -rf $RPM_BUILD_ROOT
  217. %{l_prefix}/bin/perl-openpkg prepare
  218. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  219. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  220. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  221. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  222. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  223. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  224. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  225. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  226. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  227. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  228. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  229. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  230. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  231. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  232. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  233. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  234. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  235. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  236. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  237. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  238. %files -f files
  239. %clean
  240. rm -rf $RPM_BUILD_ROOT