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