perl-db.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. ##
  2. ## perl-db.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_berkeleydb 0.21
  27. %define V_db_file 1.806
  28. %define V_db_file_lock 0.05
  29. # package information
  30. Name: perl-db
  31. Summary: Perl Modules for use with Berkeley-DB
  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: 20030512
  39. Release: 20030512
  40. # list of sources
  41. Source0: http://www.cpan.org/modules/by-module/BerkeleyDB/BerkeleyDB-%{V_berkeleydb}.tar.gz
  42. Source1: http://www.cpan.org/modules/by-module/DB_File/DB_File-%{V_db_file}.tar.gz
  43. Source2: http://www.cpan.org/modules/by-module/DB_File/DB_File-Lock-%{V_db_file_lock}.tar.gz
  44. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg, db >= 4.1.24
  48. PreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg, db >= 4.1.24
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. Various modules for using the Berkeley-DB library from within Perl:
  53. - BerkeleyDB (%{V_berkeleydb})
  54. - DB_File (%{V_db_file})
  55. - DB_File::Lock (%{V_db_file_lock})
  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 BerkeleyDB
  65. ( cd BerkeleyDB-%{V_berkeleydb}
  66. ( echo "INCLUDE = %{l_prefix}/include"
  67. echo "LIB = %{l_prefix}/lib"
  68. ) >config.in
  69. %{l_prefix}/bin/perl-openpkg install
  70. )
  71. # build DB_File
  72. ( cd DB_File-%{V_db_file}
  73. ( echo "PREFIX = size_t"
  74. echo "HASH = u_int32_t"
  75. echo "INCLUDE = %{l_prefix}/include"
  76. echo "LIB = %{l_prefix}/lib"
  77. ) >config.in
  78. %{l_shtool} subst -e "s;INSTALLDIRS => .perl.,;;" Makefile.PL
  79. %{l_prefix}/bin/perl-openpkg install
  80. )
  81. # build DB_File::Lock
  82. ( cd DB_File-Lock-%{V_db_file_lock}
  83. %{l_prefix}/bin/perl-openpkg install
  84. )
  85. # perform common epilog operations
  86. %{l_prefix}/bin/perl-openpkg epilog
  87. %files -f files
  88. %clean
  89. rm -rf $RPM_BUILD_ROOT