[9517] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[9844] | 3 | %define talloc_version 2.1.5 |
---|
| 4 | %define tdb_version 1.3.8 |
---|
[10042] | 5 | %define tevent_version 0.9.28 |
---|
[7255] | 6 | |
---|
| 7 | Name: libldb |
---|
[8998] | 8 | Summary: A schema-less, ldap like, API and database |
---|
[10042] | 9 | Version: 1.1.26 |
---|
[9673] | 10 | Release: 1%{?_dist_release} |
---|
[8998] | 11 | |
---|
| 12 | Group: System Environment/Libraries |
---|
[7255] | 13 | License: LGPLv3+ |
---|
| 14 | URL: http://ldb.samba.org/ |
---|
[8998] | 15 | |
---|
[7255] | 16 | Source: http://samba.org/ftp/ldb/ldb-%{version}.tar.gz |
---|
[8998] | 17 | # Patches |
---|
| 18 | Patch1001: FED01-fix-tevent-check.patch |
---|
[7255] | 19 | |
---|
[8998] | 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[7255] | 21 | BuildRequires: libtalloc-devel >= %{talloc_version} |
---|
| 22 | BuildRequires: libtdb-devel >= %{tdb_version} |
---|
| 23 | BuildRequires: libtevent-devel >= %{tevent_version} |
---|
| 24 | BuildRequires: popt-devel |
---|
| 25 | BuildRequires: autoconf |
---|
| 26 | BuildRequires: libxslt |
---|
| 27 | BuildRequires: docbook-style-xsl |
---|
| 28 | BuildRequires: python-devel |
---|
| 29 | BuildRequires: python-tdb |
---|
| 30 | BuildRequires: pytalloc-devel |
---|
| 31 | BuildRequires: python-tevent |
---|
| 32 | BuildRequires: doxygen |
---|
[8998] | 33 | Requires: libtalloc >= %{talloc_version} |
---|
| 34 | Requires: libtdb >= %{tdb_version} |
---|
| 35 | Requires: libtevent >= %{tevent_version} |
---|
[7255] | 36 | |
---|
| 37 | Provides: bundled(libreplace) |
---|
| 38 | Provides: bundled(libtdb_compat) |
---|
| 39 | Provides: bundled(libccan) |
---|
| 40 | |
---|
| 41 | Vendor: Project Vine |
---|
| 42 | Distribution: Vine Linux |
---|
| 43 | Packager: tomop |
---|
| 44 | |
---|
| 45 | %description |
---|
| 46 | An extensible library that implements an LDAP like API to access remote LDAP |
---|
| 47 | servers, or use local tdb databases. |
---|
| 48 | |
---|
| 49 | %package -n ldb-tools |
---|
[8998] | 50 | Group: Applications/System |
---|
[7255] | 51 | Summary: Tools to manage LDB files |
---|
| 52 | Requires: libldb = %{version}-%{release} |
---|
| 53 | |
---|
| 54 | %description -n ldb-tools |
---|
| 55 | Tools to manage LDB files |
---|
| 56 | |
---|
| 57 | %package devel |
---|
| 58 | Group: Development/Libraries |
---|
| 59 | Summary: Developer tools for the LDB library |
---|
| 60 | Requires: libldb = %{version}-%{release} |
---|
| 61 | Requires: libtdb-devel >= %{tdb_version} |
---|
| 62 | Requires: libtalloc-devel >= %{talloc_version} |
---|
| 63 | Requires: libtevent-devel >= %{tevent_version} |
---|
| 64 | Requires: pkgconfig |
---|
| 65 | |
---|
| 66 | %description devel |
---|
| 67 | Header files needed to develop programs that link against the LDB library. |
---|
| 68 | |
---|
| 69 | %package -n pyldb |
---|
[8998] | 70 | Group: System Environment/Libraries |
---|
[7255] | 71 | Summary: Python bindings for the LDB library |
---|
| 72 | Requires: libldb = %{version}-%{release} |
---|
| 73 | Requires: python-tdb >= %{tdb_version} |
---|
| 74 | |
---|
| 75 | %description -n pyldb |
---|
| 76 | Python bindings for the LDB library |
---|
| 77 | |
---|
| 78 | %package -n pyldb-devel |
---|
| 79 | Group: Development/Libraries |
---|
| 80 | Summary: Development files for the Python bindings for the LDB library |
---|
| 81 | Requires: pyldb = %{version}-%{release} |
---|
| 82 | |
---|
| 83 | %description -n pyldb-devel |
---|
| 84 | Development files for the Python bindings for the LDB library |
---|
| 85 | |
---|
[9517] | 86 | %if %build_compat32 |
---|
| 87 | |
---|
| 88 | %package -n compat32-%{name} |
---|
| 89 | Summary: A schema-less, ldap like, API and database |
---|
| 90 | Group: System Environment/Libraries |
---|
| 91 | |
---|
| 92 | %description -n compat32-%{name} |
---|
| 93 | An extensible library that implements an LDAP like API to access remote LDAP |
---|
| 94 | servers, or use local tdb databases. |
---|
| 95 | |
---|
| 96 | %endif |
---|
| 97 | |
---|
[7255] | 98 | %prep |
---|
| 99 | %setup -q -n ldb-%{version} |
---|
| 100 | |
---|
| 101 | %patch1001 -p1 |
---|
| 102 | |
---|
| 103 | %build |
---|
| 104 | |
---|
| 105 | # tdb_compat and ccan have no upstream releases to link against yet and their |
---|
| 106 | # API is in flux. It is unsafe to make them public and shared at this time. |
---|
| 107 | %configure --disable-rpath \ |
---|
| 108 | --disable-rpath-install \ |
---|
| 109 | --bundled-libraries=NONE \ |
---|
| 110 | --builtin-libraries=tdb_compat,ccan,replace \ |
---|
| 111 | --with-modulesdir=%{_libdir}/ldb/modules \ |
---|
| 112 | --with-privatelibdir=%{_libdir}/ldb |
---|
| 113 | |
---|
| 114 | make V=1 %{?_smp_mflags} |
---|
| 115 | doxygen Doxyfile |
---|
| 116 | |
---|
| 117 | %install |
---|
| 118 | make install DESTDIR=%{buildroot} |
---|
| 119 | |
---|
| 120 | rm -f %{buildroot}%{_libdir}/libldb.a |
---|
| 121 | |
---|
| 122 | # Remove _tevent.so (it's managed by python-tevent) |
---|
| 123 | #rm -f %{buildroot}/%{python_sitearch}/_tevent.so |
---|
| 124 | |
---|
| 125 | # Shared libraries need to be marked executable for |
---|
| 126 | # rpmbuild to strip them and include them in debuginfo |
---|
| 127 | find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \; |
---|
| 128 | |
---|
| 129 | # Install API docs |
---|
| 130 | cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir} |
---|
| 131 | |
---|
| 132 | %clean |
---|
| 133 | rm -rf %{buildroot} |
---|
| 134 | |
---|
[9517] | 135 | %post |
---|
| 136 | /sbin/ldconfig |
---|
[7255] | 137 | |
---|
[9517] | 138 | %postun |
---|
| 139 | /sbin/ldconfig |
---|
[7255] | 140 | |
---|
[9517] | 141 | %post -n pyldb |
---|
| 142 | /sbin/ldconfig |
---|
| 143 | |
---|
| 144 | %postun -n pyldb |
---|
| 145 | /sbin/ldconfig |
---|
| 146 | |
---|
| 147 | %if %build_compat32 |
---|
| 148 | |
---|
| 149 | %post -n compat32-%{name} |
---|
| 150 | /sbin/ldconfig |
---|
| 151 | |
---|
| 152 | %postun -n compat32-%{name} |
---|
| 153 | /sbin/ldconfig |
---|
| 154 | |
---|
| 155 | %endif |
---|
| 156 | |
---|
[7255] | 157 | %files |
---|
| 158 | %defattr(-,root,root,-) |
---|
| 159 | %dir %{_libdir}/ldb |
---|
| 160 | %{_libdir}/libldb.so.* |
---|
| 161 | %dir %{_libdir}/ldb/modules |
---|
| 162 | %dir %{_libdir}/ldb/modules/ldb |
---|
[7261] | 163 | %{_libdir}/ldb/libldb-cmdline.so |
---|
[7255] | 164 | %{_libdir}/ldb/modules/ldb/*.so |
---|
| 165 | |
---|
| 166 | %files -n ldb-tools |
---|
| 167 | %defattr(-,root,root,-) |
---|
| 168 | %{_bindir}/ldbadd |
---|
| 169 | %{_bindir}/ldbdel |
---|
| 170 | %{_bindir}/ldbedit |
---|
| 171 | %{_bindir}/ldbmodify |
---|
| 172 | %{_bindir}/ldbrename |
---|
| 173 | %{_bindir}/ldbsearch |
---|
| 174 | %{_mandir}/man1/ldbadd.1.* |
---|
| 175 | %{_mandir}/man1/ldbdel.1.* |
---|
| 176 | %{_mandir}/man1/ldbedit.1.* |
---|
| 177 | %{_mandir}/man1/ldbmodify.1.* |
---|
| 178 | %{_mandir}/man1/ldbrename.1.* |
---|
| 179 | %{_mandir}/man1/ldbsearch.1.* |
---|
| 180 | |
---|
| 181 | %files devel |
---|
| 182 | %defattr(-,root,root,-) |
---|
| 183 | %{_includedir}/ldb_module.h |
---|
| 184 | %{_includedir}/ldb_handlers.h |
---|
| 185 | %{_includedir}/ldb_errors.h |
---|
| 186 | %{_includedir}/ldb_version.h |
---|
| 187 | %{_includedir}/ldb.h |
---|
| 188 | %{_libdir}/libldb.so |
---|
| 189 | |
---|
| 190 | %{_libdir}/pkgconfig/ldb.pc |
---|
| 191 | %{_mandir}/man3/ldb*.gz |
---|
| 192 | |
---|
| 193 | %files -n pyldb |
---|
| 194 | %defattr(-,root,root,-) |
---|
| 195 | %{python_sitearch}/ldb.so |
---|
[9844] | 196 | %{python_sitearch}/_ldb_text.* |
---|
[7255] | 197 | %{_libdir}/libpyldb-util.so.1* |
---|
| 198 | |
---|
| 199 | %files -n pyldb-devel |
---|
| 200 | %defattr(-,root,root,-) |
---|
| 201 | %{_includedir}/pyldb.h |
---|
| 202 | %{_libdir}/libpyldb-util.so |
---|
| 203 | %{_libdir}/pkgconfig/pyldb-util.pc |
---|
| 204 | %{_mandir}/man*/Py*.gz |
---|
| 205 | |
---|
[9517] | 206 | %if %build_compat32 |
---|
[7255] | 207 | |
---|
[9517] | 208 | %files -n compat32-%{name} |
---|
| 209 | %defattr(-,root,root,-) |
---|
| 210 | %dir %{_libdir}/ldb |
---|
| 211 | %{_libdir}/libldb.so.* |
---|
| 212 | %dir %{_libdir}/ldb/modules |
---|
| 213 | %dir %{_libdir}/ldb/modules/ldb |
---|
| 214 | %{_libdir}/ldb/libldb-cmdline.so |
---|
| 215 | %{_libdir}/ldb/modules/ldb/*.so |
---|
[7512] | 216 | |
---|
[9517] | 217 | %endif |
---|
| 218 | |
---|
| 219 | |
---|
[7255] | 220 | %changelog |
---|
[10042] | 221 | * Wed Feb 24 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.26-1 |
---|
| 222 | - new upstream release. |
---|
| 223 | |
---|
[9873] | 224 | * Fri Dec 18 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.25-1 |
---|
| 225 | - new upstream release. |
---|
| 226 | |
---|
[9871] | 227 | * Thu Dec 17 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.24-1 |
---|
| 228 | - new upstream release. |
---|
| 229 | |
---|
[9844] | 230 | * Wed Dec 2 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.23-1 |
---|
| 231 | - new upstream release. |
---|
| 232 | |
---|
[9673] | 233 | * Fri Jul 24 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.21-1 |
---|
| 234 | - new upstream release. |
---|
| 235 | |
---|
[9517] | 236 | * Thu Apr 16 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.20-2 |
---|
| 237 | - added compat32 package. |
---|
| 238 | |
---|
[10042] | 239 | * Fri Mar 6 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.20-1 |
---|
[9411] | 240 | - new upstream release. |
---|
| 241 | |
---|
[9254] | 242 | * Mon Jan 12 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.19-1 |
---|
| 243 | - new upstream release. |
---|
| 244 | |
---|
[10042] | 245 | * Wed Dec 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.18-1 |
---|
[9136] | 246 | - new upstream release. |
---|
| 247 | |
---|
[8998] | 248 | * Fri Oct 3 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.1.17-2 |
---|
| 249 | - moved libldb and pyldb to System Environment/Libraries Group |
---|
| 250 | - moved ldb-tool to Applications/System Group |
---|
| 251 | |
---|
[8910] | 252 | * Tue Aug 19 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.17-1 |
---|
| 253 | - new upstream release. |
---|
| 254 | |
---|
[8130] | 255 | * Wed Jan 08 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.16-2 |
---|
| 256 | - rebuilt with current environment. |
---|
| 257 | |
---|
[7885] | 258 | * Tue Oct 08 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.16-1 |
---|
| 259 | - new upstream release. |
---|
| 260 | |
---|
[7512] | 261 | * Sun Mar 03 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.15-1 |
---|
| 262 | - new upstream release. |
---|
| 263 | |
---|
[7261] | 264 | * Thu Dec 20 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.14-3 |
---|
| 265 | - moved libldb-cmdline.so to main package. |
---|
| 266 | |
---|
[7255] | 267 | * Tue Dec 18 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.14-2 |
---|
| 268 | - fixed dependency. |
---|
| 269 | |
---|
| 270 | * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.14-1 |
---|
| 271 | - new upstream release. |
---|
| 272 | - initial build for Vine Linux. |
---|
| 273 | |
---|
| 274 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2 |
---|
| 275 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 276 | |
---|
| 277 | * Tue Dec 06 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.4-1 |
---|
| 278 | - New upstream release |
---|
| 279 | - Add ldb_module_error() routine |
---|
| 280 | - Fedora: work around unreliable configure check for pytevent |
---|
| 281 | - Drop patch to ignore --disable-silent-rules (included in tarball) |
---|
| 282 | |
---|
| 283 | * Thu Dec 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.3-4 |
---|
| 284 | - Add patch to ignore --disable-silent-rules |
---|
| 285 | |
---|
| 286 | * Wed Nov 23 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.3-3 |
---|
| 287 | - Add explicit mention of the bundled libreplace |
---|
| 288 | - https://fedorahosted.org/fpc/ticket/120 |
---|
| 289 | - Add explicit mention of bundled libtdb_compat and libccan |
---|
| 290 | - https://fedorahosted.org/fpc/ticket/119 |
---|
| 291 | |
---|
| 292 | * Mon Nov 21 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.3-2 |
---|
| 293 | - Build and install API documentation |
---|
| 294 | - Build tdb_compat and ccan statically. They have no upstream releases to |
---|
| 295 | link against yet and their API is in flux. It is unsafe to make them |
---|
| 296 | public and shared at this time. |
---|
| 297 | |
---|
| 298 | * Wed Nov 09 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.3-1 |
---|
| 299 | - New upstream release |
---|
| 300 | - Required for building newer samba4 packages |
---|
| 301 | |
---|
| 302 | * Tue Aug 2 2011 Simo Sorce <ssorce@redhat.com> - 1.1.0-1 |
---|
| 303 | - Update to 1.1.0 |
---|
| 304 | (dependency for samba4 alpha16 snapshot) |
---|
| 305 | |
---|
| 306 | * Tue Feb 22 2011 Simo Sorce <ssorce@redhat.com> - 1.0.2-1 |
---|
| 307 | - Update to 1.0.2 |
---|
| 308 | (dependency for samba4 alpha15 snapshot) |
---|
| 309 | |
---|
| 310 | * Fri Feb 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.0.0-2 |
---|
| 311 | - Disable rpath |
---|
| 312 | |
---|
| 313 | * Fri Feb 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.0.0-1 |
---|
| 314 | - New upstream release 1.0.0 |
---|
| 315 | - SOname bump to account for module loading changes |
---|
| 316 | - Rename libldb-tools to ldb-tools to make upgrades easier |
---|
| 317 | |
---|
| 318 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.22-9 |
---|
| 319 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 320 | |
---|
| 321 | * Fri Feb 04 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.22-8 |
---|
| 322 | - Fixes from package review |
---|
| 323 | - Change Requires: on tools subpackage to be the exact version/release |
---|
| 324 | - Remove unnecessary BuildRoot directive |
---|
| 325 | |
---|
| 326 | * Mon Jan 17 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.22-7 |
---|
| 327 | - Update to 0.9.22 (first independent release of libldb upstream) |
---|
| 328 | |
---|