| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- ##
- ## perl-dbix.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # versions of individual parts
- %define V_perl 5.10
- %define V_dbix_dbschema 0.36
- %define V_dbix_datasource 0.02
- %define V_dbix_searchbuilder 1.56
- %define V_dbix_dwiw 0.49
- %define V_dbix_ha 1.1
- %define V_dbix_anydbd 2.01
- %define V_dbix_sqlengine 0.93
- %define V_dbix_simple 1.32
- %define V_dbix_wrapper 0.25
- %define V_dbix_contextualfetch 1.03
- %define V_ima_dbi 0.35
- %define V_class_dbi 3.0.17
- %define V_class_dbi_plugin 0.03
- %define V_class_dbi_plugin_type 0.02
- %define V_class_dbi_plugin_abstractcount 0.08
- %define V_class_dbi_plugin_retrieveall 1.04
- %define V_class_dbi_asform 2.42
- %define V_class_dbi_view 0.07
- # package information
- Name: perl-dbix
- Summary: High Level Perl Modules on top of DBI
- URL: http://www.cpan.org/
- Vendor: Perl Community
- Packager: OpenPKG Foundation e.V.
- Distribution: OpenPKG Community
- Class: BASE
- Group: Perl
- License: GPL/Artistic
- Version: %{V_perl}
- Release: 20090904
- # list of sources
- Source0: http://www.cpan.org/modules/by-module/DBIx/DBIx-DBSchema-%{V_dbix_dbschema}.tar.gz
- Source1: http://www.cpan.org/modules/by-module/DBIx/DBIx-DataSource-%{V_dbix_datasource}.tar.gz
- Source2: http://www.cpan.org/modules/by-module/DBIx/DBIx-SearchBuilder-%{V_dbix_searchbuilder}.tar.gz
- Source3: http://www.cpan.org/modules/by-module/DBIx/DBIx-DWIW-%{V_dbix_dwiw}.tar.gz
- Source4: http://www.cpan.org/modules/by-module/DBIx/DBIx-HA-%{V_dbix_ha}.tar.gz
- Source5: http://www.cpan.org/modules/by-module/DBIx/DBIx-AnyDBD-%{V_dbix_anydbd}.tar.gz
- Source6: http://www.cpan.org/modules/by-module/DBIx/DBIx-SQLEngine-%{V_dbix_sqlengine}.tar.gz
- Source7: http://www.cpan.org/modules/by-module/DBIx/DBIx-Simple-%{V_dbix_simple}.tar.gz
- Source8: http://www.cpan.org/modules/by-module/DBIx/DBIx-ContextualFetch-%{V_dbix_contextualfetch}.tar.gz
- Source9: http://www.cpan.org/modules/by-authors/id/P/PE/PERRIN/Ima-DBI-%{V_ima_dbi}.tar.gz
- Source10: http://www.cpan.org/modules/by-module/Class/Class-DBI-v%{V_class_dbi}.tar.gz
- Source11: http://www.cpan.org/modules/by-module/Class/Class-DBI-Plugin-%{V_class_dbi_plugin}.tar.gz
- Source12: http://www.cpan.org/modules/by-module/Class/Class-DBI-Plugin-Type-%{V_class_dbi_plugin_type}.tar.gz
- Source13: http://www.cpan.org/modules/by-module/Class/Class-DBI-Plugin-AbstractCount-%{V_class_dbi_plugin_abstractcount}.tar.gz
- Source14: http://www.cpan.org/modules/by-module/Class/Class-DBI-Plugin-RetrieveAll-%{V_class_dbi_plugin_retrieveall}.tar.gz
- Source15: http://www.cpan.org/modules/by-module/Class/Class-DBI-AsForm-%{V_class_dbi_asform}.tar.gz
- Source16: http://www.cpan.org/modules/by-module/Class/Class-DBI-View-%{V_class_dbi_view}.tar.gz
- Source17: http://www.cpan.org/modules/by-module/DBIx/DBIx-Wrapper-%{V_dbix_wrapper}.tar.gz
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
- PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
- BuildPreReq: perl-module, perl-dbi, perl-dbi::with_sqlite = yes, perl-util, perl-sys, perl-cache, perl-devel
- PreReq: perl-module, perl-dbi, perl-dbi::with_sqlite = yes, perl-util, perl-sys, perl-cache, perl-devel
- AutoReq: no
- AutoReqProv: no
- %description
- Various modules for using the DBI API of Perl:
- - DBIx::DBSchema (%{V_dbix_dbschema})
- - DBIx::DataSource (%{V_dbix_datasource})
- - DBIx::SearchBuilder (%{V_dbix_searchbuilder})
- - DBIx::DWIW (%{V_dbix_dwiw})
- - DBIx::HA (%{V_dbix_ha})
- - DBIx::AnyDBD (%{V_dbix_anydbd})
- - DBIx::SQLEngine (%{V_dbix_sqlengine})
- - DBIx::Simple (%{V_dbix_simple})
- - DBIx::Wrapper (%{V_dbix_wrapper})
- - DBIx::ContextualFetch (%{V_dbix_contextualfetch})
- - Ima::DBI (%{V_ima_dbi})
- - Class::DBI (%{V_class_dbi})
- - Class::DBI::Plugin (%{V_class_dbi_plugin})
- - Class::DBI::Plugin::Type (%{V_class_dbi_plugin_type})
- - Class::DBI::Plugin::AbstractCount (%{V_class_dbi_plugin_abstractcount})
- - Class::DBI::Plugin::RetrieveAll (%{V_class_dbi_plugin_retrieveall})
- - Class::DBI::AsForm (%{V_class_dbi_asform})
- - Class::DBI::View (%{V_class_dbi_view})
- %track
- prog perl-dbix:DBIx-DataSource = {
- version = %{V_dbix_datasource}
- url = http://www.cpan.org/modules/by-module/DBIx/
- regex = DBIx-DataSource-(__VER__)\.tar\.gz
- }
- prog perl-dbix:DBIx-DBSchema = {
- version = %{V_dbix_dbschema}
- url = http://www.cpan.org/modules/by-module/DBIx/
- regex = DBIx-DBSchema-(__VER__)\.tar\.gz
- }
- prog perl-dbix:DBIx-SearchBuilder = {
- version = %{V_dbix_searchbuilder}
- url = http://www.cpan.org/modules/by-module/DBIx/
- regex = DBIx-SearchBuilder-(__VER__)\.tar\.gz
- }
- prog perl-dbix:DBIx-DWIW = {
- version = %{V_dbix_dwiw}
- url = http://www.cpan.org/modules/by-module/DBIx/
- regex = DBIx-DWIW-(__VER__)\.tar\.gz
- }
- prog perl-dbix:DBIx-HA = {
- version = %{V_dbix_ha}
- url = http://www.cpan.org/modules/by-module/DBIx/
- regex = DBIx-HA-(__VER__)\.tar\.gz
- }
- prog perl-dbix:DBIx-AnyDBD = {
- version = %{V_dbix_anydbd}
- url = http://www.cpan.org/modules/by-module/DBIx/
- regex = DBIx-AnyDBD-(__VER__)\.tar\.gz
- }
- prog perl-dbix:DBIx-SQLEngine = {
- version = %{V_dbix_sqlengine}
- url = http://www.cpan.org/modules/by-module/DBIx/
- regex = DBIx-SQLEngine-(__VER__)\.tar\.gz
- }
- prog perl-dbix:DBIx-Simple = {
- version = %{V_dbix_simple}
- url = http://www.cpan.org/modules/by-module/DBIx/
- regex = DBIx-Simple-(__VER__)\.tar\.gz
- }
- prog perl-dbix:DBIx-Wrapper = {
- version = %{V_dbix_wrapper}
- url = http://www.cpan.org/modules/by-module/DBIx/
- regex = DBIx-Wrapper-(__VER__)\.tar\.gz
- }
- prog perl-dbix:DBIx-ContextualFetch = {
- version = %{V_dbix_contextualfetch}
- url = http://www.cpan.org/modules/by-module/DBIx/
- regex = DBIx-ContextualFetch-(__VER__)\.tar\.gz
- }
- prog perl-dbix:Ima-DBI = {
- version = %{V_ima_dbi}
- url = http://www.cpan.org/modules/by-authors/id/P/PE/PERRIN/
- regex = Ima-DBI-(__VER__)\.tar\.gz
- }
- prog perl-dbix:Class-DBI = {
- version = %{V_class_dbi}
- url = http://www.cpan.org/modules/by-module/Class/
- regex = Class-DBI-v?(__VER__)\.tar\.gz
- }
- prog perl-dbix:Class-DBI-Plugin = {
- version = %{V_class_dbi_plugin}
- url = http://www.cpan.org/modules/by-module/Class/
- regex = Class-DBI-Plugin-(__VER__)\.tar\.gz
- }
- prog perl-dbix:Class-DBI-Plugin-Type = {
- version = %{V_class_dbi_plugin_type}
- url = http://www.cpan.org/modules/by-module/Class/
- regex = Class-DBI-Plugin-Type-(__VER__)\.tar\.gz
- }
- prog perl-dbix:Class-DBI-Plugin-AbstractCount = {
- version = %{V_class_dbi_plugin_abstractcount}
- url = http://www.cpan.org/modules/by-module/Class/
- regex = Class-DBI-Plugin-AbstractCount-(__VER__)\.tar\.gz
- }
- prog perl-dbix:Class-DBI-Plugin-RetrieveAll = {
- version = %{V_class_dbi_plugin_retrieveall}
- url = http://www.cpan.org/modules/by-module/Class/
- regex = Class-DBI-Plugin-RetrieveAll-(__VER__)\.tar\.gz
- }
- prog perl-dbix:Class-DBI-AsForm = {
- version = %{V_class_dbi_asform}
- url = http://www.cpan.org/modules/by-module/Class/
- regex = Class-DBI-AsForm-(__VER__)\.tar\.gz
- }
- prog perl-dbix:Class-DBI-View = {
- version = %{V_class_dbi_view}
- url = http://www.cpan.org/modules/by-module/Class/
- regex = Class-DBI-View-(__VER__)\.tar\.gz
- }
- %prep
- %setup -q -c
- %setup -q -T -D -a 1
- %setup -q -T -D -a 2
- %setup -q -T -D -a 3
- %setup -q -T -D -a 4
- %setup -q -T -D -a 5
- %setup -q -T -D -a 6
- %setup -q -T -D -a 7
- %setup -q -T -D -a 8
- %setup -q -T -D -a 9
- %setup -q -T -D -a 10
- %setup -q -T -D -a 11
- %setup -q -T -D -a 12
- %setup -q -T -D -a 13
- %setup -q -T -D -a 14
- %setup -q -T -D -a 15
- %setup -q -T -D -a 16
- %setup -q -T -D -a 17
- %build
- %install
- rm -rf $RPM_BUILD_ROOT
- %{l_prefix}/bin/perl-openpkg prepare
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
- %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|