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