SHA256
8
0
forked from pool/dataquay

2 Commits

Author SHA256 Message Date
8bb3cf9018 Accepting request 1303393 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1303393
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dataquay?expand=0&rev=4
2025-09-09 18:35:20 +00:00
acb1beb7c1 - Update to version 0.9.5
* Update to support Qt6
  * Add importString methods
- Refresh dataquay-redland.patch, dataquay-sharedlib.patch
  and dataquay-includedir.patch
- Switch to qt6

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/dataquay?expand=0&rev=8
2025-09-09 17:48:10 +00:00
7 changed files with 65 additions and 37 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:79c00235b08b90ecfc7a9405282d25d15df4bcf48a71d6557a6040afdd55c864
size 92757

3
dataquay-0.9.5.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:deeed4a9ea87f62437990ddfb3c7c10e736010789fef81c04d93b371b0d2bb14
size 94222

View File

@@ -1,10 +1,26 @@
Index: dataquay-0.9.1/deploy/dataquay.pc.in Index: dataquay-0.9.5/deploy/dataquay.pc.in
=================================================================== ===================================================================
--- dataquay-0.9.1.orig/deploy/dataquay.pc.in --- dataquay-0.9.5.orig/deploy/dataquay.pc.in
+++ dataquay-0.9.1/deploy/dataquay.pc.in +++ dataquay-0.9.5/deploy/dataquay.pc.in
@@ -7,4 +7,4 @@ Name: dataquay @@ -5,6 +5,6 @@ includedir=${prefix}/include
Name: dataquay
Version: 0.9.1 Version: 0.9.1
Description: C++ API for an RDF data store using Qt4 classes and containers -Description: C++ API for an RDF data store using Qt4 classes and containers
+Description: C++ API for an RDF data store using Qt5/Qt6 classes and containers
Libs: -L${libdir} -ldataquay %EXTRALIBS% Libs: -L${libdir} -ldataquay %EXTRALIBS%
-Cflags: -I${includedir} -Cflags: -I${includedir}
+Cflags: -I${includedir} -I${includedir}/dataquay +Cflags: -I${includedir} -I${includedir}/dataquay
Index: dataquay-0.9.5/lib.pro
===================================================================
--- dataquay-0.9.5.orig/lib.pro
+++ dataquay-0.9.5/lib.pro
@@ -77,7 +77,7 @@ linux* {
includes.files = dataquay
pkgconfig.path = $${LIBDIR}/pkgconfig
pkgconfig.files = deploy/dataquay.pc
- pkgconfig.extra = sed -e "'"s.%PREFIX%.$${PREFIX}."'" -e "'"s.%LIBDIR%.$${LIBDIR}."'" -e "'"s.%EXTRALIBS%.$${EXTRALIBS}."'" deploy/dataquay.pc.in > deploy/dataquay.pc
+ pkgconfig.extra = sed -e "'"s.%PREFIX%.$${PREFIX}."'" -e "'"s.%LIBDIR%.$${LIBDIR}."'" -e "'"s.%EXTRALIBS%.$${EXTRALIBS}."'" -e "'"s,Version:.*,Version: $${VERSION},"'" deploy/dataquay.pc.in > deploy/dataquay.pc
INSTALLS += target includes pkgconfig
}

View File

@@ -1,13 +1,15 @@
Index: dataquay-0.9.1/config.pri Index: dataquay-0.9.5/config.pri
=================================================================== ===================================================================
--- dataquay-0.9.1.orig/config.pri --- dataquay-0.9.5.orig/config.pri
+++ dataquay-0.9.1/config.pri +++ dataquay-0.9.5/config.pri
@@ -3,7 +3,7 @@ CONFIG += release @@ -3,8 +3,8 @@ CONFIG += release
# Define these to use the Redland datastore (http://librdf.org/) # Define these to use the Redland datastore (http://librdf.org/)
DEFINES += USE_REDLAND DEFINES += USE_REDLAND
-QMAKE_CXXFLAGS += -I/usr/include/rasqal -I/usr/include/raptor2 -QMAKE_CXXFLAGS += -I/usr/include/rasqal -I/usr/include/raptor2
+QMAKE_CXXFLAGS += `pkg-config --cflags redland` -EXTRALIBS += -lrdf
EXTRALIBS += -lrdf +QMAKE_CXXFLAGS += `pkg-config --cflags redland raptor2`
+EXTRALIBS += -lrdf -lraptor2
# Define this to use the Sord datastore (http://drobilla.net/software/sord/) # Define this to use the Sord datastore (http://drobilla.net/software/sord/)
#DEFINES += USE_SORD

View File

