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