gdbm-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A GNU set of database routines which use extensible hashing.
  3. Summary(ja): 拡張可能なハッシングを利用した GNU データベースルーチン
  4. Name: gdbm
  5. Version: 1.18.1
  6. Release: 2%{?_dist_release}
  7. Source: ftp://ftp.gnu.org/gnu/gdbm-%{version}.tar.gz
  8. License: GPL
  9. Group: System Environment/Libraries
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: libtool gettext readline-devel
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. %description
  15. Gdbm is a GNU database indexing library, including routines which use
  16. extensible hashing. Gdbm works in a similar way to standard UNIX dbm
  17. routines. Gdbm is useful for developers who write C applications and
  18. need access to a simple and efficient database or who are building C
  19. applications which will use such a database.
  20. If you're a C developer and your programs need access to simple
  21. database routines, you should install gdbm. You'll also need to
  22. install gdbm-devel.
  23. %description -l ja
  24. gdbm は,拡張可能なハッシングを利用したルーチンが含まれた
  25. GNU データベースインデックスライブラリです.gdbm は標準的な
  26. UNIX の dbm ルーチンと同様に機能します.C アプリケーションを
  27. 開発する際に簡単で効率的なデータベースへのアクセスが必要になった時,
  28. この gdbm は非常に便利です.
  29. あなたが C プログラマで,プログラムに簡単なデータベースルーチンへの
  30. アクセスが必要になった場合,gdbm を是非インストールして下さい.
  31. その際 gdbm-devel パッケージも同時にインストールする必要があります.
  32. %package -n compat32-%{name}
  33. Summary: A GNU set of database routines which use extensible hashing.
  34. Summary(ja): 拡張可能なハッシングを利用した GNU データベースルーチン
  35. Group: System Environment/Libraries
  36. Requires: gdbm = %{version}
  37. %description -n compat32-%{name}
  38. Gdbm is a GNU database indexing library, including routines which use
  39. extensible hashing. Gdbm works in a similar way to standard UNIX dbm
  40. routines. Gdbm is useful for developers who write C applications and
  41. need access to a simple and efficient database or who are building C
  42. applications which will use such a database.
  43. If you're a C developer and your programs need access to simple
  44. database routines, you should install gdbm. You'll also need to
  45. install gdbm-devel.
  46. %description -n compat32-%{name} -l ja
  47. gdbm は,拡張可能なハッシングを利用したルーチンが含まれた
  48. GNU データベースインデックスライブラリです.gdbm は標準的な
  49. UNIX の dbm ルーチンと同様に機能します.C アプリケーションを
  50. 開発する際に簡単で効率的なデータベースへのアクセスが必要になった時,
  51. この gdbm は非常に便利です.
  52. あなたが C プログラマで,プログラムに簡単なデータベースルーチンへの
  53. アクセスが必要になった場合,gdbm を是非インストールして下さい.
  54. その際 gdbm-devel パッケージも同時にインストールする必要があります.
  55. %package devel
  56. Summary: Development libraries and header files for the gdbm library.
  57. Summary(ja): gdbm ライブラリ用の開発ライブラリとヘッダファイル
  58. Group: Development/Libraries
  59. Requires: gdbm = %{version}
  60. Requires(pre): /sbin/install-info
  61. %description devel
  62. Gdbm-devel contains the development libraries and header files for
  63. gdbm, the GNU database system. These libraries and header files are
  64. necessary if you plan to do development using the gdbm database.
  65. Install gdbm-devel if you are developing C programs which will use the
  66. gdbm database library. You'll also need to install the gdbm package.
  67. %description devel -l ja
  68. gdbm-devel パッケージには,GNU データベースシステムである gdbm 用の
  69. 開発ライブラリとヘッダファイルが納められています.これらのライブラリと
  70. ヘッダファイルは,gdbm データベースを使ったプログラムを開発する際に
  71. 必要となるものです.
  72. gdbm データベースライブラリを使う C プログラムを開発する場合は
  73. この gdbm-devel パッケージをインストールして下さい.同時に
  74. gdbm パッケージもインストールする必要があります.
  75. %package -n compat32-%{name}-devel
  76. Summary: Development libraries and header files for the gdbm library.
  77. Summary(ja): gdbm ライブラリ用の開発ライブラリとヘッダファイル
  78. Group: Development/Libraries
  79. Requires: gdbm = %{version}
  80. Requires: gdbm-devel = %{version}
  81. %description -n compat32-%{name}-devel
  82. Gdbm-devel contains the development libraries and header files for
  83. gdbm, the GNU database system. These libraries and header files are
  84. necessary if you plan to do development using the gdbm database.
  85. Install gdbm-devel if you are developing C programs which will use the
  86. gdbm database library. You'll also need to install the gdbm package.
  87. %description -n compat32-%{name}-devel -l ja
  88. gdbm-devel パッケージには,GNU データベースシステムである gdbm 用の
  89. 開発ライブラリとヘッダファイルが納められています.これらのライブラリと
  90. ヘッダファイルは,gdbm データベースを使ったプログラムを開発する際に
  91. 必要となるものです.
  92. gdbm データベースライブラリを使う C プログラムを開発する場合は
  93. この gdbm-devel パッケージをインストールして下さい.同時に
  94. gdbm パッケージもインストールする必要があります.
  95. %prep
  96. %setup -q
  97. %build
  98. %configure \
  99. --disable-static \
  100. --disable-rpath \
  101. --enable-libgdbm-compat
  102. # get rid of rpath (as per https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath)
  103. # currently --disable-rpath doesn't work for gdbm_dump|load, gdbmtool and libgdbm_compat.so.4
  104. # https://puszcza.gnu.org.ua/bugs/index.php?359
  105. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  106. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  107. make %{?_smp_mflags}
  108. %install
  109. rm -rf %{buildroot}
  110. make DESTDIR=%{buildroot} install
  111. %find_lang %{name}
  112. # create symlinks for compatibility
  113. mkdir -p %{buildroot}/%{_includedir}/gdbm
  114. ln -sf ../gdbm.h %{buildroot}/%{_includedir}/gdbm/gdbm.h
  115. ln -sf ../ndbm.h %{buildroot}/%{_includedir}/gdbm/ndbm.h
  116. ln -sf ../dbm.h %{buildroot}/%{_includedir}/gdbm/dbm.h
  117. # Remove libtool archives
  118. find %{buildroot} -type f -name "*.la" -delete
  119. rm -f %{buildroot}/%{_infodir}/dir
  120. %check
  121. export LD_LIBRARY_PATH=`pwd`/src/.libs/:`pwd`/compat/.libs/
  122. make check
  123. %post -p /sbin/ldconfig
  124. %postun -p /sbin/ldconfig
  125. %post -n compat32-%{name} -p /sbin/ldconfig
  126. %postun -n compat32-%{name} -p /sbin/ldconfig
  127. %post devel
  128. /sbin/install-info %{_infodir}/gdbm.info.gz %{_infodir}/dir --entry="* gdbm: (gdbm). The GNU Database."
  129. %preun devel
  130. if [ $1 = 0 ]; then
  131. /sbin/install-info --delete %{_infodir}/gdbm.info.gz %{_infodir}/dir --entry="* gdbm: (gdbm). The GNU Database."
  132. fi
  133. %files -f %{name}.lang
  134. %license COPYING
  135. %doc NEWS README THANKS AUTHORS NOTE-WARNING
  136. %{_bindir}/gdbm*
  137. %{_mandir}/man1/gdbm*
  138. %{_libdir}/libgdbm.so.*
  139. %{_libdir}/libgdbm_compat.so.4*
  140. %files devel
  141. %defattr(-,root,root)
  142. %{_libdir}/libgdbm.so
  143. %{_libdir}/libgdbm_compat.so
  144. %{_includedir}/*
  145. %{_infodir}/*.info*
  146. %{_mandir}/man3/*
  147. %if %{build_compat32}
  148. %files -n compat32-%{name}
  149. %defattr(-,root,root)
  150. %{_libdir}/libgdbm.so.*
  151. %{_libdir}/libgdbm_compat.so.4*
  152. %files -n compat32-%{name}-devel
  153. %defattr(-,root,root)
  154. %{_libdir}/libgdbm.so
  155. %{_libdir}/libgdbm_compat.so
  156. %endif
  157. %clean
  158. rm -rf ${RPM_BUILD_ROOT}
  159. %changelog
  160. * Sat Aug 31 2019 Toshiaki Ara <ara_t@384.jp> 1.18.1-2
  161. - rebuild with readline-8.0 and ncurses-6.1
  162. * Sun May 12 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.18.1-1
  163. - new upstream release.
  164. - dropped all patches.
  165. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-24
  166. - rebuild with VineSeed environment
  167. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 1.8.0-23
  168. - rebuilt with rpm-4.8.1-3
  169. * Thu Feb 11 2010 Shu KONNO <owa@bg.wakwak.com> 1.8.0-22
  170. - added patch4: gdbm-1.8.0-config.sub.patch (for x86_64)
  171. * Fri Feb 5 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.8.0-21
  172. - rebuilt with new toolchain
  173. - fix Patch1
  174. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.8.0-20vl5
  175. - applied new versioning policy, spec in utf-8
  176. * Thu Feb 9 2006 NAKAMURA Kenta <kenta@c.csce.kyushu-u.ac.jp> 1.8.0-20vl3
  177. - added compat32-* packages for x86_64 architecture support
  178. * Wed Jan 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.0-20vl2
  179. - added BuildRequires: libtool
  180. * Mon Apr 14 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.0-20vl1
  181. - rebuild with new toolchain
  182. - based on Rawhide 1.8.0-20
  183. * Sat Jul 14 2001 <sagami@vinelinux.org>
  184. - 1.8.0-10vl1
  185. - follow up with 1.8.0-10 which has a fix to build against new libtool
  186. * Sun Feb 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  187. - 1.8.0-5vl1
  188. - based on 1.8.0-5 from Rawhide
  189. - added Japanese summary and description
  190. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  191. - automatic rebuild
  192. * Mon Jun 5 2000 Jeff Johnson <jbj@redhat.com>
  193. - FHS packaging.
  194. * Mon Feb 7 2000 Bill Nottingham <notting@redhat.com>
  195. - handle compressed manpages
  196. * Tue Aug 10 1999 Jeff Johnson <jbj@redhat.com>
  197. - make sure created database header is initialized (#4457).
  198. * Tue Jun 1 1999 Jeff Johnson <jbj@redhat.com>
  199. - update to 1.8.0.
  200. - repackage to include /usr/include/gdbm/*dbm.h compatibility includes.
  201. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  202. - auto rebuild in the new build environment (release 19)
  203. * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
  204. - build against glibc 2.1
  205. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  206. - translations modified for de, fr, tr
  207. * Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
  208. - gdbm-devel moved to Development/Libraries
  209. * Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
  210. - buildroot and built for Manhattan
  211. * Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
  212. - spec file cleanups
  213. * Thu Jun 12 1997 Erik Troan <ewt@redhat.com>
  214. - built against glibc