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