db2-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. Summary: The BSD database library for C (version 2).
  2. Summary(ja): C 用 BSD データベースライブラリ (バージョン2)
  3. Name: db2
  4. Version: 2.4.14
  5. Release: 5vl2
  6. #Source: http://www.sleepycat.com/update/2.7.7/db-2.7.7.tar.gz
  7. # Taken from glibc 2.1.3
  8. Source: db2-glibc-2.1.3.tar.gz
  9. # Patch to make it standalone
  10. Patch0: db2-glibc-2.1.3.patch
  11. Patch1: db2-2.4.14-db2.patch
  12. URL: http://www.sleepycat.com
  13. Copyright: GPL
  14. Group: System Environment/Libraries
  15. PreReq: /sbin/ldconfig
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. Prefix: %{_prefix}
  18. %ifnarch ia64
  19. Conflicts: glibc < 2.1.90
  20. %endif
  21. %package devel
  22. Summary: Development libs/header files for Berkeley DB (version 2) library.
  23. Summary(ja): Berkeley DB (バージョン2) 用開発ライブラリ/ヘッダファイル
  24. Group: Development/Libraries
  25. Prefix: %{_prefix}
  26. Requires: %{name} = %{version}
  27. %ifnarch ia64
  28. Conflicts: glibc-devel < 2.1.90
  29. %endif
  30. %description
  31. The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
  32. embedded database support for both traditional and client/server applications.
  33. This library used to be part of the glibc package.
  34. %description devel
  35. The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
  36. embedded database support for both traditional and client/server applications.
  37. Berkeley DB includes B tree, Hashing, Fixed and Variable-length
  38. record access methods.
  39. This package contains the header files, libraries, and documentation for
  40. building programs which use Berkeley DB.
  41. %prep
  42. %setup -q -n db2
  43. %patch0 -p1
  44. %patch1 -p1 -b .db2
  45. %build
  46. CFLAGS="$RPM_OPT_FLAGS" make
  47. %install
  48. rm -rf ${RPM_BUILD_ROOT}
  49. mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/{include/db2,lib,bin}
  50. # XXX this causes all symbols to be deleted from the shared library
  51. #strip -R .comment libdb2.so.3
  52. install -m644 libdb2.a $RPM_BUILD_ROOT/%{_prefix}/lib/libdb2.a
  53. install -m755 libdb2.so.3 $RPM_BUILD_ROOT/%{_prefix}/lib/libdb2.so.3
  54. ln -sf libdb2.so.3 $RPM_BUILD_ROOT/%{_prefix}/lib/libdb2.so
  55. ln -sf libdb2.a $RPM_BUILD_ROOT/%{_prefix}/lib/libndbm.a
  56. ln -sf libdb2.so.3 $RPM_BUILD_ROOT/%{_prefix}/lib/libndbm.so
  57. install -m644 db.h $RPM_BUILD_ROOT/%{_prefix}/include/db2
  58. install -m644 db_185.h $RPM_BUILD_ROOT/%{_prefix}/include/db2
  59. for p in db_archive db_checkpoint db_deadlock db_dump db_load \
  60. db_printlog db_recover db_stat; do
  61. q="`echo $p | sed -e 's,^db_,db2_,'`"
  62. install -s -m755 $p $RPM_BUILD_ROOT/%{_prefix}/bin/$q
  63. done
  64. %clean
  65. rm -rf ${RPM_BUILD_ROOT}
  66. %post -p /sbin/ldconfig
  67. %postun -p /sbin/ldconfig
  68. %files
  69. %defattr(-,root,root)
  70. %doc README LICENSE
  71. %{_prefix}/lib/libdb2.so.3
  72. %files devel
  73. %defattr(-,root,root)
  74. %{_prefix}/include/db2/db.h
  75. %{_prefix}/include/db2/db_185.h
  76. %{_prefix}/lib/libdb2.a
  77. %{_prefix}/lib/libdb2.so
  78. %{_prefix}/lib/libndbm.a
  79. %{_prefix}/lib/libndbm.so
  80. %{_prefix}/bin/db2_archive
  81. %{_prefix}/bin/db2_checkpoint
  82. %{_prefix}/bin/db2_deadlock
  83. %{_prefix}/bin/db2_dump
  84. %{_prefix}/bin/db2_load
  85. %{_prefix}/bin/db2_printlog
  86. %{_prefix}/bin/db2_recover
  87. %{_prefix}/bin/db2_stat
  88. %changelog
  89. * Tue Dec 11 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.4.15-5vl2
  90. - increeased release number for VineSeed main tree :)
  91. * Thu May 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  92. - 2.4.15-5vl1
  93. - based on 2.4.15-5 from Rawhide
  94. - rebuilt for VineSeed
  95. * Fri Oct 6 2000 Jeff Johnson <jbj@redhat.com>
  96. - license is not BSD, GPL is closer (#17578).
  97. * Thu Aug 17 2000 Bill Nottingham <notting@redhat.com>
  98. - fix ia64 conflicts
  99. * Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com>
  100. - summaries from specspo.
  101. * Fri Jul 14 2000 Jeff Johnson <jbj@redhat.com>
  102. - remove "strip -R comment" from spec file, rely on brp-* instead.
  103. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  104. - automatic rebuild
  105. * Wed Jun 28 2000 Matt Wilson <msw@redhat.com>
  106. - regenerated the db2.patch to link against -ldb2, not -ldb
  107. * Mon May 8 2000 Jeff Johnson <jbj@redhat.com>
  108. - Rename files (like db1) to prepare for db3 deployment.
  109. - Change version to reflect Berkeley db rather than glibc distribution.
  110. * Thu Apr 27 2000 Jakub Jelinek <jakub@redhat.com>
  111. - Don't provide makedb, it is provided by glibc.
  112. * Wed Apr 20 2000 Jakub Jelinek <jakub@redhat.com>
  113. - Create.