]> git.pld-linux.org Git - packages/db1.git/blob - db1.spec
- release 8: spec adapterized.
[packages/db1.git] / db1.spec
1 Summary:        BSD database library for C
2 Name:           db1
3 Version:        1.85
4 Release:        8
5 License:        BSD
6 Group:          Libraries
7 Group(de):      Libraries
8 Group(es):      Bibliotecas
9 Group(fr):      Librairies
10 Group(pl):      Biblioteki
11 Group(pt_BR):   Bibliotecas
12 Group(ru):      âÉÂÌÉÏÔÅËÉ
13 Group(uk):      â¦Â̦ÏÔÅËÉ
14 URL:            http://www.sleepycat.com
15 Source0:        http://www.sleepycat.com/update/%{version}/db.%{version}.tar.gz
16 Patch0:         %{name}.patch
17 Conflicts:      glibc < 2.1.90
18 BuildConflicts: glibc-db1
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Obsoletes:      glibc-db1
21
22 %description
23 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
24 provides embedded database support for both traditional and
25 client/server applications. It should be installed if compatibility is
26 needed with databases created with db1. This library used to be part
27 of the glibc package.
28
29 %package devel
30 Summary:        Development libraries and header files for Berkeley database library
31 Group:          Development/Libraries
32 Group(de):      Entwicklung/Libraries
33 Group(es):      Desarrollo/Bibliotecas
34 Group(fr):      Development/Librairies
35 Group(pl):      Programowanie/Biblioteki
36 Group(pt_BR):   Desenvolvimento/Bibliotecas
37 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
38 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
39 Requires:       %{name} = %{version}
40 Conflicts:      glibc-devel < 2.1.90
41 Obsoletes:      glibc-db1-devel
42
43 %description devel
44 The Berkeley Database (Berkeley DB) is a programmatic toolkit that
45 provides embedded database support for both traditional and
46 client/server applications. Berkeley DB includes B tree, Hashing,
47 Fixed and Variable-length record access methods.
48
49 This package contains the header files, libraries, and documentation
50 for building programs which use Berkeley DB.
51
52 %package static
53 Summary:        Static libraries for Berkeley database library
54 Group:          Development/Libraries
55 Group(de):      Entwicklung/Libraries
56 Group(es):      Desarrollo/Bibliotecas
57 Group(fr):      Development/Librairies
58 Group(pl):      Programowanie/Biblioteki
59 Group(pt_BR):   Desenvolvimento/Bibliotecas
60 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
61 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
62 Requires:       %{name}-devel = %{version}
63 Conflicts:      glibc-static < 2.1.90
64 Obsoletes:      glibc-db1-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 %prep
76 %setup -q -n db.%{version}
77 %patch -p1
78
79 %build
80 cd PORT/linux
81 %{__make} OORG="%{rpmcflags}"
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85 install -d ${RPM_BUILD_ROOT}%{_prefix}/{include/db1,lib,bin}
86
87 sed -n '/^\/\*-/,/^ \*\//s/^.\*.\?//p' include/db.h | grep -v '^@.*db\.h' > LICENSE
88
89 cd PORT/linux
90 sover=`echo libdb.so.* | sed 's/libdb.so.//'`
91 install libdb.a                 $RPM_BUILD_ROOT/%{_libdir}/libdb1.a
92 install libdb.so.$sover         $RPM_BUILD_ROOT/%{_libdir}/libdb1.so.$sover
93 ln -sf libdb1.so.$sover         $RPM_BUILD_ROOT/%{_libdir}/libdb1.so
94 ln -sf libdb1.so.$sover         $RPM_BUILD_ROOT/%{_libdir}/libdb.so.$sover
95 install ../include/ndbm.h       $RPM_BUILD_ROOT/%{_includedir}/db1/
96 install ../../include/db.h      $RPM_BUILD_ROOT/%{_includedir}/db1/
97 install ../../include/mpool.h   $RPM_BUILD_ROOT/%{_includedir}/db1/
98 install db_dump185              $RPM_BUILD_ROOT/%{_bindir}/db1_dump185
99 cd ../..
100
101 gzip -9nf docs/*.ps README LICENSE changelog
102
103 %clean
104 rm -rf ${RPM_BUILD_ROOT}
105
106 %post   -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
108
109 %files
110 %defattr(644,root,root,755)
111 %doc {README,LICENSE,changelog}.gz
112 %attr(755,root,root) %{_libdir}/libdb*.so.*
113 %attr(755,root,root) %{_bindir}/db1_dump185
114
115 %files devel
116 %defattr(644,root,root,755)
117 %doc docs/*.ps.gz
118 %attr(755,root,root) %{_libdir}/libdb1.so
119 %{_includedir}/db1
120
121 %files static
122 %defattr(644,root,root,755)
123 %{_libdir}/libdb1.a
This page took 2.534457 seconds and 4 git commands to generate.