From 9496d99fe6f9a09562acd22b15d6f75192b638f4 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Jul 04 2016 15:47:49 +0000 Subject: Explicitly use GNU++98 standard --- diff --git a/dataquay-0.9-use_gnupp98.patch b/dataquay-0.9-use_gnupp98.patch new file mode 100644 index 0000000..d63dd42 --- /dev/null +++ b/dataquay-0.9-use_gnupp98.patch @@ -0,0 +1,10 @@ +--- dataquay-0.9/config.pri.gnupp98 2012-05-30 15:34:22.000000000 +0700 ++++ dataquay-0.9/config.pri 2016-07-04 22:40:45.250548572 +0700 +@@ -3,6 +3,7 @@ + + # Define these to use the Redland datastore (http://librdf.org/) + DEFINES += USE_REDLAND ++QMAKE_CXXFLAGS += -std=gnu++98 + QMAKE_CXXFLAGS += -I/usr/include/rasqal -I/usr/include/raptor2 + EXTRALIBS += -lrdf + diff --git a/dataquay.spec b/dataquay.spec index 8f6070f..e14da09 100644 --- a/dataquay.spec +++ b/dataquay.spec @@ -1,19 +1,14 @@ -# NOTE -# To rebuild locally using mock, make sure SELinux is not set to enforcing; -# as root: -# setenforce 0 -# -# see https://bugzilla.redhat.com/show_bug.cgi?id=857709 -# Name: dataquay Version: 0.9 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Simple RDF for C++ and Qt applications # README says BSD but this is more similar to MIT text License: MIT URL: http://breakfastquay.com/dataquay/ Source0: http://code.breakfastquay.com/attachments/download/30/dataquay-0.9.tar.bz2 +# codebase not C++14 standard-compliant +Patch0: %{name}-0.9-use_gnupp98.patch BuildRequires: qt-devel BuildRequires: redland-devel @@ -55,7 +50,7 @@ developing applications that use %{name}. %prep -%setup -q +%autosetup -p1 # patch for multilib %{__sed} -i.multilib 's|$${PREFIX}/lib|$${PREFIX}/%{_lib}|' lib.pro %{__sed} -i.multilib 's|${exec_prefix}/lib|${exec_prefix}/%{_lib}|' \ @@ -80,7 +75,8 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %files -%doc COPYING CHANGELOG README.txt +%license COPYING +%doc CHANGELOG README.txt %{_libdir}/*.so.* %files devel @@ -91,6 +87,10 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %changelog +* 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 https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild