Blob Blame History Raw
Name:           dataquay
Version:        0.9
Release:        12%{?dist}
Summary:        Simple RDF for C++ and Qt applications

# README says BSD but this is more similar to MIT text
License:        MIT
# codebase not C++14 standard-compliant
Patch0:         %{name}-0.9-use_gnupp98.patch

BuildRequires:  qt-devel
BuildRequires:  redland-devel
BuildRequires:  Xvfb xauth

Dataquay is a free open source library that provides a friendly C++
interface to an RDF datastore using Qt4 classes and
containers. Supported datastores are the popular and feature-complete
Redland and the lightweight Sord.

Dataquay is simple to use and easy to integrate. It is principally
aimed at Qt-based applications that would like to use an RDF datastore
as backing for in-memory project data, to avoid having to invent file
formats or XML schemas and to make it easy to augment the data with
descriptive metadata pulled in from external sources. It's also useful
for applications with ad-hoc needs for metadata management using RDF

Dataquay does not use a separate database, instead using in-memory
storage with separate file import and export facilities. Although it
offers a choice of datastore implementations, the choice is made at
compile time: there is no runtime module system to take into account
when deploying your application.

The Fedora package is configured to use Redland, as recommended by the
developers for general use.

%package        devel
Summary:        Development files for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       redland-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%autosetup -p1
# patch for multilib
%{__sed} -i.multilib 's|$${PREFIX}/lib|$${PREFIX}/%{_lib}|'
%{__sed} -i.multilib 's|${exec_prefix}/lib|${exec_prefix}/%{_lib}|' \

%{qmake_qt4} PREFIX=%{_prefix}
xvfb-run -a -w 1 make %{?_smp_mflags}

make install INSTALL_ROOT=%{buildroot}
# actually copy .pc file
%{__cp} -p deploy/dataquay.pc %{buildroot}%{_libdir}/pkgconfig/
find %{buildroot} -name '*.la' -exec rm -f {} ';'

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%license COPYING

%files devel
%doc examples

* Mon Jul  4 2016 Michel Alexandre Salim <> - 0.9-12
- Explicitly use GNU++98 standard
- Use license macro

* Wed Feb 03 2016 Fedora Release Engineering <> - 0.9-11
- Rebuilt for

* Tue Feb 02 2016 Rex Dieter <> - 0.9-10
- use %%qmake_qt4 macro to ensure proper build flags

* Wed Jun 17 2015 Fedora Release Engineering <> - 0.9-9
- Rebuilt for

* Sat May 02 2015 Kalev Lember <> - 0.9-8
- Rebuilt for GCC 5 C++11 ABI change

* Sat Aug 16 2014 Fedora Release Engineering <> - 0.9-7
- Rebuilt for

* Sat Jun 07 2014 Fedora Release Engineering <> - 0.9-6
- Rebuilt for

* Sat Aug 03 2013 Fedora Release Engineering <> - 0.9-5
- Rebuilt for

* Wed Feb 13 2013 Fedora Release Engineering <> - 0.9-4
- Rebuilt for

* Fri Nov  2 2012 Michel Salim <> - 0.9-3
- Make -devel subpackage pull in pkgconfig(redland) as well

* Tue Oct  9 2012 Michel Salim <> - 0.9-2
- Add note with workaround for building in mock for bug #857709

* Sun Sep 16 2012 Michel Salim <> - 0.9-1
- Initial package