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