1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | %define __soversion_major 5 |
---|
4 | %define __soversion %{__soversion_major}.3 |
---|
5 | %define __tclversion 8.6 |
---|
6 | |
---|
7 | %bcond_with java |
---|
8 | |
---|
9 | Summary: The Berkeley DB database library for C |
---|
10 | Summary(ja): C 言語用 Berkeley DB データベースライブラリ |
---|
11 | Name: libdb |
---|
12 | Version: 5.3.28 |
---|
13 | Release: 12%{?_dist_release} |
---|
14 | Source0: http://download.oracle.com/berkeley-db/db-%{version}.tar.gz |
---|
15 | Source1: http://download.oracle.com/berkeley-db/db.1.85.tar.gz |
---|
16 | # For mt19937db.c |
---|
17 | Source2: http://www.gnu.org/licenses/lgpl-2.1.txt |
---|
18 | Patch0: libdb-multiarch.patch |
---|
19 | # db-1.85 upstream patches |
---|
20 | Patch10: http://www.oracle.com/technology/products/berkeley-db/db/update/1.85/patch.1.1 |
---|
21 | Patch11: http://www.oracle.com/technology/products/berkeley-db/db/update/1.85/patch.1.2 |
---|
22 | Patch12: http://www.oracle.com/technology/products/berkeley-db/db/update/1.85/patch.1.3 |
---|
23 | Patch13: http://www.oracle.com/technology/products/berkeley-db/db/update/1.85/patch.1.4 |
---|
24 | # other patches |
---|
25 | Patch20: db-1.85-errno.patch |
---|
26 | Patch22: db-4.6.21-1.85-compat.patch |
---|
27 | Patch24: db-4.5.20-jni-include-dir.patch |
---|
28 | # License clarification patch |
---|
29 | # http://devel.trisquel.info/gitweb/?p=package-helpers.git;a=blob;f=helpers/DATA/db4.8/007-mt19937db.c_license.patch;h=1036db4d337ce4c60984380b89afcaa63b2ef88f;hb=df48d40d3544088338759e8bea2e7f832a564d48 |
---|
30 | Patch25: 007-mt19937db.c_license.patch |
---|
31 | #Adds missing constant to Optcodes.java and changes ClassReader.java to use it. This makes package to build with Java 8. |
---|
32 | Patch26: java8-fix.patch |
---|
33 | # memp_stat fix provided by upstream (rhbz#1211871) |
---|
34 | Patch27: db-5.3.21-memp_stat-upstream-fix.patch |
---|
35 | # fix for mutexes not being released provided by upstream (rhbz#1277887) |
---|
36 | Patch28: db-5.3.21-mutex_leak.patch |
---|
37 | # fix for overflowing hash variable inside bundled lemon |
---|
38 | Patch29: db-5.3.28-lemon_hash.patch |
---|
39 | # upstream patch adding the ability to recreate libdb's environment on version mismatch |
---|
40 | # or when libpthread.so is modified (rhbz#1394862) |
---|
41 | Patch30: db-5.3.28-condition_variable.patch |
---|
42 | # additional changes to the upstream patch to address rhbz#1460003 |
---|
43 | Patch31: db-5.3.28-condition-variable-ppc.patch |
---|
44 | # downstream patch that adds a check for rpm transaction lock in order to be able to update libdb |
---|
45 | # FIXME: remove when able |
---|
46 | Patch32: db-5.3.28-rpm-lock-check.patch |
---|
47 | # downstream patch to hotfix rhbz#1464033, sent upstream |
---|
48 | Patch33: db-5.3.28-cwd-db_config.patch |
---|
49 | Patch34: libdb-5.3.21-region-size-check.patch |
---|
50 | # Patch sent upstream |
---|
51 | Patch35: checkpoint-opd-deadlock.patch |
---|
52 | Patch36: db-5.3.28-atomic_compare_exchange.patch |
---|
53 | # CDB race (rhbz #1099509) |
---|
54 | Patch37: libdb-cbd-race.patch |
---|
55 | # Limit concurrency to max 1024 CPUs (rhbz#1245410) |
---|
56 | # A fix for the issue should be in an upstream release already |
---|
57 | # https://community.oracle.com/message/13274780#13274780 |
---|
58 | Patch38: libdb-limit-cpu.patch |
---|
59 | # rhbz#1608749 Patch sent upstream |
---|
60 | # Expects libdb-5.3.21-mutex_leak.patch applied |
---|
61 | Patch39: libdb-5.3.21-trickle_cpu.patch |
---|
62 | |
---|
63 | URL: http://www.oracle.com/database/berkeley-db/ |
---|
64 | License: BSD and LGPLv2 and Sleepycat |
---|
65 | Group: System Environment/Libraries |
---|
66 | BuildRequires: perl libtool |
---|
67 | BuildRequires: tcl-devel >= %{__tclversion} |
---|
68 | %if %{with java} |
---|
69 | BuildRequires: java-devel >= 1:1.6.0 |
---|
70 | %endif |
---|
71 | #BuildRequires: chrpath |
---|
72 | #Conflicts: filesystem < 3 |
---|
73 | |
---|
74 | Vendor: Project Vine |
---|
75 | Distribution: Vine Linux |
---|
76 | Packager: tomop |
---|
77 | |
---|
78 | %description |
---|
79 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
80 | provides embedded database support for both traditional and |
---|
81 | client/server applications. The Berkeley DB includes B+tree, Extended |
---|
82 | Linear Hashing, Fixed and Variable-length record access methods, |
---|
83 | transactions, locking, logging, shared memory caching, and database |
---|
84 | recovery. The Berkeley DB supports C, C++, Java, and Perl APIs. It is |
---|
85 | used by many applications, including Python and Perl, so this should |
---|
86 | be installed on all systems. |
---|
87 | |
---|
88 | %package utils |
---|
89 | Summary: Command line tools for managing Berkeley DB databases |
---|
90 | Summary(ja): Berkeley DB データベースを管理するためのコマンドラインツール集 |
---|
91 | Group: Applications/Databases |
---|
92 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
93 | Obsoletes: db4-utils |
---|
94 | Provides: db4-utils |
---|
95 | |
---|
96 | %description utils |
---|
97 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
98 | provides embedded database support for both traditional and |
---|
99 | client/server applications. Berkeley DB includes B+tree, Extended |
---|
100 | Linear Hashing, Fixed and Variable-length record access methods, |
---|
101 | transactions, locking, logging, shared memory caching, and database |
---|
102 | recovery. DB supports C, C++, Java and Perl APIs. |
---|
103 | |
---|
104 | %package devel |
---|
105 | Summary: C development files for the Berkeley DB library |
---|
106 | Summary(ja): Berkeley DB ライブラリの C 言語用開発ファイル |
---|
107 | Group: Development/Libraries |
---|
108 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
109 | Obsoletes: db4-devel |
---|
110 | Provides: db4-devel |
---|
111 | |
---|
112 | %description devel |
---|
113 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
114 | provides embedded database support for both traditional and |
---|
115 | client/server applications. This package contains the header files |
---|
116 | and libraries for building programs which use the Berkeley DB. |
---|
117 | |
---|
118 | %package devel-doc |
---|
119 | Summary: C development documentation files for the Berkeley DB library |
---|
120 | Summary(ja): Berkeley DB ライブラリの C 言語用開発ドキュメント |
---|
121 | Group: Documentation |
---|
122 | Requires: %{name} = %{version}-%{release} |
---|
123 | Requires: %{name}-devel = %{version}-%{release} |
---|
124 | BuildArch: noarch |
---|
125 | |
---|
126 | %description devel-doc |
---|
127 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
128 | provides embedded database support for both traditional and |
---|
129 | client/server applications. This package contains the documentation |
---|
130 | for building programs which use the Berkeley DB. |
---|
131 | |
---|
132 | %package devel-static |
---|
133 | Summary: Berkeley DB static libraries |
---|
134 | Summary(ja): Berkeley DB 静的ライブラリ |
---|
135 | Group: Development/Libraries |
---|
136 | Requires: %{name}-devel%{?_isa} = %{version}-%{release} |
---|
137 | |
---|
138 | %description devel-static |
---|
139 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
140 | provides embedded database support for both traditional and |
---|
141 | client/server applications. This package contains static libraries |
---|
142 | needed for applications that require static linking of |
---|
143 | Berkeley DB. |
---|
144 | |
---|
145 | %package cxx |
---|
146 | Summary: The Berkeley DB database library for C++ |
---|
147 | Summary(ja): C++ 言語用 Berkeley DB データベースライブラリ |
---|
148 | Group: System Environment/Libraries |
---|
149 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
150 | |
---|
151 | %description cxx |
---|
152 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
153 | provides embedded database support for both traditional and |
---|
154 | client/server applications. The Berkeley DB includes B+tree, Extended |
---|
155 | Linear Hashing, Fixed and Variable-length record access methods, |
---|
156 | transactions, locking, logging, shared memory caching, and database |
---|
157 | recovery. The Berkeley DB supports C, C++, Java, and Perl APIs. It is |
---|
158 | used by many applications, including Python and Perl, so this should |
---|
159 | be installed on all systems. |
---|
160 | |
---|
161 | %package cxx-devel |
---|
162 | Summary: C++ development files for the Berkeley DB library |
---|
163 | Summary(ja): Berkeley DB ライブラリの C++ 言語用開発ファイル |
---|
164 | Group: Development/Libraries |
---|
165 | Requires: %{name}-cxx%{?_isa} = %{version}-%{release} |
---|
166 | Requires: %{name}-devel%{?_isa} = %{version}-%{release} |
---|
167 | |
---|
168 | %description cxx-devel |
---|
169 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
170 | provides embedded database support for both traditional and |
---|
171 | client/server applications. This package contains the header files, |
---|
172 | libraries, and documentation for building programs which use the |
---|
173 | Berkeley DB in C++. |
---|
174 | |
---|
175 | %package tcl |
---|
176 | Summary: The Berkeley DB library for tcl |
---|
177 | Summary(ja): tcl 用 Berkeley DB データベースライブラリ |
---|
178 | Group: System Environment/Libraries |
---|
179 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
180 | |
---|
181 | %description tcl |
---|
182 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
183 | provides embedded database support for both traditional and |
---|
184 | client/server applications. This package contains the libraries |
---|
185 | for building programs which use the Berkeley DB in Tcl. |
---|
186 | |
---|
187 | %package tcl-devel |
---|
188 | Summary: Development files for using the Berkeley DB with tcl |
---|
189 | Summary(ja): tcl で Berkeley DB を利用するための開発ファイル |
---|
190 | Group: Development/Libraries |
---|
191 | Requires: %{name}-tcl%{?_isa} = %{version}-%{release} |
---|
192 | |
---|
193 | %description tcl-devel |
---|
194 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
195 | provides embedded database support for both traditional and |
---|
196 | client/server applications. This package contains the libraries |
---|
197 | for building programs which use the Berkeley DB in Tcl. |
---|
198 | |
---|
199 | %package sql |
---|
200 | Summary: The Berkeley DB library for SQL |
---|
201 | Summary(ja): SQL 用 Berkeley DB データベースライブラリ |
---|
202 | Group: System Environment/Libraries |
---|
203 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
204 | |
---|
205 | %description sql |
---|
206 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
207 | provides embedded database support for both traditional and |
---|
208 | client/server applications. This package contains the libraries |
---|
209 | for building programs which use the Berkeley DB in SQL. |
---|
210 | |
---|
211 | %package sql-devel |
---|
212 | Summary: Development files for using the Berkeley DB with sql |
---|
213 | Summary(ja): SQL で Berkeley DB を利用するための開発ファイル |
---|
214 | Group: Development/Libraries |
---|
215 | Requires: %{name}-sql%{?_isa} = %{version}-%{release} |
---|
216 | |
---|
217 | %description sql-devel |
---|
218 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
219 | provides embedded database support for both traditional and |
---|
220 | client/server applications. This package contains the libraries |
---|
221 | for building programs which use the Berkeley DB in SQL. |
---|
222 | |
---|
223 | %if %{with java} |
---|
224 | %package java |
---|
225 | Summary: The Berkeley DB library for Java |
---|
226 | Summary(ja): Java 用 Berkeley DB データベースライブラリ |
---|
227 | Group: System Environment/Libraries |
---|
228 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
229 | |
---|
230 | %description java |
---|
231 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
232 | provides embedded database support for both traditional and |
---|
233 | client/server applications. This package contains the libraries |
---|
234 | for building programs which use the Berkeley DB in Java. |
---|
235 | |
---|
236 | %package java-devel |
---|
237 | Summary: Development files for using the Berkeley DB with Java |
---|
238 | Summary(ja): Java で Berkeley DB を利用するための開発ファイル |
---|
239 | Group: Development/Libraries |
---|
240 | Requires: %{name}-java%{?_isa} = %{version}-%{release} |
---|
241 | |
---|
242 | %description java-devel |
---|
243 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
244 | provides embedded database support for both traditional and |
---|
245 | client/server applications. This package contains the libraries |
---|
246 | for building programs which use the Berkeley DB in Java. |
---|
247 | %endif |
---|
248 | |
---|
249 | # compat32 |
---|
250 | %package -n compat32-%{name} |
---|
251 | Summary: The Berkeley DB database library for C |
---|
252 | Summary(ja): C 言語用 Berkeley DB データベースライブラリ |
---|
253 | Group: System Environment/Libraries |
---|
254 | Requires: libdb = %{version}-%{release} |
---|
255 | |
---|
256 | %description -n compat32-%{name} |
---|
257 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
258 | provides embedded database support for both traditional and |
---|
259 | client/server applications. The Berkeley DB includes B+tree, Extended |
---|
260 | Linear Hashing, Fixed and Variable-length record access methods, |
---|
261 | transactions, locking, logging, shared memory caching, and database |
---|
262 | recovery. The Berkeley DB supports C, C++, Java, and Perl APIs. It is |
---|
263 | used by many applications, including Python and Perl, so this should |
---|
264 | be installed on all systems. |
---|
265 | |
---|
266 | %package -n compat32-%{name}-cxx |
---|
267 | Summary: The Berkeley DB database library for C++ |
---|
268 | Summary(ja): C++ 言語用 Berkeley DB データベースライブラリ |
---|
269 | Group: System Environment/Libraries |
---|
270 | Requires: %{name}-cxx = %{version}-%{release} |
---|
271 | Requires: compat32-%{name} = %{version}-%{release} |
---|
272 | |
---|
273 | %description -n compat32-%{name}-cxx |
---|
274 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
275 | provides embedded database support for both traditional and |
---|
276 | client/server applications. The Berkeley DB includes B+tree, Extended |
---|
277 | Linear Hashing, Fixed and Variable-length record access methods, |
---|
278 | transactions, locking, logging, shared memory caching, and database |
---|
279 | recovery. The Berkeley DB supports C, C++, Java, and Perl APIs. It is |
---|
280 | used by many applications, including Python and Perl, so this should |
---|
281 | be installed on all systems. |
---|
282 | |
---|
283 | %package -n compat32-%{name}-devel |
---|
284 | Summary: C development files for the Berkeley DB library |
---|
285 | Summary(ja): Berkeley DB ライブラリの C 言語用開発ファイル |
---|
286 | Group: Development/Libraries |
---|
287 | Requires: compat32-%{name} = %{version}-%{release} |
---|
288 | Requires: %{name}-devel = %{version}-%{release} |
---|
289 | Obsoletes: compat32-db4-devel |
---|
290 | Provides: compat32-db4-devel |
---|
291 | |
---|
292 | %description -n compat32-%{name}-devel |
---|
293 | The Berkeley Database (Berkeley DB) is a programmatic toolkit that |
---|
294 | provides embedded database support for both traditional and |
---|
295 | client/server applications. This package contains the header files, |
---|
296 | libraries, and documentation for building programs which use the |
---|
297 | Berkeley DB. |
---|
298 | |
---|
299 | |
---|
300 | %prep |
---|
301 | %setup -q -n db-%{version} -a 1 |
---|
302 | cp %{SOURCE2} . |
---|
303 | |
---|
304 | %patch0 -p1 -b .multiarch |
---|
305 | pushd db.1.85/PORT/linux |
---|
306 | %patch10 -p0 -b .1.1 |
---|
307 | popd |
---|
308 | pushd db.1.85 |
---|
309 | %patch11 -p0 -b .1.2 |
---|
310 | %patch12 -p0 -b .1.3 |
---|
311 | %patch13 -p0 -b .1.4 |
---|
312 | %patch20 -p1 -b .errno |
---|
313 | popd |
---|
314 | |
---|
315 | %patch22 -p1 -b .185compat |
---|
316 | %patch24 -p1 -b .4.5.20.jni |
---|
317 | %patch25 -p1 -b .licensefix |
---|
318 | %patch26 -p1 -b .java8-fix |
---|
319 | %patch27 -p1 -b .memp_stat-fix |
---|
320 | %patch28 -p1 |
---|
321 | %patch29 -p1 |
---|
322 | %patch30 -p1 |
---|
323 | %patch31 -p1 |
---|
324 | %patch32 -p1 |
---|
325 | %patch33 -p1 |
---|
326 | %patch34 -p1 |
---|
327 | %patch35 -p1 |
---|
328 | %patch36 -p1 |
---|
329 | %patch37 -p1 |
---|
330 | %patch38 -p1 |
---|
331 | %patch39 -p1 |
---|
332 | |
---|
333 | cd dist |
---|
334 | ./s_config |
---|
335 | cd .. |
---|
336 | |
---|
337 | %build |
---|
338 | CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" |
---|
339 | CFLAGS="$CFLAGS -DSHAREDSTATEDIR='\"%{_sharedstatedir}\"' -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_FTS3=3 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -I../../../lang/sql/sqlite/ext/fts3/" |
---|
340 | export CFLAGS |
---|
341 | |
---|
342 | # Build the old db-185 libraries. |
---|
343 | make -C db.1.85/PORT/%{_os} OORG="$CFLAGS" |
---|
344 | |
---|
345 | test -d dist/dist-tls || mkdir dist/dist-tls |
---|
346 | # Static link db_dump185 with old db-185 libraries. |
---|
347 | /bin/sh libtool --tag=CC --mode=compile %{__cc} $RPM_OPT_FLAGS -Idb.1.85/PORT/%{_os}/include -D_REENTRANT -c util/db_dump185.c -o dist/dist-tls/db_dump185.lo |
---|
348 | /bin/sh libtool --tag=LD --mode=link %{__cc} -o dist/dist-tls/db_dump185 dist/dist-tls/db_dump185.lo db.1.85/PORT/%{_os}/libdb.a |
---|
349 | |
---|
350 | # Update config files to understand aarch64 |
---|
351 | #for dir in dist lang/sql/sqlite lang/sql/jdbc lang/sql/odbc; do |
---|
352 | # cp /usr/lib/rpm/config.{guess,sub} "$dir" |
---|
353 | #done |
---|
354 | |
---|
355 | pushd dist/dist-tls |
---|
356 | %define _configure ../configure |
---|
357 | %configure -C \ |
---|
358 | --enable-compat185 \ |
---|
359 | --enable-dump185 \ |
---|
360 | --enable-shared \ |
---|
361 | --enable-static \ |
---|
362 | --enable-tcl \ |
---|
363 | --with-tcl=%{_libdir} \ |
---|
364 | --enable-cxx \ |
---|
365 | --enable-sql \ |
---|
366 | --enable-test \ |
---|
367 | --disable-rpath \ |
---|
368 | --with-tcl=%{_libdir}/tcl%{__tclversion} \ |
---|
369 | %if %{with java} |
---|
370 | --enable-java |
---|
371 | %endif |
---|
372 | |
---|
373 | # Remove libtool predep_objects and postdep_objects wonkiness so that |
---|
374 | # building without -nostdlib doesn't include them twice. Because we |
---|
375 | # already link with g++, weird stuff happens if you don't let the |
---|
376 | # compiler handle this. |
---|
377 | perl -pi -e 's/^predep_objects=".*$/predep_objects=""/' libtool |
---|
378 | perl -pi -e 's/^postdep_objects=".*$/postdep_objects=""/' libtool |
---|
379 | perl -pi -e 's/-shared -nostdlib/-shared/' libtool |
---|
380 | |
---|
381 | make %{?_smp_mflags} |
---|
382 | |
---|
383 | %if %{with java} |
---|
384 | # XXX hack around libtool not creating ./libs/libdb_java-X.Y.lai |
---|
385 | LDBJ=./.libs/libdb_java-%{__soversion}.la |
---|
386 | if test -f ${LDBJ} -a ! -f ${LDBJ}i; then |
---|
387 | sed -e 's,^installed=no,installed=yes,' < ${LDBJ} > ${LDBJ}i |
---|
388 | fi |
---|
389 | %endif |
---|
390 | |
---|
391 | popd |
---|
392 | |
---|
393 | %install |
---|
394 | rm -rf ${RPM_BUILD_ROOT} |
---|
395 | mkdir -p ${RPM_BUILD_ROOT}%{_includedir} |
---|
396 | mkdir -p ${RPM_BUILD_ROOT}%{_libdir} |
---|
397 | |
---|
398 | %makeinstall STRIP=/bin/true -C dist/dist-tls |
---|
399 | |
---|
400 | # XXX Nuke non-versioned archives and symlinks |
---|
401 | rm -f ${RPM_BUILD_ROOT}%{_libdir}/{libdb.a,libdb_cxx.a,libdb_tcl.a,libdb_sql.a} |
---|
402 | |
---|
403 | chmod +x ${RPM_BUILD_ROOT}%{_libdir}/*.so* |
---|
404 | |
---|
405 | # Move the header files to a subdirectory, in case we're deploying on a |
---|
406 | # system with multiple versions of DB installed. |
---|
407 | mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/%{name} |
---|
408 | mv ${RPM_BUILD_ROOT}%{_includedir}/*.h ${RPM_BUILD_ROOT}%{_includedir}/%{name}/ |
---|
409 | |
---|
410 | # Create symlinks to includes so that "use <db.h> and link with -ldb" works. |
---|
411 | for i in db.h db_cxx.h db_185.h; do |
---|
412 | ln -s %{name}/$i ${RPM_BUILD_ROOT}%{_includedir} |
---|
413 | done |
---|
414 | |
---|
415 | %if %{with java} |
---|
416 | # Move java jar file to the correct place |
---|
417 | mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/java |
---|
418 | mv ${RPM_BUILD_ROOT}%{_libdir}/*.jar ${RPM_BUILD_ROOT}%{_datadir}/java |
---|
419 | %endif |
---|
420 | |
---|
421 | # Eliminate installed doco |
---|
422 | rm -rf ${RPM_BUILD_ROOT}%{_prefix}/docs |
---|
423 | |
---|
424 | # XXX Avoid Permission denied. strip when building as non-root. |
---|
425 | chmod u+w ${RPM_BUILD_ROOT}%{_bindir} ${RPM_BUILD_ROOT}%{_bindir}/* |
---|
426 | |
---|
427 | # remove unneeded .la files (#225675) |
---|
428 | rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la |
---|
429 | |
---|
430 | # remove RPATHs |
---|
431 | #chrpath -d ${RPM_BUILD_ROOT}%{_libdir}/*.so ${RPM_BUILD_ROOT}%{_bindir}/* |
---|
432 | |
---|
433 | # unify documentation and examples, remove stuff we don't need |
---|
434 | rm -rf docs/csharp |
---|
435 | rm -rf examples/csharp |
---|
436 | rm -rf docs/installation |
---|
437 | mv examples docs |
---|
438 | |
---|
439 | %clean |
---|
440 | rm -rf ${RPM_BUILD_ROOT} |
---|
441 | |
---|
442 | %post -p /sbin/ldconfig |
---|
443 | |
---|
444 | %postun -p /sbin/ldconfig |
---|
445 | |
---|
446 | %post cxx -p /sbin/ldconfig |
---|
447 | |
---|
448 | %postun cxx -p /sbin/ldconfig |
---|
449 | |
---|
450 | %post sql -p /sbin/ldconfig |
---|
451 | |
---|
452 | %postun sql -p /sbin/ldconfig |
---|
453 | |
---|
454 | %post tcl -p /sbin/ldconfig |
---|
455 | |
---|
456 | %postun tcl -p /sbin/ldconfig |
---|
457 | |
---|
458 | %if %{with java} |
---|
459 | %post java -p /sbin/ldconfig |
---|
460 | |
---|
461 | %postun java -p /sbin/ldconfig |
---|
462 | |
---|
463 | %endif |
---|
464 | |
---|
465 | |
---|
466 | %if %{build_compat32} |
---|
467 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
468 | |
---|
469 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
470 | |
---|
471 | %post -n compat32-%{name}-cxx -p /sbin/ldconfig |
---|
472 | |
---|
473 | %postun -n compat32-%{name}-cxx -p /sbin/ldconfig |
---|
474 | |
---|
475 | %endif |
---|
476 | |
---|
477 | %files |
---|
478 | %defattr(-,root,root,-) |
---|
479 | %license LICENSE lgpl-2.1.txt |
---|
480 | %doc README |
---|
481 | %{_libdir}/libdb-%{__soversion}.so |
---|
482 | %{_libdir}/libdb-%{__soversion_major}.so |
---|
483 | |
---|
484 | %files devel |
---|
485 | %defattr(-,root,root,-) |
---|
486 | %{_libdir}/libdb.so |
---|
487 | %dir %{_includedir}/%{name} |
---|
488 | %{_includedir}/%{name}/db.h |
---|
489 | %{_includedir}/%{name}/db_185.h |
---|
490 | %{_includedir}/db.h |
---|
491 | %{_includedir}/db_185.h |
---|
492 | |
---|
493 | %files devel-doc |
---|
494 | %defattr(-,root,root,-) |
---|
495 | %doc docs/* |
---|
496 | |
---|
497 | %files devel-static |
---|
498 | %defattr(-,root,root,-) |
---|
499 | %{_libdir}/libdb-%{__soversion}.a |
---|
500 | %{_libdir}/libdb_cxx-%{__soversion}.a |
---|
501 | %{_libdir}/libdb_tcl-%{__soversion}.a |
---|
502 | %{_libdir}/libdb_sql-%{__soversion}.a |
---|
503 | %if %{with java} |
---|
504 | %{_libdir}/libdb_java-%{__soversion}.a |
---|
505 | %endif |
---|
506 | |
---|
507 | %files utils |
---|
508 | %defattr(-,root,root,-) |
---|
509 | %{_bindir}/db*_archive |
---|
510 | %{_bindir}/db*_checkpoint |
---|
511 | %{_bindir}/db*_deadlock |
---|
512 | %{_bindir}/db*_dump* |
---|
513 | %{_bindir}/db*_hotbackup |
---|
514 | %{_bindir}/db*_load |
---|
515 | %{_bindir}/db*_printlog |
---|
516 | %{_bindir}/db*_recover |
---|
517 | %{_bindir}/db*_replicate |
---|
518 | %{_bindir}/db*_stat |
---|
519 | %{_bindir}/db*_upgrade |
---|
520 | %{_bindir}/db*_verify |
---|
521 | %{_bindir}/db*_tuner |
---|
522 | |
---|
523 | %files cxx |
---|
524 | %defattr(-,root,root,-) |
---|
525 | %{_libdir}/libdb_cxx-%{__soversion}.so |
---|
526 | %{_libdir}/libdb_cxx-%{__soversion_major}.so |
---|
527 | |
---|
528 | %files cxx-devel |
---|
529 | %defattr(-,root,root,-) |
---|
530 | %{_includedir}/%{name}/db_cxx.h |
---|
531 | %{_includedir}/db_cxx.h |
---|
532 | %{_libdir}/libdb_cxx.so |
---|
533 | |
---|
534 | %files tcl |
---|
535 | %defattr(-,root,root,-) |
---|
536 | %{_libdir}/libdb_tcl-%{__soversion}.so |
---|
537 | %{_libdir}/libdb_tcl-%{__soversion_major}.so |
---|
538 | |
---|
539 | %files tcl-devel |
---|
540 | %defattr(-,root,root,-) |
---|
541 | %{_libdir}/libdb_tcl.so |
---|
542 | |
---|
543 | %files sql |
---|
544 | %defattr(-,root,root,-) |
---|
545 | %{_libdir}/libdb_sql-%{__soversion}.so |
---|
546 | %{_libdir}/libdb_sql-%{__soversion_major}.so |
---|
547 | |
---|
548 | %files sql-devel |
---|
549 | %defattr(-,root,root,-) |
---|
550 | %{_bindir}/dbsql |
---|
551 | %{_libdir}/libdb_sql.so |
---|
552 | %{_includedir}/%{name}/dbsql.h |
---|
553 | |
---|
554 | %if %{with java} |
---|
555 | %files java |
---|
556 | %defattr(-,root,root,-) |
---|
557 | %{_libdir}/libdb_java-%{__soversion_major}*.so |
---|
558 | %{_datadir}/java/*.jar |
---|
559 | |
---|
560 | %files java-devel |
---|
561 | %defattr(-,root,root,-) |
---|
562 | %{_libdir}/libdb_java.so |
---|
563 | %endif |
---|
564 | |
---|
565 | %if %{build_compat32} |
---|
566 | %files -n compat32-%{name} |
---|
567 | %defattr(-,root,root) |
---|
568 | %{_libdir}/libdb-%{__soversion}.so |
---|
569 | %{_libdir}/libdb-%{__soversion_major}.so |
---|
570 | |
---|
571 | %files -n compat32-%{name}-cxx |
---|
572 | %defattr(-,root,root) |
---|
573 | %{_libdir}/libdb_cxx-%{__soversion}.so |
---|
574 | %{_libdir}/libdb_cxx-%{__soversion_major}.so |
---|
575 | |
---|
576 | %files -n compat32-%{name}-devel |
---|
577 | %defattr(-,root,root) |
---|
578 | %{_libdir}/libdb.so |
---|
579 | %endif |
---|
580 | |
---|
581 | %changelog |
---|
582 | * Sat Apr 11 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.28-12 |
---|
583 | - imported Patch36-39 from rawhide. |
---|
584 | |
---|
585 | * Fri Dec 22 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.28-11 |
---|
586 | - added Patch28-15. |
---|
587 | |
---|
588 | * Fri Jul 1 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.28-10 |
---|
589 | - rebuilt with new toolchain. |
---|
590 | |
---|
591 | * Thu May 19 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.28-9 |
---|
592 | - added Patch27. |
---|
593 | |
---|
594 | * Tue Dec 16 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 5.3.28-8 |
---|
595 | - added compat32 subpackages |
---|
596 | |
---|
597 | * Sat Nov 1 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 5.3.28-7 |
---|
598 | - updated Summary and Group |
---|
599 | |
---|
600 | * Thu May 22 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.28-6 |
---|
601 | - added "Provides: db4-{utils,devel}". |
---|
602 | |
---|
603 | * Mon May 19 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.28-5 |
---|
604 | - initial build for Vine Linux. |
---|
605 | |
---|
606 | * Sat Feb 22 2014 Peter Robinson <pbrobinson@fedoraproject.org> 5.3.28-4 |
---|
607 | - Add some of the previous aarch64 bits back as the sub configure don't use the macro |
---|
608 | |
---|
609 | * Sun Jan 26 2014 Peter Robinson <pbrobinson@fedoraproject.org> 5.3.28-3 |
---|
610 | - Fix configure macro usage for better aarch64 build fix |
---|
611 | |
---|
612 | * Wed Nov 06 2013 Jan Stanek <jstanek@redhat.com> - 5.3.28-2 |
---|
613 | - Updated config files to allow build on aarch64 (#1022970) |
---|
614 | |
---|
615 | * Tue Oct 08 2013 Jan Stanek <jstanek@redhat.com> - 5.3.28-1 |
---|
616 | - Added Sleepycat to the license list (#1013841) |
---|
617 | - Updated to 5.3.28 (#1013233) |
---|
618 | |
---|
619 | * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.21-13 |
---|
620 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
---|
621 | |
---|
622 | * Tue May 28 2013 Tom Callaway <spot@fedoraproject.org> - 5.3.21-12 |
---|
623 | - add copy of lgpl-2.1.txt |
---|
624 | |
---|
625 | * Thu May 16 2013 Jan Stanek <jstanek@redhat.com> - 5.3.21-11 |
---|
626 | - Fix missing debuginfo issue for utils subpackage |
---|
627 | |
---|
628 | * Thu May 9 2013 Tom Callaway <spot@fedoraproject.org> - 5.3.21-10 |
---|
629 | - add license clarification fix |
---|
630 | |
---|
631 | * Wed Apr 03 2013 Jan Stanek <jstanek@redhat.com> 5.3.21-9 |
---|
632 | - Added sqlite compability CFLAGS (#788496) |
---|
633 | |
---|
634 | * Wed Mar 27 2013 Jan Stanek <jstanek@redhat.com> 5.3.21-8 |
---|
635 | - Cleaning the specfile - removed gcc-java dependecy other way |
---|
636 | |
---|
637 | * Wed Mar 27 2013 Jan Stanek <jstanek@redhat.com> 5.3.21-7 |
---|
638 | - Removed dependency on obsolete gcc-java package (#927742) |
---|
639 | |
---|
640 | * Thu Mar 7 2013 Jindrich Novy <jnovy@redhat.com> 5.3.21-6 |
---|
641 | - add LGPLv2+ and remove Sleepycat in license tag (#886838) |
---|
642 | |
---|
643 | * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.21-5 |
---|
644 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
---|
645 | |
---|
646 | * Tue Nov 27 2012 Tom Callaway <spot@fedoraproject.org> - 5.3.21-4 |
---|
647 | - fix license tag |
---|
648 | |
---|
649 | * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.21-3 |
---|
650 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
---|
651 | |
---|
652 | * Sat Jul 14 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 5.3.21-2 |
---|
653 | - Specify tag for libtool (fixes FTBFS # 838334 ) |
---|
654 | |
---|
655 | * Thu Jul 5 2012 Jindrich Novy <jnovy@redhat.com> 5.3.21-1 |
---|
656 | - update to 5.3.21 |
---|
657 | http://download.oracle.com/otndocs/products/berkeleydb/html/changelog_5_3.html |
---|
658 | |
---|
659 | * Tue Jul 3 2012 Jindrich Novy <jnovy@redhat.com> 5.3.15-5 |
---|
660 | - move C++ header files to cxx-devel |
---|
661 | |
---|
662 | * Tue Jul 3 2012 Jindrich Novy <jnovy@redhat.com> 5.3.15-4 |
---|
663 | - fix -devel packages dependencies yet more (#832225) |
---|
664 | |
---|
665 | * Sun May 6 2012 Jindrich Novy <jnovy@redhat.com> 5.3.15-3 |
---|
666 | - package -devel packages correctly |
---|
667 | |
---|
668 | * Sat Apr 21 2012 Jindrich Novy <jnovy@redhat.com> 5.3.15-2 |
---|
669 | - fix multiarch conflict in libdb-devel (#812901) |
---|
670 | - remove unneeded dos2unix BR |
---|
671 | |
---|
672 | * Thu Mar 15 2012 Jindrich Novy <jnovy@redhat.com> 5.3.15-1 |
---|
673 | - update to 5.3.15 |
---|
674 | http://download.oracle.com/otndocs/products/berkeleydb/html/changelog_5_3.html |
---|
675 | |
---|
676 | * Fri Feb 17 2012 Deepak Bhole <dbhole@redhat.com> 5.2.36-5 |
---|
677 | - Resolves rhbz#794472 |
---|
678 | - Patch from Omair Majid <omajid@redhat.com> to remove explicit Java 6 req. |
---|
679 | |
---|
680 | * Wed Jan 25 2012 Harald Hoyer <harald@redhat.com> 5.2.36-4 |
---|
681 | - add filesystem guard |
---|
682 | |
---|
683 | * Wed Jan 25 2012 Harald Hoyer <harald@redhat.com> 5.2.36-3 |
---|
684 | - install everything in /usr |
---|
685 | https://fedoraproject.org/wiki/Features/UsrMove |
---|
686 | |
---|
687 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.36-2 |
---|
688 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
689 | |
---|
690 | * Wed Jun 15 2011 Jindrich Novy <jnovy@redhat.com> 5.2.36-1 |
---|
691 | - update to 5.2.36, |
---|
692 | http://download.oracle.com/otndocs/products/berkeleydb/html/changelog_5_2.html#id3647664 |
---|
693 | |
---|
694 | * Wed Jun 15 2011 Jindrich Novy <jnovy@redhat.com> 5.2.28-2 |
---|
695 | - move development documentation to devel-doc subpackage (#705386) |
---|
696 | |
---|
697 | * Tue Jun 14 2011 Jindrich Novy <jnovy@redhat.com> 5.2.28-1 |
---|
698 | - update to 5.2.28 |
---|
699 | |
---|
700 | * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.25-2 |
---|
701 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
702 | |
---|
703 | * Thu Feb 3 2011 Jindrich Novy <jnovy@redhat.com> 5.1.25-1 |
---|
704 | - update to 5.1.25 |
---|
705 | |
---|
706 | * Wed Sep 29 2010 jkeating - 5.1.19-2 |
---|
707 | - Rebuilt for gcc bug 634757 |
---|
708 | |
---|
709 | * Fri Sep 10 2010 Jindrich Novy <jnovy@redhat.com> 5.1.19-1 |
---|
710 | - update to 5.1.19 |
---|
711 | - rename -devel-static to -static subpackage (#617800) |
---|
712 | - build java on all arches |
---|
713 | |
---|
714 | * Wed Jul 7 2010 Jindrich Novy <jnovy@redhat.com> 5.0.26-1 |
---|
715 | - update to 5.0.26 |
---|
716 | - drop BR: ed |
---|
717 | |
---|
718 | * Thu Jun 17 2010 Jindrich Novy <jnovy@redhat.com> 5.0.21-2 |
---|
719 | - add Requires: libdb-cxx to libdb-devel |
---|
720 | |
---|
721 | * Wed Apr 21 2010 Jindrich Novy <jnovy@redhat.com> 5.0.21-1 |
---|
722 | - initial build |
---|
723 | |
---|
724 | * Thu Apr 15 2010 Jindrich Novy <jnovy@redhat.com> 5.0.21-0.2 |
---|
725 | - remove C# documentation |
---|
726 | - disable/remove rpath |
---|
727 | - fix description |
---|
728 | - tighten dependencies |
---|
729 | - run ldconfig for cxx and sql subpackages |
---|
730 | |
---|
731 | * Fri Apr 9 2010 Jindrich Novy <jnovy@redhat.com> 5.0.21-0.1 |
---|
732 | - enable sql |
---|
733 | - package 5.0.21 |
---|