perl-dbix.spec 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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.76
  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: 20021231
  39. Release: 20021231
  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 >= 5.8.0, perl-dbi, perl-util >= 20021210, perl-sys >= 20021210
  48. PreReq: OpenPKG, openpkg >= 20020206, perl >= 5.8.0, perl-dbi, perl-util >= 20021210, perl-sys >= 20021210
  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. %options
  57. %prep
  58. %setup0 -q -c
  59. %setup1 -q -T -D -a 1
  60. %setup2 -q -T -D -a 2
  61. %build
  62. %install
  63. # perform common prolog operations
  64. %{l_prefix}/bin/perl-openpkg prolog
  65. # build and install individual modules
  66. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  67. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  68. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  69. # perform common epilog operations
  70. %{l_prefix}/bin/perl-openpkg epilog
  71. %files -f files
  72. %clean
  73. rm -rf $RPM_BUILD_ROOT