bc9fe3f
# NOTE
bc9fe3f
# To rebuild locally using mock, make sure SELinux is not set to enforcing;
bc9fe3f
# as root:
bc9fe3f
# setenforce 0
bc9fe3f
#
bc9fe3f
# see https://bugzilla.redhat.com/show_bug.cgi?id=857709
bc9fe3f
#
bc9fe3f
Name:           dataquay
bc9fe3f
Version:        0.9
8d03be5
Release:        9%{?dist}
bc9fe3f
Summary:        Simple RDF for C++ and Qt applications
bc9fe3f
bc9fe3f
# README says BSD but this is more similar to MIT text
bc9fe3f
License:        MIT
bc9fe3f
URL:            http://breakfastquay.com/dataquay/
bc9fe3f
Source0:        http://code.breakfastquay.com/attachments/download/30/dataquay-0.9.tar.bz2
bc9fe3f
bc9fe3f
BuildRequires:  qt-devel
bc9fe3f
BuildRequires:  redland-devel
bc9fe3f
BuildRequires:  Xvfb xauth
bc9fe3f
#Requires:       
bc9fe3f
bc9fe3f
%description
bc9fe3f
Dataquay is a free open source library that provides a friendly C++
bc9fe3f
interface to an RDF datastore using Qt4 classes and
bc9fe3f
containers. Supported datastores are the popular and feature-complete
bc9fe3f
Redland and the lightweight Sord.
bc9fe3f
bc9fe3f
Dataquay is simple to use and easy to integrate. It is principally
bc9fe3f
aimed at Qt-based applications that would like to use an RDF datastore
bc9fe3f
as backing for in-memory project data, to avoid having to invent file
bc9fe3f
formats or XML schemas and to make it easy to augment the data with
bc9fe3f
descriptive metadata pulled in from external sources. It's also useful
bc9fe3f
for applications with ad-hoc needs for metadata management using RDF
bc9fe3f
sources.
bc9fe3f
bc9fe3f
Dataquay does not use a separate database, instead using in-memory
bc9fe3f
storage with separate file import and export facilities. Although it
bc9fe3f
offers a choice of datastore implementations, the choice is made at
bc9fe3f
compile time: there is no runtime module system to take into account
bc9fe3f
when deploying your application.
bc9fe3f
bc9fe3f
The Fedora package is configured to use Redland, as recommended by the
bc9fe3f
developers for general use.
bc9fe3f
bc9fe3f
bc9fe3f
%package        devel
bc9fe3f
Summary:        Development files for %{name}
bc9fe3f
Requires:       %{name}%{?_isa} = %{version}-%{release}
c4790cb
Requires:       redland-devel%{?_isa}
bc9fe3f
bc9fe3f
%description    devel
bc9fe3f
The %{name}-devel package contains libraries and header files for
bc9fe3f
developing applications that use %{name}.
bc9fe3f
bc9fe3f
bc9fe3f
%prep
bc9fe3f
%setup -q
bc9fe3f
# patch for multilib
bc9fe3f
%{__sed} -i.multilib 's|$${PREFIX}/lib|$${PREFIX}/%{_lib}|' lib.pro
bc9fe3f
%{__sed} -i.multilib 's|${exec_prefix}/lib|${exec_prefix}/%{_lib}|' \
bc9fe3f
         deploy/dataquay.pc.in
bc9fe3f
bc9fe3f
bc9fe3f
%build
bc9fe3f
qmake-qt4 dataquay.pro PREFIX=%{_prefix}
bc9fe3f
xvfb-run -a -w 1 make %{?_smp_mflags}
bc9fe3f
bc9fe3f
bc9fe3f
%install
bc9fe3f
make install INSTALL_ROOT=%{buildroot}
bc9fe3f
# actually copy .pc file
bc9fe3f
%{__cp} -p deploy/dataquay.pc %{buildroot}%{_libdir}/pkgconfig/
bc9fe3f
find %{buildroot} -name '*.la' -exec rm -f {} ';'
bc9fe3f
bc9fe3f
bc9fe3f
%post -p /sbin/ldconfig
bc9fe3f
bc9fe3f
%postun -p /sbin/ldconfig
bc9fe3f
bc9fe3f
bc9fe3f
%files
bc9fe3f
%doc COPYING CHANGELOG README.txt
bc9fe3f
%{_libdir}/*.so.*
bc9fe3f
bc9fe3f
%files devel
bc9fe3f
%doc examples
bc9fe3f
%{_includedir}/*
bc9fe3f
%{_libdir}/*.so
bc9fe3f
%{_libdir}/pkgconfig/%{name}.pc
bc9fe3f
bc9fe3f
bc9fe3f
%changelog
8d03be5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-9
8d03be5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8d03be5
f9ee1d5
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.9-8
f9ee1d5
- Rebuilt for GCC 5 C++11 ABI change
f9ee1d5
228c802
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-7
228c802
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
228c802
be89b77
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-6
be89b77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
be89b77
4a6b56e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-5
4a6b56e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4a6b56e
4b3131f
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-4
4b3131f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4b3131f
c4790cb
* Fri Nov  2 2012 Michel Salim <salimma@fedoraproject.org> - 0.9-3
c4790cb
- Make -devel subpackage pull in pkgconfig(redland) as well
c4790cb
bc9fe3f
* Tue Oct  9 2012 Michel Salim <salimma@fedoraproject.org> - 0.9-2
bc9fe3f
- Add note with workaround for building in mock for bug #857709
bc9fe3f
bc9fe3f
* Sun Sep 16 2012 Michel Salim <salimma@fedoraproject.org> - 0.9-1
bc9fe3f
- Initial package
bc9fe3f