[12079] | 1 | %bcond_with python2 |
---|
| 2 | |
---|
[3095] | 3 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 4 | |
---|
| 5 | Name: libtdb |
---|
[8998] | 6 | Summary: The tdb library |
---|
| 7 | Summary(ja): TDB ライブラリ |
---|
[12079] | 8 | Version: 1.3.18 |
---|
[9136] | 9 | Release: 1%{?_dist_release} |
---|
[8998] | 10 | |
---|
[3095] | 11 | Group: System Environment/Libraries |
---|
| 12 | License: LGPLv3+ |
---|
| 13 | URL: http://tdb.samba.org/ |
---|
| 14 | Source: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz |
---|
[8998] | 15 | |
---|
[3095] | 16 | BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
---|
| 17 | BuildRequires: autoconf |
---|
| 18 | BuildRequires: libxslt |
---|
| 19 | BuildRequires: docbook-style-xsl |
---|
[12079] | 20 | %if %{with python2} |
---|
[11582] | 21 | BuildRequires: python-devel python-rpm-macros |
---|
[12079] | 22 | %endif |
---|
[11582] | 23 | BuildRequires: python3-devel python3-rpm-macros |
---|
[12079] | 24 | BuildRequires: libtirpc-devel |
---|
[3095] | 25 | |
---|
| 26 | Vendor: Project Vine |
---|
| 27 | Distribution: Vine Linux |
---|
| 28 | Packager: tomop |
---|
| 29 | |
---|
| 30 | %description |
---|
| 31 | A library that implements a trivial database. |
---|
| 32 | |
---|
| 33 | %package devel |
---|
[8998] | 34 | Summary: Header files need to link the Tdb library |
---|
[3095] | 35 | Group: Development/Libraries |
---|
| 36 | Requires: libtdb = %{version}-%{release} |
---|
| 37 | Requires: pkgconfig |
---|
| 38 | |
---|
| 39 | %description devel |
---|
| 40 | Header files needed to develop programs that link against the Tdb library. |
---|
| 41 | |
---|
| 42 | %package -n tdb-tools |
---|
[8998] | 43 | Summary: Tools to manipulate tdb files |
---|
| 44 | Summary(ja): TDB ファイルを処理するためのツール集 |
---|
| 45 | Group: Applications/System |
---|
[3095] | 46 | Requires: libtdb = %{version}-%{release} |
---|
| 47 | |
---|
| 48 | %description -n tdb-tools |
---|
| 49 | Tools to manage Tdb files |
---|
| 50 | |
---|
[12079] | 51 | %if %{with python2} |
---|
[3095] | 52 | %package -n python-tdb |
---|
| 53 | Summary: Python bindings for the Tdb library |
---|
[8998] | 54 | Summary(ja): TDB ライブラリの python バインディング |
---|
| 55 | Group: System Environment/Libraries |
---|
[3095] | 56 | Requires: libtdb = %{version}-%{release} |
---|
| 57 | |
---|
| 58 | %description -n python-tdb |
---|
| 59 | Python bindings for libtdb |
---|
| 60 | |
---|
[12079] | 61 | %endif |
---|
| 62 | |
---|
[11582] | 63 | %package -n python3-tdb |
---|
| 64 | Summary: Python3 bindings for the Tdb library |
---|
| 65 | Requires: libtdb = %{version}-%{release} |
---|
| 66 | %{?python_provide:%python_provide python3-tdb} |
---|
[12079] | 67 | %if %{without python2} |
---|
| 68 | Obsoletes: python-tdb < %{version} |
---|
| 69 | %endif |
---|
[3095] | 70 | |
---|
[11582] | 71 | %description -n python3-tdb |
---|
| 72 | Python3 bindings for libtdb |
---|
| 73 | |
---|
| 74 | %if %{build_compat32} |
---|
| 75 | |
---|
[3095] | 76 | %package -n compat32-libtdb |
---|
| 77 | Summary: The TDB library |
---|
[8998] | 78 | Summary(ja): TDB ライブラリ |
---|
[3095] | 79 | Group: System Environment/Libraries |
---|
[8998] | 80 | Requires: libtdb = %{version}-%{release} |
---|
[3095] | 81 | |
---|
| 82 | %description -n compat32-libtdb |
---|
| 83 | A library that implements a trivial database. |
---|
| 84 | |
---|
| 85 | %endif |
---|
| 86 | |
---|
| 87 | %prep |
---|
| 88 | %setup -q -n tdb-%{version} |
---|
| 89 | |
---|
| 90 | %build |
---|
[6101] | 91 | #./autogen.sh |
---|
[12079] | 92 | %if %{without python2} |
---|
| 93 | export PYTHON=%{__python3} |
---|
| 94 | %endif |
---|
[11582] | 95 | %configure --disable-rpath \ |
---|
| 96 | --bundled-libraries=NONE \ |
---|
| 97 | --builtin-libraries=replace \ |
---|
[12079] | 98 | %if %{with python2} |
---|
[11582] | 99 | --extra-python=%{__python3} |
---|
[12079] | 100 | %endif |
---|
[11582] | 101 | |
---|
[3095] | 102 | make %{?_smp_mflags} V=1 |
---|
| 103 | |
---|
| 104 | %install |
---|
| 105 | rm -rf $RPM_BUILD_ROOT |
---|
| 106 | |
---|
| 107 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 108 | |
---|
| 109 | # Shared libraries need to be marked executable for |
---|
| 110 | # rpmbuild to strip them and include them in debuginfo |
---|
| 111 | find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \; |
---|
| 112 | |
---|
| 113 | rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a |
---|
| 114 | |
---|
| 115 | %clean |
---|
| 116 | rm -rf $RPM_BUILD_ROOT |
---|
| 117 | |
---|
| 118 | %files |
---|
| 119 | %defattr(-,root,root,-) |
---|
| 120 | %{_libdir}/libtdb.so.* |
---|
| 121 | |
---|
| 122 | %files devel |
---|
| 123 | %defattr(-,root,root) |
---|
| 124 | %{_includedir}/tdb.h |
---|
| 125 | %{_libdir}/libtdb.so |
---|
| 126 | %{_libdir}/pkgconfig/tdb.pc |
---|
| 127 | |
---|
| 128 | %files -n tdb-tools |
---|
| 129 | %defattr(-,root,root,-) |
---|
| 130 | %{_bindir}/tdbbackup |
---|
| 131 | %{_bindir}/tdbdump |
---|
| 132 | %{_bindir}/tdbtool |
---|
| 133 | %{_bindir}/tdbrestore |
---|
| 134 | %{_mandir}/man8/tdbbackup.8* |
---|
| 135 | %{_mandir}/man8/tdbdump.8* |
---|
| 136 | %{_mandir}/man8/tdbtool.8* |
---|
| 137 | %{_mandir}/man8/tdbrestore.8* |
---|
| 138 | |
---|
[12079] | 139 | %if %{with python2} |
---|
[3095] | 140 | %files -n python-tdb |
---|
| 141 | %defattr(-,root,root,-) |
---|
[9673] | 142 | %{python_sitearch}/* |
---|
[12079] | 143 | %endif |
---|
[3095] | 144 | |
---|
[11582] | 145 | %files -n python3-tdb |
---|
| 146 | %{python3_sitearch}/* |
---|
[3095] | 147 | |
---|
[11582] | 148 | %if %{build_compat32} |
---|
| 149 | |
---|
[3095] | 150 | %files -n compat32-libtdb |
---|
| 151 | %attr(755,root,root) %{_libdir}/libtdb.so.* |
---|
| 152 | |
---|
| 153 | %endif |
---|
| 154 | |
---|
| 155 | %post -p /sbin/ldconfig |
---|
| 156 | |
---|
| 157 | %postun -p /sbin/ldconfig |
---|
| 158 | |
---|
[12079] | 159 | %if %{with python2} |
---|
[3095] | 160 | %post -n python-tdb -p /sbin/ldconfig |
---|
| 161 | |
---|
| 162 | %postun -n python-tdb -p /sbin/ldconfig |
---|
| 163 | |
---|
[12079] | 164 | %endif |
---|
| 165 | |
---|
[11959] | 166 | %post -n python3-tdb -p /sbin/ldconfig |
---|
| 167 | |
---|
| 168 | %postun -n python3-tdb -p /sbin/ldconfig |
---|
| 169 | |
---|
[3095] | 170 | %if %build_compat32 |
---|
| 171 | |
---|
| 172 | %post -n compat32-libtdb -p /sbin/ldconfig |
---|
| 173 | %postun -n compat32-libtdb -p /sbin/ldconfig |
---|
| 174 | |
---|
| 175 | %endif |
---|
| 176 | |
---|
| 177 | %changelog |
---|
[12079] | 178 | * Sat May 11 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.18-1 |
---|
| 179 | - new upstream release. |
---|
| 180 | - disabled python2. |
---|
| 181 | - added BR:libtirpc-devel. |
---|
| 182 | |
---|
[11959] | 183 | * Fri Nov 30 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.16-1 |
---|
| 184 | - new upstream release. |
---|
| 185 | |
---|
[11582] | 186 | * Tue Feb 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.15-1 |
---|
| 187 | - new upstream release. |
---|
| 188 | - dropped Patch1. |
---|
| 189 | - enabled python3 modules. |
---|
| 190 | |
---|
[11157] | 191 | * Sat Jul 15 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.14-1 |
---|
| 192 | - new upstream release. |
---|
| 193 | |
---|
[11059] | 194 | * Mon May 1 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.13-1 |
---|
| 195 | - new upstream release. |
---|
| 196 | |
---|
[10840] | 197 | * Sun Dec 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.12-1 |
---|
| 198 | - new upstream release. |
---|
| 199 | |
---|
[10178] | 200 | * Wed Apr 13 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.9-1 |
---|
| 201 | - new upstream release. |
---|
| 202 | |
---|
[9846] | 203 | * Wed Dec 2 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.8-1 |
---|
| 204 | - new upstream release. |
---|
| 205 | |
---|
[9673] | 206 | * Fri Jul 24 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.7-1 |
---|
| 207 | - new upstream release. |
---|
| 208 | |
---|
[9599] | 209 | * Sat Jun 13 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.6-1 |
---|
| 210 | - new upstream release. |
---|
| 211 | |
---|
[9254] | 212 | * Mon Jan 12 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.4-1 |
---|
| 213 | - new upstream release. |
---|
| 214 | |
---|
[9599] | 215 | * Wed Dec 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.3-1 |
---|
[9136] | 216 | - new upstream release. |
---|
| 217 | |
---|
[8998] | 218 | * Sat Oct 4 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.3.0-2 |
---|
| 219 | - moved python-tdb to System Environment/Libraries Group |
---|
| 220 | - moved tdb-tool to Applications/System Group |
---|
| 221 | |
---|
[8910] | 222 | * Tue Aug 19 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.0-1 |
---|
| 223 | - new upstream release. |
---|
| 224 | |
---|
[8130] | 225 | * Wed Jan 08 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.12-2 |
---|
| 226 | - rebuilt with current environment. |
---|
| 227 | |
---|
[7885] | 228 | * Tue Oct 08 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.12-1 |
---|
| 229 | - new upstream release. |
---|
| 230 | |
---|
[7254] | 231 | * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.11-1 |
---|
| 232 | - new upstream release. |
---|
| 233 | |
---|
[6101] | 234 | * Sat Apr 14 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.10-1 |
---|
| 235 | - new upstream release. |
---|
| 236 | - updated Patch0001. |
---|
| 237 | |
---|
[5701] | 238 | * Thu Feb 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.9-11 |
---|
| 239 | - rebuild with python-2.7.2 |
---|
| 240 | |
---|
[3095] | 241 | * Thu Mar 24 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.9-10 |
---|
| 242 | - initial build for Vine Linux. |
---|
| 243 | |
---|
| 244 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.9-9 |
---|
| 245 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 246 | |
---|
| 247 | * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-8 |
---|
| 248 | - Actually fix the verbosity |
---|
| 249 | |
---|
| 250 | * Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-7 |
---|
| 251 | - Let rpmbuild strip binaries, make build more verbose. |
---|
| 252 | - Original patch by Ville Skyttä <ville.skytta@iki.fi> |
---|
| 253 | |
---|
| 254 | * Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-6 |
---|
| 255 | - Install python bindings into the correct location |
---|
| 256 | |
---|
| 257 | * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-5 |
---|
| 258 | - Run ldconfig on python-tdb |
---|
| 259 | |
---|
| 260 | * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-4 |
---|
| 261 | - Do not delete a necessary file during %%install |
---|
| 262 | |
---|
| 263 | * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-3 |
---|
| 264 | - Bump release to rebuild with the correct sources in place |
---|
| 265 | |
---|
| 266 | * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-2 |
---|
| 267 | - Bump build to rebuild with sources in place |
---|
| 268 | |
---|
| 269 | * Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-1 |
---|
| 270 | - New upstream bugfix release |
---|
| 271 | - Adds a new tdbrestore utility |
---|
| 272 | - Convert to new WAF build-system |
---|
| 273 | - Add python bindings in new python-tdb subpackage |
---|
| 274 | |
---|
| 275 | * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-3 |
---|
| 276 | - add missing build require |
---|
| 277 | |
---|
| 278 | * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-2 |
---|
| 279 | - Fix spec file |
---|
| 280 | - Package manpages too |
---|
| 281 | |
---|
| 282 | * Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-1 |
---|
| 283 | - New upstream bugfix release |
---|
| 284 | |
---|
| 285 | * Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 1.2.0-1 |
---|
| 286 | - New upstream release |
---|
| 287 | |
---|
| 288 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2 |
---|
| 289 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 290 | |
---|
| 291 | * Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-1 |
---|
| 292 | - Original tarballs had a screw-up, rebuild with new fixed tarballs from |
---|
| 293 | upstream. |
---|
| 294 | |
---|
| 295 | * Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-0 |
---|
| 296 | - New upstream release |
---|
| 297 | |
---|
| 298 | * Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.1.3-15 |
---|
| 299 | - First public independent release from upstream |
---|