@@ -1,15 +1,12 @@
Index: dataquay-0.9.1/lib.pro Index: dataquay-0.9.5/lib.pro
=================================================================== ===================================================================
--- dataquay-0.9.1.orig/lib.pro --- dataquay-0.9.5.orig/lib.pro
+++ dataquay-0.9.1/lib.pro +++ dataquay-0.9.5/lib.pro
@@ -4,8 +4,9 @@ exists(debug.pri) { @@ -6,6 +6,7 @@ exists(debug.pri) {
}
TEMPLATE = lib TEMPLATE = lib
-CONFIG += warn_on staticlib c++11 CONFIG += warn_on c++11
+CONFIG += warn_on c++11
QT -= gui QT -= gui
+LIBS += `pkg-config --libs redland` +LIBS += `pkg-config --libs redland raptor2`
TARGET = dataquay TARGET = dataquay

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Sep 9 17:44:45 UTC 2025 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 0.9.5
* Update to support Qt6
* Add importString methods
- Refresh dataquay-redland.patch, dataquay-sharedlib.patch
and dataquay-includedir.patch
- Switch to qt6
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 26 07:44:06 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org> Mon Feb 26 07:44:06 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package dataquay # spec file for package dataquay
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org> # Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@@ -13,33 +13,34 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%define soname 0 %define soname 0
Name: dataquay Name: dataquay
Version: 0.9.1 Version: 0.9.5
Release: 0 Release: 0
Summary: C++ API for RDF data stores Summary: C++ API for RDF data stores
License: MIT License: MIT
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Url: http://breakfastquay.com/dataquay/ URL: https://breakfastquay.com/dataquay/
Source: http://breakfastquay.com/files/releases/%{name}-%{version}.tar.bz2 Source: https://breakfastquay.com/files/releases/%{name}-%{version}.tar.bz2
Patch1: dataquay-lib64.patch Patch1: dataquay-lib64.patch
Patch2: dataquay-redland.patch Patch2: dataquay-redland.patch
Patch4: dataquay-sharedlib.patch Patch4: dataquay-sharedlib.patch
# PATCH-FIX-OPENSUSE dataquay-includedir.patch aloisio@gmx.co -- add dataquay subdir to include path # PATCH-FIX-OPENSUSE dataquay-includedir.patch aloisio@gmx.com -- add dataquay subdir to include path
Patch5: dataquay-includedir.patch Patch5: dataquay-includedir.patch
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libqt5-qtbase-common-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt6Core)
BuildRequires: pkgconfig(Qt6Test)
BuildRequires: pkgconfig(raptor2)
BuildRequires: pkgconfig(redland) BuildRequires: pkgconfig(redland)
%description %description
Dataquay is a library that provides a C++ API for an Dataquay is a library that provides a C++ API for an
RDF data store using Qt5 classes and containers. RDF data store using Qt6 classes and containers.
%package -n lib%{name}%{soname} %package -n lib%{name}%{soname}
Summary: C++ API for RDF data stores Summary: C++ API for RDF data stores
@@ -47,7 +48,7 @@ Group: System/Libraries
%description -n lib%{name}%{soname} %description -n lib%{name}%{soname}
Dataquay is a library that provides a C++ API for an Dataquay is a library that provides a C++ API for an
RDF data store using Qt5 classes and containers. RDF data store using Qt6 classes and containers.
%package devel %package devel
Summary: Development files for dataquay, an RDF data store library Summary: Development files for dataquay, an RDF data store library
@@ -56,7 +57,7 @@ Requires: libdataquay%{soname} = %{version}
%description devel %description devel
Dataquay is a library that provides a C++ API for an Dataquay is a library that provides a C++ API for an
RDF data store using Qt5 classes and containers. RDF data store using Qt6 classes and containers.
This subpackage contains the header files for developing This subpackage contains the header files for developing
applications that want to make use of dataquay. applications that want to make use of dataquay.
@@ -65,10 +66,11 @@ applications that want to make use of dataquay.
%autosetup -p1 %autosetup -p1
%build %build
%qmake5 PREFIX=%{_prefix} LIBDIR=%{_libdir} dataquay.pro %qmake6 PREFIX=%{_prefix} LIBDIR=%{_libdir} dataquay.pro
%qmake6_build
%install %install
%qmake5_install %qmake6_install
install -D -m0644 deploy/%{name}.pc %{buildroot}%{_libdir}/pkgconfig/%{name}.pc install -D -m0644 deploy/%{name}.pc %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
%post -n lib%{name}%{soname} -p /sbin/ldconfig %post -n lib%{name}%{soname} -p /sbin/ldconfig
@@ -76,7 +78,8 @@ install -D -m0644 deploy/%{name}.pc %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
%files -n lib%{name}%{soname} %files -n lib%{name}%{soname}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc CHANGELOG COPYING README.txt %license COPYING
%doc CHANGELOG README.txt
%{_libdir}/lib%{name}.so.%{soname} %{_libdir}/lib%{name}.so.%{soname}
%{_libdir}/lib%{name}.so.%{soname}.* %{_libdir}/lib%{name}.so.%{soname}.*