db1-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. Summary: The BSD database library for C (version 1).
  2. Summary(ja): C 用 BSD データベースライブラリ (バージョン1)
  3. Name: db1
  4. Version: 1.85
  5. Release: 5vl2
  6. Source: http://www.sleepycat.com/update/%{version}/db.%{version}.tar.gz
  7. Patch: db.%{version}.patch
  8. URL: http://www.sleepycat.com
  9. Copyright: BSD
  10. Group: System Environment/Libraries
  11. PreReq: /sbin/ldconfig
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Prefix: %{_prefix}
  14. %ifnarch ia64
  15. Conflicts: glibc < 2.1.90
  16. %endif
  17. %package devel
  18. Summary: Development libs/header files for Berkeley DB (version 1) library.
  19. Summary(ja): Berkeley DB (バージョン1) 用開発ライブラリ/ヘッダファイル
  20. Group: Development/Libraries
  21. Prefix: %{_prefix}
  22. Requires: %{name} = %{version}
  23. %ifnarch ia64
  24. Conflicts: glibc-devel < 2.1.90
  25. %endif
  26. %description
  27. The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
  28. embedded database support for both traditional and client/server applications.
  29. It should be installed if compatibility is needed with databases created
  30. with db1.
  31. This library used to be part of the glibc package.
  32. %description devel
  33. The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
  34. embedded database support for both traditional and client/server applications.
  35. Berkeley DB includes B tree, Hashing, Fixed and Variable-length
  36. record access methods.
  37. This package contains the header files, libraries, and documentation for
  38. building programs which use Berkeley DB.
  39. %prep
  40. %setup -q -n db.%{version}
  41. %patch -p1
  42. %build
  43. gzip -9 docs/*.ps
  44. cd PORT/linux
  45. OORG="$RPM_OPT_FLAGS" make
  46. %install
  47. rm -rf ${RPM_BUILD_ROOT}
  48. mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/{include/db1,lib,bin}
  49. sed -n '/^\/\*-/,/^ \*\//s/^.\*.\?//p' include/db.h | grep -v '^@.*db\.h' > LICENSE
  50. perl -pi -e 's/<db.h>/<db1\/db.h>/' PORT/include/ndbm.h
  51. cd PORT/linux
  52. sover=`echo libdb.so.* | sed 's/libdb.so.//'`
  53. install -m644 libdb.a $RPM_BUILD_ROOT/%{_prefix}/lib/libdb1.a
  54. install -m755 libdb.so.$sover $RPM_BUILD_ROOT/%{_prefix}/lib/libdb1.so.$sover
  55. ln -sf libdb1.so.$sover $RPM_BUILD_ROOT/%{_prefix}/lib/libdb1.so
  56. ln -sf libdb1.so.$sover $RPM_BUILD_ROOT/%{_prefix}/lib/libdb.so.$sover
  57. install -m644 ../include/ndbm.h $RPM_BUILD_ROOT/%{_prefix}/include/db1/
  58. install -m644 ../../include/db.h $RPM_BUILD_ROOT/%{_prefix}/include/db1/
  59. install -m644 ../../include/mpool.h $RPM_BUILD_ROOT/%{_prefix}/include/db1/
  60. install -s -m755 db_dump185 $RPM_BUILD_ROOT/%{_prefix}/bin/db1_dump185
  61. %clean
  62. rm -rf ${RPM_BUILD_ROOT}
  63. %post -p /sbin/ldconfig
  64. %postun -p /sbin/ldconfig
  65. %files
  66. %defattr(-,root,root)
  67. %doc README LICENSE changelog
  68. %{_prefix}/lib/libdb1.so.*
  69. %{_prefix}/lib/libdb.so.*
  70. %{_prefix}/bin/db1_dump185
  71. %files devel
  72. %defattr(-,root,root)
  73. %doc docs/*.ps.gz
  74. %{_prefix}/include/db1
  75. %{_prefix}/lib/libdb1.a
  76. %{_prefix}/lib/libdb1.so
  77. %changelog
  78. * Tue Dec 11 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.85-5vl2
  79. - increased release number for VineSeed main tree :)
  80. * Thu May 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  81. - based on 1.85-5 from Rawhide
  82. - rebuilt for VineSeed
  83. * Fri Oct 6 2000 Jeff Johnson <jbj@redhat.com>
  84. - use <db1/db.h> if including <db1/ndbm.h> (#18292).
  85. * Thu Aug 17 2000 Bill Nottingham <notting@redhat.com>
  86. - fix ia64 conflicts
  87. * Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com>
  88. - summaries from specspo.
  89. * Sun Aug 6 2000 Jeff Johnson <jbj@redhat.com>
  90. - remove "strip -R comment" from spec file, rely on brp-* instead.
  91. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  92. - automatic rebuild
  93. * Sun May 28 2000 Jeff Johnson <jbj@redhat.com>
  94. - rename db_dump185 to db1_dump185 to avoid file conflict with db3.
  95. * Thu Apr 20 2000 Jakub Jelinek <jakub@redhat.com>
  96. - Include db_dump185 program from db2 here (as it is linked
  97. against this shared library).
  98. * Wed Apr 19 2000 Jakub Jelinek <jakub@redhat.com>
  99. - Create.