add support of sqlite and mariadb

This commit is contained in:
duyiwei 2022-03-05 08:24:59 +00:00
parent ac5da2611a
commit 8419195095

View File

@ -1,13 +1,14 @@
Name: redland
Version: 1.0.17
Release: 17
Release: 18
Summary: RDF iprovids support for the Resource Description Framework.
License: LGPLv2+ or ASL 2.0
URL: http://librdf.org/
Source0: http://download.librdf.org/source/%{name}-%{version}.tar.gz
BuildRequires: curl-devel gcc-c++ libdb-devel libtool-ltdl-devel libxml2-devel >= 2.4.0 mysql-devel
BuildRequires: perl-interpreter postgresql-devel raptor2-devel rasqal-devel >= 0.9.26 sqlite-devel
BuildRequires: perl-interpreter postgresql-devel raptor2-devel rasqal-devel >= 0.9.26
BuildRequires: mariadb-connector-c-devel sqlite-devel libpq-devel
Obsoletes: redland-virtuoso < 1.0.17-8
@ -45,8 +46,10 @@ sed -i -e 's|"/lib /usr/lib|"%{_lib} %{_libdir}|' configure
%build
%define distrooptions --with-sqlite --with-mysql --with-postgresql
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
%configure --enable-release --disable-static --with-virtuoso=no
%configure --enable-release --disable-static --with-virtuoso=no %{distrooptions}
%make_build
@ -109,5 +112,8 @@ make check
%changelog
* Sat Mar 5 2022 duyiwei <duyiwei@kylinos.cn> - 1.0.17-18
- add support of sqlite and mariadb
* Sun Dec 1 2019 jiaxiya <jiaxiyajiaxiya@168.com> - 1.0.17-17
- Package init