]>
Commit | Line | Data |
---|---|---|
7f41620a | 1 | # TODO |
88ce4cc5 | 2 | # - ld.bfd enforced because gold does not understand '!' in version script (binutils-3:2.21.53.0.1-1) |
48c72eca JB |
3 | %define talloc_version 2:2.1.3 |
4 | %define tdb_version 2:1.3.7 | |
5 | %define tevent_version 0.9.25 | |
9c196e2c JB |
6 | Summary: LDAP-like embedded database |
7 | Summary(pl.UTF-8): Wbudowana baza danych podobna do LDAP | |
cd178619 | 8 | Name: ldb |
48c72eca JB |
9 | Version: 1.1.21 |
10 | Release: 1 | |
2a1bfbb9 | 11 | License: LGPL v3+ |
56acf5d3 | 12 | Group: Libraries |
48c72eca JB |
13 | Source0: https://www.samba.org/ftp/ldb/%{name}-%{version}.tar.gz |
14 | # Source0-md5: 94ba09c7452fff68df3481686c56677e | |
15 | URL: https://ldb.samba.org/ | |
2a1bfbb9 ER |
16 | BuildRequires: autoconf |
17 | BuildRequires: docbook-style-xsl | |
2a1bfbb9 | 18 | BuildRequires: libxslt |
074f9f52 | 19 | BuildRequires: popt-devel >= 1.6 |
97bd97ed JB |
20 | BuildRequires: python-devel >= 1:2.4.2 |
21 | BuildRequires: python-talloc-devel >= %{talloc_version} | |
22 | BuildRequires: python-tdb >= %{tdb_version} | |
23 | BuildRequires: python-tevent >= %{tevent_version} | |
9c196e2c | 24 | BuildRequires: talloc-devel >= %{talloc_version} |
2a1bfbb9 ER |
25 | BuildRequires: tdb-devel >= %{tdb_version} |
26 | BuildRequires: tevent-devel >= %{tevent_version} | |
9c196e2c | 27 | Requires: talloc >= %{talloc_version} |
2a1bfbb9 ER |
28 | Requires: tdb >= %{tdb_version} |
29 | Requires: tevent >= %{tevent_version} | |
074f9f52 | 30 | Requires: popt >= 1.6 |
cd178619 ER |
31 | Provides: libldb = %{version}-%{release} |
32 | Obsoletes: libldb < 1.1.0-3 | |
2a1bfbb9 ER |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
36 | An extensible library that implements an LDAP like API to access | |
37 | remote LDAP servers, or use local tdb databases. | |
38 | ||
9c196e2c JB |
39 | %description -l pl.UTF-8 |
40 | Rozszerzalna biblioteka implementująca API podobne do LDAP pozwalające | |
41 | na dostęp do zdalnych serwerów LDAP lub wykorzystanie lokalnych baz | |
42 | danych tdb. | |
43 | ||
cd178619 | 44 | %package tools |
2a1bfbb9 | 45 | Summary: Tools to manage LDB files |
9c196e2c JB |
46 | Summary(pl.UTF-8): Narzędzia do zarządzania plikami LDB |
47 | Group: Applications/Databases | |
2a1bfbb9 ER |
48 | Requires: %{name} = %{version}-%{release} |
49 | ||
cd178619 | 50 | %description tools |
2a1bfbb9 ER |
51 | Tools to manage LDB files. |
52 | ||
9c196e2c JB |
53 | %description tools -l pl.UTF-8 |
54 | Narzędzia do zarządzania plikami LDB. | |
55 | ||
2a1bfbb9 | 56 | %package devel |
9c196e2c JB |
57 | Summary: Header files for the LDB library |
58 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LDB | |
2a1bfbb9 ER |
59 | Group: Development/Libraries |
60 | Requires: %{name} = %{version}-%{release} | |
9c196e2c | 61 | Requires: talloc-devel >= %{talloc_version} |
2a1bfbb9 ER |
62 | Requires: tdb-devel >= %{tdb_version} |
63 | Requires: tevent-devel >= %{tevent_version} | |
cd178619 ER |
64 | Provides: libldb-devel = %{version}-%{release} |
65 | Obsoletes: libldb-devel < 1.1.0-3 | |
2a1bfbb9 ER |
66 | |
67 | %description devel | |
68 | Header files needed to develop programs that link against the LDB | |
69 | library. | |
70 | ||
9c196e2c JB |
71 | %description devel -l pl.UTF-8 |
72 | Pliki nagłówkowe potrzebne do tworzenia programów wykorzystujących | |
73 | bibliotekę LDB. | |
74 | ||
2a1bfbb9 ER |
75 | %package -n python-ldb |
76 | Summary: Python bindings for the LDB library | |
9c196e2c JB |
77 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki LDB |
78 | Group: Libraries/Python | |
2a1bfbb9 | 79 | Requires: %{name} = %{version}-%{release} |
97bd97ed JB |
80 | Requires: python-libs >= 1:2.4.2 |
81 | Requires: python-tdb >= %{tdb_version} | |
2a1bfbb9 ER |
82 | Obsoletes: pyldb |
83 | ||
84 | %description -n python-ldb | |
85 | Python bindings for the LDB library. | |
86 | ||
9c196e2c JB |
87 | %description -n python-ldb -l pl.UTF-8 |
88 | Wiązania Pythona do biblioteki LDB. | |
89 | ||
2a1bfbb9 ER |
90 | %package -n python-ldb-devel |
91 | Summary: Development files for the Python bindings for the LDB library | |
9c196e2c | 92 | Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do biblioteki LDB |
2a1bfbb9 | 93 | Group: Development/Libraries |
cd178619 | 94 | Requires: python-ldb = %{version}-%{release} |
2a1bfbb9 ER |
95 | |
96 | %description -n python-ldb-devel | |
9c196e2c JB |
97 | Development files for the Python bindings for the LDB library. |
98 | ||
99 | %description -n python-ldb-devel -l pl.UTF-8 | |
100 | Pliki programistyczne wiązań Pythona do biblioteki LDB. | |
2a1bfbb9 ER |
101 | |
102 | %prep | |
cd178619 | 103 | %setup -q |
2a1bfbb9 ER |
104 | |
105 | %build | |
2a1bfbb9 ER |
106 | CC="%{__cc}" \ |
107 | CFLAGS="%{rpmcflags}" \ | |
88ce4cc5 | 108 | LDFLAGS="%{rpmldflags} -fuse-ld=bfd" \ |
2a1bfbb9 ER |
109 | PYTHONDIR=%{py_sitedir} \ |
110 | ./configure \ | |
111 | --prefix=%{_prefix} \ | |
112 | --libdir=%{_libdir} \ | |
113 | --with-modulesdir=%{_libdir}/ldb/modules \ | |
114 | --with-privatelibdir=%{_libdir}/ldb \ | |
115 | --bundled-libraries=NONE \ | |
116 | --disable-rpath \ | |
117 | --disable-rpath-install | |
118 | ||
119 | %{__make} \ | |
120 | V=1 | |
121 | ||
122 | %install | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | %{__make} install \ | |
125 | DESTDIR=$RPM_BUILD_ROOT | |
126 | ||
2a1bfbb9 ER |
127 | # Shared libraries need to be marked executable for |
128 | # rpmbuild to strip them and include them in debuginfo | |
88ce4cc5 | 129 | find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} ';' |
2a1bfbb9 ER |
130 | |
131 | %clean | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %post -p /sbin/ldconfig | |
135 | %postun -p /sbin/ldconfig | |
136 | ||
137 | %post -n python-ldb -p /sbin/ldconfig | |
138 | %postun -n python-ldb -p /sbin/ldconfig | |
139 | ||
140 | %files | |
141 | %defattr(644,root,root,755) | |
97bd97ed JB |
142 | %attr(755,root,root) %{_libdir}/libldb.so.*.*.* |
143 | %attr(755,root,root) %ghost %{_libdir}/libldb.so.1 | |
2a1bfbb9 | 144 | %dir %{_libdir}/ldb |
2a1bfbb9 ER |
145 | %dir %{_libdir}/ldb/modules |
146 | %dir %{_libdir}/ldb/modules/ldb | |
9c196e2c | 147 | %attr(755,root,root) %{_libdir}/ldb/modules/ldb/*.so |
2a1bfbb9 | 148 | |
9c196e2c | 149 | %files tools |
2a1bfbb9 ER |
150 | %defattr(644,root,root,755) |
151 | %attr(755,root,root) %{_bindir}/ldbadd | |
152 | %attr(755,root,root) %{_bindir}/ldbdel | |
153 | %attr(755,root,root) %{_bindir}/ldbedit | |
154 | %attr(755,root,root) %{_bindir}/ldbmodify | |
155 | %attr(755,root,root) %{_bindir}/ldbrename | |
156 | %attr(755,root,root) %{_bindir}/ldbsearch | |
9c196e2c JB |
157 | %attr(755,root,root) %{_libdir}/ldb/libldb-cmdline.so |
158 | %{_mandir}/man1/ldbadd.1* | |
159 | %{_mandir}/man1/ldbdel.1* | |
160 | %{_mandir}/man1/ldbedit.1* | |
161 | %{_mandir}/man1/ldbmodify.1* | |
162 | %{_mandir}/man1/ldbrename.1* | |
163 | %{_mandir}/man1/ldbsearch.1* | |
2a1bfbb9 ER |
164 | |
165 | %files devel | |
166 | %defattr(644,root,root,755) | |
9c196e2c | 167 | %attr(755,root,root) %{_libdir}/libldb.so |
2a1bfbb9 ER |
168 | %{_includedir}/ldb_module.h |
169 | %{_includedir}/ldb_handlers.h | |
170 | %{_includedir}/ldb_errors.h | |
171 | %{_includedir}/ldb_version.h | |
172 | %{_includedir}/ldb.h | |
2a1bfbb9 ER |
173 | %{_pkgconfigdir}/ldb.pc |
174 | %{_mandir}/man3/ldb.3* | |
175 | ||
176 | %files -n python-ldb | |
177 | %defattr(644,root,root,755) | |
97bd97ed JB |
178 | %attr(755,root,root) %{_libdir}/libpyldb-util.so.*.*.* |
179 | %attr(755,root,root) %ghost %{_libdir}/libpyldb-util.so.1 | |
9c196e2c | 180 | %attr(755,root,root) %{py_sitedir}/ldb.so |
2a1bfbb9 ER |
181 | |
182 | %files -n python-ldb-devel | |
183 | %defattr(644,root,root,755) | |
9c196e2c | 184 | %attr(755,root,root) %{_libdir}/libpyldb-util.so |
2a1bfbb9 | 185 | %{_includedir}/pyldb.h |
2a1bfbb9 | 186 | %{_pkgconfigdir}/pyldb-util.pc |