# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/re2c gcc-c++
# END SourceDeps(oneline)
Group: System/Libraries
%add_optflags %optflags_shared
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: libzdb
Version: 3.1
Release: alt1_8.1
Summary: Small, easy to use Database Connection Pool Library
License: GPLv3+ and MIT
URL: http://www.tildeslash.com/libzdb/
Source0: http://www.tildeslash.com/%{name}/dist/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: flex
BuildRequires: libmariadb-devel
BuildRequires: libssl-devel
BuildRequires: postgresql-devel
BuildRequires: libsqlite3-devel >= 3.6.12
Source44: import.info
%description
The Zild C Database Library implements a small, fast, and easy to use database
API with thread-safe connection pooling. The library can connect transparently
to multiple database systems, has zero configuration and connections are
specified via a standard URL scheme.
%package devel
Group: Development/C
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
This package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
# Errant file
rm -f doc/api-docs/._*
%build
%configure --disable-static --enable-protected --enable-sqliteunlock
%make_build
%install
make install DESTDIR=%{buildroot}
%files
%doc AUTHORS CHANGES COPYING README
%{_libdir}/%{name}.so.*
%files devel
%{_includedir}/zdb/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/zdb.pc
%doc doc/api-docs
%changelog
* Thu Apr 04 2019 Alexei Takaseev <taf@altlinux.org> 3.1-alt1_8.1
- Change BR libpq5.11-devel postgresql11-devel to postgresql-devel
* Fri Mar 08 2019 Igor Vlasenko <viy@altlinux.ru> 3.1-alt1_8
- fixed build
* Sat Nov 25 2017 Igor Vlasenko <viy@altlinux.ru> 3.1-alt1_5
- new version
* Mon Feb 15 2016 Igor Vlasenko <viy@altlinux.ru> 3.0-alt1_5
- update to new release by fcimport
* Sun Sep 20 2015 Igor Vlasenko <viy@altlinux.ru> 3.0-alt1_4
- update to new release by fcimport
* Wed Aug 27 2014 Igor Vlasenko <viy@altlinux.ru> 3.0-alt1_3
- update to new release by fcimport
* Tue Jul 01 2014 Igor Vlasenko <viy@altlinux.ru> 3.0-alt1_2
- update to new release by fcimport
* Wed Mar 19 2014 Igor Vlasenko <viy@altlinux.ru> 3.0-alt1_1
- update to new release by fcimport
* Mon Aug 12 2013 Igor Vlasenko <viy@altlinux.ru> 2.8.1-alt3_5
- update to new release by fcimport
* Fri Feb 22 2013 Igor Vlasenko <viy@altlinux.ru> 2.8.1-alt3_4
- update to new release by fcimport
* Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 2.8.1-alt3_3
- update to new release by fcimport
* Sat Jun 09 2012 Igor Vlasenko <viy@altlinux.ru> 2.8.1-alt3_2
- fixed build
* Wed Feb 01 2012 Igor Vlasenko <viy@altlinux.ru> 2.8.1-alt2_2
- update to new release by fcimport
* Fri Dec 23 2011 Igor Vlasenko <viy@altlinux.ru> 2.8.1-alt2_1
- spec cleanup thanks to ldv@
* Sun Dec 18 2011 Igor Vlasenko <viy@altlinux.ru> 2.8.1-alt1_1
- initial import by fcimport