perl-dbix.spec 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. ##
  2. ## perl-dbix.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.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_dbix_dbschema 0.21
  27. %define V_dbix_datasource 0.02
  28. %define V_dbix_searchbuilder 0.81
  29. # package information
  30. Name: perl-dbix
  31. Summary: High Level Perl Modules on top of DBI
  32. URL: http://www.cpan.org/
  33. Vendor: Perl Community
  34. Packager: The OpenPKG Project
  35. Distribution: OpenPKG [BASE]
  36. Group: Language
  37. License: GPL/Artistic
  38. Version: 20030502
  39. Release: 20030502
  40. # list of sources
  41. Source0: http://www.cpan.org/modules/by-module/DBIx/DBIx-DBSchema-%{V_dbix_dbschema}.tar.gz
  42. Source1: http://www.cpan.org/modules/by-module/DBIx/DBIx-DataSource-%{V_dbix_datasource}.tar.gz
  43. Source2: http://www.cpan.org/modules/by-module/DBIx/DBIx-SearchBuilder-%{V_dbix_searchbuilder}.tar.gz
  44. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg, perl-dbi, perl-util, perl-sys
  48. PreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg, perl-dbi, perl-util, perl-sys
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. Various modules for using the DBI API of Perl:
  53. - DBIx::DBSchema (%{V_dbix_dbschema})
  54. - DBIx::DataSource (%{V_dbix_datasource})
  55. - DBIx::SearchBuilder (%{V_dbix_searchbuilder})
  56. %prep
  57. %setup0 -q -c
  58. %setup1 -q -T -D -a 1
  59. %setup2 -q -T -D -a 2
  60. %build
  61. %install
  62. # perform common prolog operations
  63. %{l_prefix}/bin/perl-openpkg prolog
  64. # build and install individual modules
  65. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  66. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  67. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  68. # perform common epilog operations
  69. %{l_prefix}/bin/perl-openpkg epilog
  70. %files -f files
  71. %clean
  72. rm -rf $RPM_BUILD_ROOT