source: projects/specs/trunk/g/gdbm/gdbm-vl.spec @ 8073

Revision 8073, 9.5 KB checked in by Takemikaduchi, 10 years ago (diff)

new upstream release or rebuild

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2%{expand: %%global _includedir %{_includedir}/gdbm}
3
4Summary: A GNU set of database routines which use extensible hashing.
5Summary(ja): 拡張可能なハッシングを利用した GNU データベースルーチン
6Name: gdbm
7Version: 1.8.0
8Release: 24%{?_dist_release}
9Source: ftp://ftp.gnu.org/gnu/gdbm-%{version}.tar.gz
10Patch0: gdbm-1.8.0-jbj.patch
11Patch1: gdbm-1.8.0-fhs.patch
12Patch2: gdbm-1.8.0-cflags.patch
13Patch3: gdbm-1.8.0-64offset.patch
14Patch4: gdbm-1.8.0-config.sub.patch
15License: GPL
16Group: System Environment/Libraries
17BuildRoot: %{_tmppath}/%{name}-%{version}-root
18BuildRequires: libtool
19
20Vendor: Project Vine
21Distribution: Vine Linux
22
23%description
24Gdbm is a GNU database indexing library, including routines which use
25extensible hashing.  Gdbm works in a similar way to standard UNIX dbm
26routines.  Gdbm is useful for developers who write C applications and
27need access to a simple and efficient database or who are building C
28applications which will use such a database.
29
30If you're a C developer and your programs need access to simple
31database routines, you should install gdbm.  You'll also need to
32install gdbm-devel.
33
34%description -l ja
35gdbm は,拡張可能なハッシングを利用したルーチンが含まれた
36GNU データベースインデックスライブラリです.gdbm は標準的な
37UNIX の dbm ルーチンと同様に機能します.C アプリケーションを
38開発する際に簡単で効率的なデータベースへのアクセスが必要になった時,
39この gdbm は非常に便利です.
40
41あなたが C プログラマで,プログラムに簡単なデータベースルーチンへの
42アクセスが必要になった場合,gdbm を是非インストールして下さい.
43その際 gdbm-devel パッケージも同時にインストールする必要があります.
44
45%package -n compat32-%{name}
46Summary: A GNU set of database routines which use extensible hashing.
47Summary(ja): 拡張可能なハッシングを利用した GNU データベースルーチン
48Group: System Environment/Libraries
49Requires: gdbm = %{version}
50
51%description -n compat32-%{name}
52Gdbm is a GNU database indexing library, including routines which use
53extensible hashing.  Gdbm works in a similar way to standard UNIX dbm
54routines.  Gdbm is useful for developers who write C applications and
55need access to a simple and efficient database or who are building C
56applications which will use such a database.
57
58If you're a C developer and your programs need access to simple
59database routines, you should install gdbm.  You'll also need to
60install gdbm-devel.
61
62%description -n compat32-%{name} -l ja
63gdbm は,拡張可能なハッシングを利用したルーチンが含まれた
64GNU データベースインデックスライブラリです.gdbm は標準的な
65UNIX の dbm ルーチンと同様に機能します.C アプリケーションを
66開発する際に簡単で効率的なデータベースへのアクセスが必要になった時,
67この gdbm は非常に便利です.
68
69あなたが C プログラマで,プログラムに簡単なデータベースルーチンへの
70アクセスが必要になった場合,gdbm を是非インストールして下さい.
71その際 gdbm-devel パッケージも同時にインストールする必要があります.
72
73%package devel
74Summary: Development libraries and header files for the gdbm library.
75Summary(ja): gdbm ライブラリ用の開発ライブラリとヘッダファイル
76Group: Development/Libraries
77Requires: gdbm = %{version}
78Requires(pre): /sbin/install-info
79
80%description devel
81Gdbm-devel contains the development libraries and header files for
82gdbm, the GNU database system.  These libraries and header files are
83necessary if you plan to do development using the gdbm database.
84
85Install gdbm-devel if you are developing C programs which will use the
86gdbm database library.  You'll also need to install the gdbm package.
87
88%description devel -l ja
89gdbm-devel パッケージには,GNU データベースシステムである gdbm 用の
90開発ライブラリとヘッダファイルが納められています.これらのライブラリと
91ヘッダファイルは,gdbm データベースを使ったプログラムを開発する際に
92必要となるものです.
93
94gdbm データベースライブラリを使う C プログラムを開発する場合は
95この gdbm-devel パッケージをインストールして下さい.同時に
96gdbm パッケージもインストールする必要があります.
97
98%package -n compat32-%{name}-devel
99Summary: Development libraries and header files for the gdbm library.
100Summary(ja): gdbm ライブラリ用の開発ライブラリとヘッダファイル
101Group: Development/Libraries
102Requires: gdbm = %{version}
103Requires: gdbm-devel = %{version}
104
105%description -n compat32-%{name}-devel
106Gdbm-devel contains the development libraries and header files for
107gdbm, the GNU database system.  These libraries and header files are
108necessary if you plan to do development using the gdbm database.
109
110Install gdbm-devel if you are developing C programs which will use the
111gdbm database library.  You'll also need to install the gdbm package.
112
113%description -n compat32-%{name}-devel -l ja
114gdbm-devel パッケージには,GNU データベースシステムである gdbm 用の
115開発ライブラリとヘッダファイルが納められています.これらのライブラリと
116ヘッダファイルは,gdbm データベースを使ったプログラムを開発する際に
117必要となるものです.
118
119gdbm データベースライブラリを使う C プログラムを開発する場合は
120この gdbm-devel パッケージをインストールして下さい.同時に
121gdbm パッケージもインストールする必要があります.
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
132libtoolize --force --copy
133aclocal
134autoheader
135autoconf
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.
139make libdir=%{_libdir}
140
141%install
142rm -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
165if [ $1 = 0 ]; then
166   /sbin/install-info --delete %{_infodir}/gdbm.info.gz %{_infodir}/dir --entry="* gdbm: (gdbm).                   The GNU Database."
167fi
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
197rm -rf ${RPM_BUILD_ROOT}
198
199%changelog
200* Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-24
201- rebuild with VineSeed environment
202
203* Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 1.8.0-23
204- rebuilt with rpm-4.8.1-3
205
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
222* Mon Apr 14 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.0-20vl1
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
Note: See TracBrowser for help on using the repository browser.