perl-dbix.spec 11 KB

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