gdbm-vl.spec 10 KB

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