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