]> git.pld-linux.org Git - packages/db4.2.git/blob - db4.2.spec
- updated to 4.1.25, removed obsolete patches
[packages/db4.2.git] / db4.2.spec
1 Summary:        BSD database library for C
2 Summary(pl):    Biblioteka C do obs³ugi baz Berkeley DB
3 Name:           db
4 Version:        4.1.25
5 Release:        1
6 License:        GPL
7 Group:          Libraries
8 Source0:        http://www.berkeleydb.com/update/snapshot/%{name}-%{version}.tar.gz
9 Patch0:         %{name}-o_direct.patch
10 URL:            http://www.berkeleydb.com/
11 %{?_with_java:BuildRequires:    jdk}
12 BuildRequires:  tcl-devel >= 8.3.2
13 Obsoletes:      db4
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
18 provides embedded database support for both traditional and
19 client/server applications. Berkeley DB is used by many applications,
20 including Python and Perl, so this should be installed on all systems.
21
22 %description -l pl
23 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
24 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
25 klient-serwer. Berkeley db jest u¿ywana wielu aplikacjach, w tym w
26 Pythonie i Perlu.
27
28 %package utils
29 Summary:        Command line tools for managing Berkeley DB databases
30 Summary(pl):    Narzêdzia do obs³ugi baz Berkeley DB z linii poleceñ
31 Group:          Applications/Databases
32 Requires:       %{name} = %{version}
33 Obsoletes:      db4-utils
34
35 %description utils
36 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
37 provides embedded database support for both traditional and
38 client/server applications. Berkeley DB includes B+tree, Extended
39 Linear Hashing, Fixed and Variable-length record access methods,
40 transactions, locking, logging, shared memory caching and database
41 recovery. DB supports C, C++, Java and Perl APIs.
42
43 This package contains command line tools for managing Berkeley DB
44 databases.
45
46 %description utils -l pl
47 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
48 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
49 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
50 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
51 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
52 dla C, C++, Javy i Perla.
53
54 Ten pakiet zawiera narzêdzia do obs³ugi baz Berkeley DB z linii
55 poleceñ.
56
57 %package tcl
58 Summary:        Berkeley database library for TCL
59 Summary(pl):    Biblioteka baz danych Berkeley dla TCL
60 Group:          Development/Languages/Tcl
61 Requires:       tcl
62 Obsoletes:      db4-tcl
63
64 %description tcl
65 Berkeley database library for TCL.
66
67 %description tcl -l pl
68 Biblioteka baz danych Berkeley dla TCL.
69
70 %package cxx
71 Summary:        Berkeley database library for C++
72 Summary(pl):    Biblioteka baz danych Berkeley dla C++
73 Group:          Libraries
74 Obsoletes:      db4-cxx
75
76 %description cxx
77 Berkeley database library for C++.
78
79 %description cxx -l pl
80 Biblioteka baz danych Berkeley dla C++.
81
82 %package java
83 Summary:        Berkeley database library for Java
84 Summary(pl):    Biblioteka baz danych Berkeley dla Javy
85 Group:          Libraries
86
87 %description java
88 Berkeley database library for Java.
89
90 %description java -l pl
91 Biblioteka baz danych Berkeley dla Javy.
92
93 %package devel
94 Summary:        Header files for Berkeley database library
95 Summary(pl):    Pliki nag³ówkowe do biblioteki Berkeley Database
96 Group:          Development/Libraries
97 Requires:       %{name} = %{version}
98 Obsoletes:      db4-devel
99 Obsoletes:      db3-devel
100
101 %description devel
102 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
103 provides embedded database support for both traditional and
104 client/server applications. Berkeley DB includes B+tree, Extended
105 Linear Hashing, Fixed and Variable-length record access methods,
106 transactions, locking, logging, shared memory caching and database
107 recovery. DB supports C, C++, Java and Perl APIs.
108
109 This package contains the header files, libraries, and documentation
110 for building programs which use Berkeley DB.
111
112 %description devel -l pl
113 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
114 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
115 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
116 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
117 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
118 dla C, C++, Javy i Perla.
119
120 Ten pakiet zawiera pliki nag³ówkowe i dokumentacjê do budowania
121 programów u¿ywaj±cych Berkeley DB.
122
123 %package static
124 Summary:        Static libraries for Berkeley database library
125 Summary(pl):    Statyczne biblioteki Berkeley Database
126 Group:          Development/Libraries
127 Requires:       %{name}-devel = %{version}
128 Obsoletes:      db4-static
129 Obsoletes:      db3-static
130
131 %description static
132 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
133 provides embedded database support for both traditional and
134 client/server applications. Berkeley DB includes B+tree, Extended
135 Linear Hashing, Fixed and Variable-length record access methods,
136 transactions, locking, logging, shared memory caching and database
137 recovery. DB supports C, C++, Java and Perl APIs.
138
139 This package contains the static libraries for building programs which
140 use Berkeley DB.
141
142 %description static -l pl
143 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
144 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
145 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
146 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu,
147 transakcje, kroniki, pamiêæ dzielon± i odtwarzanie baz. Ma wsparcie
148 dla C, C++, Javy i Perla.
149
150 Ten pakiet zawiera statyczne biblioteki do budowania programów
151 u¿ywaj±cych Berkeley DB.
152
153 %prep
154 %setup -q
155 %patch0 -p1
156
157 %build
158 cd dist
159 sh s_config
160 cd ..
161
162 cp -a build_unix build_unix.static
163
164 cd build_unix.static
165
166 CC="%{__cc}"
167 CXX="%{__cxx}"
168 CFLAGS="%{rpmcflags} -fno-rtti -fno-implicit-templates"
169 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-implicit-templates"
170 export CC CXX CFLAGS CXXFLAGS
171
172 ../dist/configure \
173         --prefix=%{_prefix} \
174         --enable-compat185 \
175         --disable-shared \
176         --enable-static \
177         --enable-rpc \
178         --enable-cxx
179
180 # (temporarily?) disabled because of compilation errors:
181 #       --enable-dump185 \
182
183 %{__make} library_build
184
185 cd ../build_unix
186
187 ../dist/configure \
188         --prefix=%{_prefix} \
189         --enable-compat185 \
190         --enable-shared \
191         --disable-static \
192         --enable-rpc \
193         --enable-cxx \
194         --enable-tcl \
195         --with-tcl=/usr/lib \
196         %{?_with_java:--enable-java}
197
198 %{__make} library_build TCFLAGS='-I$(builddir) -I%{_includedir}'
199
200 %install
201 rm -rf $RPM_BUILD_ROOT
202 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},/lib}
203
204 cd build_unix.static
205
206 %{__make} library_install \
207         prefix=$RPM_BUILD_ROOT%{_prefix}
208
209 cd ../build_unix
210
211 %{__make} library_install \
212         prefix=$RPM_BUILD_ROOT%{_prefix} \
213         includedir=$RPM_BUILD_ROOT%{_includedir} \
214         LIB_INSTALL_FILE_LIST=""
215
216 (cd $RPM_BUILD_ROOT%{_libdir}
217 ln -sf libdb-4.1.so libdb4.so
218 ln -sf libdb-4.1.so libndbm.so
219 ln -sf libdb-4.1.la libdb.la
220 ln -sf libdb-4.1.la libdb4.la
221 ln -sf libdb-4.1.la libndbm.la
222 ln -sf libdb_tcl-4.1.la libdb_tcl.la
223 ln -sf libdb_cxx-4.1.la libdb_cxx.la
224 mv -f libdb.a libdb-4.1.a
225 ln -sf libdb-4.1.a libdb.a
226 ln -sf libdb-4.1.a libdb4.a
227 ln -sf libdb-4.1.a libndbm.a
228 mv -f libdb_cxx.a libdb_cxx-4.1.a
229 ln -sf libdb_cxx-4.1.a libdb_cxx.a
230
231 mv -f libdb-4.1.la libdb-4.1.la.tmp
232 mv -f libdb_cxx-4.1.la libdb_cxx-4.1.la.tmp
233 sed -e "s/old_library=''/old_library='libdb-4.1.a'/" libdb-4.1.la.tmp > libdb-4.1.la
234 sed -e "s/old_library=''/old_library='libdb_cxx-4.1.a'/" libdb_cxx-4.1.la.tmp > libdb_cxx-4.1.la
235 rm -f libdb*.la.tmp
236 )
237
238 cd ..
239 #rm -rf examples_java
240 #cp -a java/src/com/sleepycat/examples examples_java
241
242 %clean
243 rm -rf $RPM_BUILD_ROOT
244
245 %post   -p /sbin/ldconfig
246 %postun -p /sbin/ldconfig
247
248 %post   tcl -p /sbin/ldconfig
249 %postun tcl -p /sbin/ldconfig
250
251 %post   cxx -p /sbin/ldconfig
252 %postun cxx -p /sbin/ldconfig
253
254 %files
255 %defattr(644,root,root,755)
256 %doc LICENSE README
257 #%attr(755,root,root) /lib/libdb-*.so
258 %attr(755,root,root) %{_libdir}/libdb-*.so
259
260 %files utils
261 %defattr(644,root,root,755)
262 %doc docs/utility/*
263 %attr(755,root,root) %{_bindir}/berkeley_db_svc
264 %attr(755,root,root) %{_bindir}/db*_archive
265 %attr(755,root,root) %{_bindir}/db*_checkpoint
266 %attr(755,root,root) %{_bindir}/db*_deadlock
267 %attr(755,root,root) %{_bindir}/db*_dump
268 #%attr(755,root,root) %{_bindir}/db*_dump185
269 %attr(755,root,root) %{_bindir}/db*_load
270 %attr(755,root,root) %{_bindir}/db*_printlog
271 %attr(755,root,root) %{_bindir}/db*_recover
272 %attr(755,root,root) %{_bindir}/db*_stat
273 %attr(755,root,root) %{_bindir}/db*_upgrade
274 %attr(755,root,root) %{_bindir}/db*_verify
275
276 %files cxx
277 %defattr(644,root,root,755)
278 %attr(755,root,root) %{_libdir}/libdb_cxx-*.so
279
280 %if %{?_with_java:1}%{!?_with_java:0}
281 %files java
282 %defattr(644,root,root,755)
283 %attr(755,root,root) %{_libdir}/libdb_java*.so
284 %attr(644,root,root) %{_libdir}/db.jar
285 %endif
286
287 %files tcl
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/libdb_tcl-*.so
290
291 %files devel
292 %defattr(644,root,root,755)
293 %doc docs/{api*,ref,index.html,sleepycat,images} examples_c*
294 %{_libdir}/libdb*.la
295 %{_libdir}/libndbm.la
296 %attr(755,root,root) %{_libdir}/libdb.so
297 %attr(755,root,root) %{_libdir}/libdb4.so
298 %attr(755,root,root) %{_libdir}/libndbm.so
299 %attr(755,root,root) %{_libdir}/libdb_tcl.so
300 %attr(755,root,root) %{_libdir}/libdb_cxx.so
301 %{_includedir}/*
302
303 %files static
304 %defattr(644,root,root,755)
305 %{_libdir}/lib*.a
This page took 0.144975 seconds and 3 git commands to generate.