[3095] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
| 3 | Name: libtdb |
---|
[7885] | 4 | Version: 1.2.12 |
---|
[6101] | 5 | Release: 1%{?_dist_release} |
---|
[3095] | 6 | Group: System Environment/Libraries |
---|
| 7 | Summary: The tdb library |
---|
| 8 | License: LGPLv3+ |
---|
| 9 | URL: http://tdb.samba.org/ |
---|
| 10 | Source: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz |
---|
| 11 | BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
---|
| 12 | |
---|
| 13 | BuildRequires: autoconf |
---|
| 14 | BuildRequires: libxslt |
---|
| 15 | BuildRequires: docbook-style-xsl |
---|
| 16 | BuildRequires: python-devel |
---|
| 17 | |
---|
| 18 | Vendor: Project Vine |
---|
| 19 | Distribution: Vine Linux |
---|
| 20 | Packager: tomop |
---|
| 21 | |
---|
| 22 | # Patches |
---|
[6101] | 23 | Patch0001: 0001-Install-python-bindings-in-the-arch-specific-location.patch |
---|
[3095] | 24 | |
---|
| 25 | %description |
---|
| 26 | A library that implements a trivial database. |
---|
| 27 | |
---|
| 28 | %package devel |
---|
| 29 | Group: Development/Libraries |
---|
| 30 | Summary: Header files need to link the Tdb library |
---|
| 31 | Requires: libtdb = %{version}-%{release} |
---|
| 32 | Requires: pkgconfig |
---|
| 33 | |
---|
| 34 | %description devel |
---|
| 35 | Header files needed to develop programs that link against the Tdb library. |
---|
| 36 | |
---|
| 37 | %package -n tdb-tools |
---|
| 38 | Group: Development/Libraries |
---|
| 39 | Summary: Developer tools for the Tdb library |
---|
| 40 | Requires: libtdb = %{version}-%{release} |
---|
| 41 | |
---|
| 42 | %description -n tdb-tools |
---|
| 43 | Tools to manage Tdb files |
---|
| 44 | |
---|
| 45 | %package -n python-tdb |
---|
| 46 | Group: Development/Libraries |
---|
| 47 | Summary: Python bindings for the Tdb library |
---|
| 48 | Requires: libtdb = %{version}-%{release} |
---|
| 49 | |
---|
| 50 | %description -n python-tdb |
---|
| 51 | Python bindings for libtdb |
---|
| 52 | |
---|
| 53 | %if %build_compat32 |
---|
| 54 | |
---|
| 55 | %package -n compat32-libtdb |
---|
| 56 | Summary: The TDB library |
---|
| 57 | Group: System Environment/Libraries |
---|
| 58 | |
---|
| 59 | %description -n compat32-libtdb |
---|
| 60 | A library that implements a trivial database. |
---|
| 61 | |
---|
| 62 | %endif |
---|
| 63 | |
---|
| 64 | %prep |
---|
| 65 | %setup -q -n tdb-%{version} |
---|
| 66 | %patch0001 -p1 |
---|
| 67 | |
---|
| 68 | %build |
---|
[6101] | 69 | #./autogen.sh |
---|
[3095] | 70 | %configure --disable-rpath --bundled-libraries=NONE |
---|
| 71 | make %{?_smp_mflags} V=1 |
---|
| 72 | |
---|
| 73 | %install |
---|
| 74 | rm -rf $RPM_BUILD_ROOT |
---|
| 75 | |
---|
| 76 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 77 | |
---|
| 78 | # Shared libraries need to be marked executable for |
---|
| 79 | # rpmbuild to strip them and include them in debuginfo |
---|
| 80 | find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \; |
---|
| 81 | |
---|
| 82 | rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a |
---|
| 83 | |
---|
| 84 | %clean |
---|
| 85 | rm -rf $RPM_BUILD_ROOT |
---|
| 86 | |
---|
| 87 | %files |
---|
| 88 | %defattr(-,root,root,-) |
---|
| 89 | %{_libdir}/libtdb.so.* |
---|
| 90 | |
---|
| 91 | %files devel |
---|
| 92 | %defattr(-,root,root) |
---|
| 93 | %{_includedir}/tdb.h |
---|
| 94 | %{_libdir}/libtdb.so |
---|
| 95 | %{_libdir}/pkgconfig/tdb.pc |
---|
| 96 | |
---|
| 97 | %files -n tdb-tools |
---|
| 98 | %defattr(-,root,root,-) |
---|
| 99 | %{_bindir}/tdbbackup |
---|
| 100 | %{_bindir}/tdbdump |
---|
| 101 | %{_bindir}/tdbtool |
---|
| 102 | %{_bindir}/tdbrestore |
---|
| 103 | %{_mandir}/man8/tdbbackup.8* |
---|
| 104 | %{_mandir}/man8/tdbdump.8* |
---|
| 105 | %{_mandir}/man8/tdbtool.8* |
---|
| 106 | %{_mandir}/man8/tdbrestore.8* |
---|
| 107 | |
---|
| 108 | %files -n python-tdb |
---|
| 109 | %defattr(-,root,root,-) |
---|
| 110 | %{python_sitearch}/tdb.so |
---|
| 111 | |
---|
| 112 | %if %build_compat32 |
---|
| 113 | |
---|
| 114 | %files -n compat32-libtdb |
---|
| 115 | %attr(755,root,root) %{_libdir}/libtdb.so.* |
---|
| 116 | |
---|
| 117 | %endif |
---|
| 118 | |
---|
| 119 | %post -p /sbin/ldconfig |
---|
| 120 | |
---|
| 121 | %postun -p /sbin/ldconfig |
---|
| 122 | |
---|
| 123 | %post -n python-tdb -p /sbin/ldconfig |
---|
| 124 | |
---|
| 125 | %postun -n python-tdb -p /sbin/ldconfig |
---|
| 126 | |
---|
| 127 | %if %build_compat32 |
---|
| 128 | |
---|
| 129 | %post -n compat32-libtdb -p /sbin/ldconfig |
---|
| 130 | %postun -n compat32-libtdb -p /sbin/ldconfig |
---|
| 131 | |
---|
| 132 | %endif |
---|
| 133 | |
---|
| 134 | %changelog |
---|
[7885] | 135 | * Tue Oct 08 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.12-1 |
---|
| 136 | - new upstream release. |
---|
| 137 | |
---|
[7254] | 138 | * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.11-1 |
---|
| 139 | - new upstream release. |
---|
| 140 | |
---|
[6101] | 141 | * Sat Apr 14 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.10-1 |
---|
| 142 | - new upstream release. |
---|
| 143 | - updated Patch0001. |
---|
| 144 | |
---|
[5701] | 145 | * Thu Feb 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.9-11 |
---|
| 146 | - rebuild with python-2.7.2 |
---|
| 147 | |
---|
[3095] | 148 | * Thu Mar 24 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.9-10 |
---|
| 149 | - initial build for Vine Linux. |
---|
| 150 | |
---|
| 151 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.9-9 |
---|
| 152 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 153 | |
---|
| 154 | * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-8 |
---|
| 155 | - Actually fix the verbosity |
---|
| 156 | |
---|
| 157 | * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-7 |
---|
| 158 | - Let rpmbuild strip binaries, make build more verbose. |
---|
| 159 | - Original patch by Ville Skyttä <ville.skytta@iki.fi> |
---|
| 160 | |
---|
| 161 | * Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-6 |
---|
| 162 | - Install python bindings into the correct location |
---|
| 163 | |
---|
| 164 | * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-5 |
---|
| 165 | - Run ldconfig on python-tdb |
---|
| 166 | |
---|
| 167 | * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-4 |
---|
| 168 | - Do not delete a necessary file during %%install |
---|
| 169 | |
---|
| 170 | * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-3 |
---|
| 171 | - Bump release to rebuild with the correct sources in place |
---|
| 172 | |
---|
| 173 | * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-2 |
---|
| 174 | - Bump build to rebuild with sources in place |
---|
| 175 | |
---|
| 176 | * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-1 |
---|
| 177 | - New upstream bugfix release |
---|
| 178 | - Adds a new tdbrestore utility |
---|
| 179 | - Convert to new WAF build-system |
---|
| 180 | - Add python bindings in new python-tdb subpackage |
---|
| 181 | |
---|
| 182 | * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-3 |
---|
| 183 | - add missing build require |
---|
| 184 | |
---|
| 185 | * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-2 |
---|
| 186 | - Fix spec file |
---|
| 187 | - Package manpages too |
---|
| 188 | |
---|
| 189 | * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-1 |
---|
| 190 | - New upstream bugfix release |
---|
| 191 | |
---|
| 192 | * Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 1.2.0-1 |
---|
| 193 | - New upstream release |
---|
| 194 | |
---|
| 195 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2 |
---|
| 196 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 197 | |
---|
| 198 | * Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-1 |
---|
| 199 | - Original tarballs had a screw-up, rebuild with new fixed tarballs from |
---|
| 200 | upstream. |
---|
| 201 | |
---|
| 202 | * Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-0 |
---|
| 203 | - New upstream release |
---|
| 204 | |
---|
| 205 | * Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.1.3-15 |
---|
| 206 | - First public independent release from upstream |
---|