]> git.pld-linux.org Git - packages/db2.git/blob - db2.spec
- release 8: use new %doc.
[packages/db2.git] / db2.spec
1 Summary:        BSD database library for C
2 Summary(pl):    Biblioteka bazodanowa z BSD dla C
3 Name:           db2
4 Version:        2.4.14
5 Release:        8
6 Group:          Libraries
7 License:        BSD
8 # Source0:      http://www.berkeleydb.com/update/snapshot/db-2.7.7.tar.gz
9 # Taken from glibc 2.1.3
10 Source0:        %{name}-glibc-2.1.3.tar.gz
11 # Patch to make it standalone
12 Patch0:         %{name}-glibc-2.1.3.patch
13 Patch1:         %{name}-libdb2.patch
14 URL:            http://www.berkeleydb.com/
15 PreReq:         /sbin/ldconfig
16 Conflicts:      glibc < 2.1.90
17 BuildConflicts: glibc-db2
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Obsoletes:      glibc-db2
20
21 %description
22 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
23 provides embedded database support for both traditional and
24 client/server applications. This library used to be part of the glibc
25 package.
26
27 %description -l pl
28 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
29 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
30 klient-serwer. Ta biblioteka by³a czê¶ci± glibc.
31
32 %package devel
33 Summary:        Header files for Berkeley database library
34 Summary(pl):    Pliki nag³ówkowe do biblioteki Berkeley Database
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}
37 Conflicts:      glibc-devel < 2.1.90
38 Obsoletes:      glibc-db2-devel
39
40 %description devel
41 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
42 provides embedded database support for both traditional and
43 client/server applications. Berkeley DB includes B tree, Hashing,
44 Fixed and Variable-length record access methods.
45
46 This package contains the header files, and documentation for building
47 programs which use Berkeley DB.
48
49 %description devel -l pl
50 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
51 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
52 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
53 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu.
54
55 Ten pakiet zawiera pliki nag³ówkowe i dokumentacjê do budowania
56 programów u¿ywaj±cych Berkeley DB.
57
58 %package static
59 Summary:        Static libraries for Berkeley database library
60 Summary(pl):    Statyczne biblioteki Berkeley Database
61 Group:          Development/Libraries
62 Requires:       %{name}-devel = %{version}
63 Conflicts:      glibc-static < 2.1.90
64 Obsoletes:      glibc-db2-static
65
66 %description static
67 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
68 provides embedded database support for both traditional and
69 client/server applications. Berkeley DB includes B tree, Hashing,
70 Fixed and Variable-length record access methods.
71
72 This package contains the static libraries for building programs which
73 use Berkeley DB.
74
75 %description static -l pl
76 Berkeley Database (Berkeley DB) to zestaw narzêdzi programistycznych
77 zapewniaj±cych obs³ugê baz danych w aplikacjach tradycyjnych jak i
78 klient-serwer. Berkeley DB obs³ugje dostêp do bazy przez B-drzewa i
79 funkcje mieszaj±ce ze sta³± lub zmienn± wielko¶ci± rekordu.
80
81 Ten pakiet zawiera statyczne biblioteki do budowania programów
82 u¿ywaj±cych Berkeley DB.
83
84 %prep
85 %setup -q -n db2
86 %patch0 -p1
87 %patch1 -p1
88
89 %build
90 %{__make} CFLAGS="%{rpmcflags} -I. -I./include -include ./compat.h"
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT{/lib,%{_includedir}/db2,%{_libdir},%{_bindir}}
95
96 install libdb2.so.3 $RPM_BUILD_ROOT/lib/
97 install libdb2.a $RPM_BUILD_ROOT%{_libdir}
98 install db.h db_185.h $RPM_BUILD_ROOT%{_includedir}/db2
99
100 for p in db_archive db_checkpoint db_deadlock db_dump db_load \
101         db_printlog db_recover db_stat; do
102         q="`echo $p | sed -e 's,^db_,db2_,'`"
103                 install $p $RPM_BUILD_ROOT%{_bindir}/$q
104 done
105
106 ln -sf ../../lib/libdb2.so.3 $RPM_BUILD_ROOT%{_libdir}/libdb2.so
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %post   -p /sbin/ldconfig
112 %postun -p /sbin/ldconfig
113
114 %files
115 %defattr(644,root,root,755)
116 %doc README LICENSE
117 %attr(755,root,root) /lib/libdb2.so.3
118
119 %files devel
120 %defattr(644,root,root,755)
121 %dir %{_includedir}/db2
122 %{_includedir}/db2/db.h
123 %{_includedir}/db2/db_185.h
124 %attr(755,root,root) %{_libdir}/libdb2.so
125 %attr(755,root,root) %{_bindir}/db2_archive
126 %attr(755,root,root) %{_bindir}/db2_checkpoint
127 %attr(755,root,root) %{_bindir}/db2_deadlock
128 %attr(755,root,root) %{_bindir}/db2_dump
129 %attr(755,root,root) %{_bindir}/db2_load
130 %attr(755,root,root) %{_bindir}/db2_printlog
131 %attr(755,root,root) %{_bindir}/db2_recover
132 %attr(755,root,root) %{_bindir}/db2_stat
133
134 %files static
135 %defattr(644,root,root,755)
136 %{_libdir}/libdb2.a
This page took 0.119199 seconds and 3 git commands to generate.