Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Debian packaging from Qt4/Harmattan to Qt5/Ubuntu #9

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .package.usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
HOW TO PREPARE BUILD ENVIRONMENT
./package setup

HOW TO COMPILE A DEB PACKAGE
./package build

2 changes: 1 addition & 1 deletion debian/compat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5
7
27 changes: 14 additions & 13 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ Priority: optional
Maintainer: James Thomas <[email protected]>
Build-Depends: debhelper (>= 5),
quilt,
libqt4-dev (>= 4.7),
qtbase5-dev,
qt5-qmake,
qt5-default,
qtdeclarative5-dev,
doxygen,
libtracker-sparql-dev,
aegis-builder (>= 1.4)
libtracker-sparql-1.0-dev,
libiodbc2-dev
Standards-Version: 3.9.1

Package: libqtsparql0
Expand All @@ -30,17 +33,16 @@ Package: libqtsparql-dev
Section: libdevel
Architecture: any
Depends: libqtsparql0 (= ${binary:Version}),
libqt4-dev (>= 4.7),
${misc:Depends}
Description: Library for accessing RDF stores.

Package: libqtsparql-doc
Section: doc
Architecture: all
Depends: ${misc:Depends}
Description: Library for accessing RDF stores.
.
This package contains the documentation.
#Package: libqtsparql-doc
#Section: doc
#Architecture: all
#Depends: ${misc:Depends}
#Description: Library for accessing RDF stores.
# .
# This package contains the documentation.

Package: libqtsparql-tests
Section: devel
Expand All @@ -50,8 +52,7 @@ Depends: ${shlibs:Depends},
libqtsparql0 (>= ${binary:Version}),
libqtsparql-tracker (>= ${binary:Version}),
libqtsparql-tracker-direct (>= ${binary:Version}),
libqtsparql-endpoint (>= ${binary:Version}),
ci-testing
libqtsparql-endpoint (>= ${binary:Version})
XB-Maemo-CI-Packages: libqtsparql0, libqtsparql-tracker, libqtsparql-tracker-direct, libqtsparql-endpoint
XB-Maemo-CI-Stage: staging, acceptance
Description: Tests for libqtsparql.
Expand Down
6 changes: 3 additions & 3 deletions debian/libqtsparql-dev.install
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
usr/lib/libQtSparql.so
usr/lib/libQt5Sparql.so
usr/lib/pkgconfig/*
usr/share/qt4/mkspecs/features/*
usr/include/QtSparql/*
usr/share/qt5/mkspecs/features/*
usr/include/Qt5Sparql/*
2 changes: 1 addition & 1 deletion debian/libqtsparql-doc.install
Original file line number Diff line number Diff line change
@@ -1 +1 @@
usr/share/doc/libqtsparql-doc/html/*
usr/share/doc/libqt5sparql-doc/html/*
2 changes: 1 addition & 1 deletion debian/libqtsparql-endpoint.install
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/usr/lib/qt4/plugins/sparqldrivers/libqsparqlendpoint.so
/usr/lib/*/qt5/plugins/sparqldrivers/libqsparqlendpoint.so
4 changes: 2 additions & 2 deletions debian/libqtsparql-tests.install
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
usr/lib/libqtsparql-tests/
usr/share/libqtsparql-tests/*
usr/lib/libqt5sparql-tests/
usr/share/libqt5sparql-tests/*
2 changes: 1 addition & 1 deletion debian/libqtsparql-tracker-direct.install
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/usr/lib/qt4/plugins/sparqldrivers/libqsparqltrackerdirect.so
/usr/lib/*/qt5/plugins/sparqldrivers/libqsparqltrackerdirect.so
3 changes: 2 additions & 1 deletion debian/libqtsparql-tracker.install
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/usr/lib/qt4/plugins/sparqldrivers/libqsparqltracker.so
/usr/lib/*/qt5/plugins/sparqldrivers/libqsparqltracker.so

8 changes: 3 additions & 5 deletions debian/libqtsparql0.install
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
usr/lib/libQtSparql.so.*
/usr/lib/qt4/imports/QtSparql/qmldir
/usr/lib/qt4/imports/QtSparql/libsparqllistmodel.so
/usr/lib/qt4/imports/QtSparql/libsparqlconnection.so
/usr/lib/qt4/imports/QtSparql/libsparqlresultslist.so
usr/lib/libQt5Sparql.so.*
usr/lib/*/qt5/qml/QtSparql/*

3 changes: 1 addition & 2 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build: debian/build-stamp
debian/build-stamp: Makefile $(QUILT_STAMPFN)
dh_testdir
$(MAKE)
$(MAKE) doc
#$(MAKE) doc
touch $@

clean: unpatch
Expand Down Expand Up @@ -63,7 +63,6 @@ binary-arch: build install
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
aegis-deb-add -control debian/libqtsparql-tests/DEBIAN/control .. debian/libqtsparql-tests.aegis=_aegis

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
57 changes: 57 additions & 0 deletions package
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/bin/bash
####################################################################
#
# This script provides two helpers. One for preparing a cowbuilder
# environment for compiling and another one for building
# the actual package.
#
# USAGE:
#
# This will prepare the environment on your Ubuntu 16.04 LTS:
# ./package setup
#
# And after that you can use this command to compile the package:
# ./package build
#
#
# Author: Juhapekka Piiroinen <[email protected]>
# License: LGPL v2.1
#
# (C) Link Motion Oy
####################################################################
set -e

CMD=$1
SCRIPTPATH=`dirname $0`

pushd ${SCRIPTPATH} > /dev/null
echo ${CMD}

if [[ -z ${CMD} ]]; then
cat .package.usage
exit 1
fi

if [[ "${CMD}" == "setup" ]]; then
echo
echo "This will install the development tools."
echo
echo "press <enter> to continue or ctrl+c to cancel."
read
sudo apt-get install ubuntu-dev-tools debhelper cowbuilder
cowbuilder-dist xenial amd64 create
echo "Build environment is now ready."
exit 0
elif [[ "${CMD}" == "build" ]]; then
echo
echo "You are about to build a deb package."
echo
echo "press <enter> to continue or ctrl+c to cancel."
read

debuild -S -us -uc
cowbuilder-dist xenial amd64 build ../libqtsparql_0.2.6~unreleased.dsc
echo "Package is now built and is available at ~/pbuilder/xenial_results/"
else
cat .package.usage
fi
2 changes: 1 addition & 1 deletion projects.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SUBDIRS = src tests examples
xclean.commands = rm -rf lib plugins include
xclean.depends = clean

include(doc/doc.pri)
#include(doc/doc.pri)

check.CONFIG = recursive
check.recurse = tests
Expand Down
2 changes: 1 addition & 1 deletion rpm/libqt5sparql.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(tracker-sparql-1.0)
BuildRequires: pkgconfig(tracker-sparql-0.16)

%description
Library for accessing RDF stores.
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/sparqldrivers/virtuoso/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
**
****************************************************************************/

#include <QtSparql/private/qsparqldriverplugin_p.h>
#include <private/qsparqldriverplugin_p.h>
#include <qstringlist.h>
#include "../../../sparql/drivers/virtuoso/qsparql_virtuoso_p.h"

Expand Down
2 changes: 1 addition & 1 deletion src/sparql/drivers/drivers.pri
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ contains(sparql-drivers, tracker_direct) {
drivers/tracker_direct/qsparql_tracker_direct_sync_result_p.cpp \
drivers/tracker_direct/qsparql_tracker_direct_update_result_p.cpp
CONFIG += no_keywords link_pkgconfig
PKGCONFIG += tracker-sparql-1.0
PKGCONFIG += tracker-sparql-0.16
DEFINES += QT_SPARQL_TRACKER_DIRECT
}

Expand Down
12 changes: 6 additions & 6 deletions src/sparql/drivers/virtuoso/qsparql_virtuoso.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@
#include <QtCore/QMutexLocker>
#include <QtCore/QThread>

#include <QtSparql/qsparqlerror.h>
#include <QtSparql/qsparqlbinding.h>
#include <QtSparql/qsparqlresultrow.h>
#include <QtSparql/qsparqlquery.h>
#include <QtSparql/qsparqlqueryoptions.h>
#include <QtSparql/private/qsparqlntriples_p.h>
#include <qsparqlerror.h>
#include <qsparqlbinding.h>
#include <qsparqlresultrow.h>
#include <qsparqlquery.h>
#include <qsparqlqueryoptions.h>
#include <private/qsparqlntriples_p.h>
#define XSD_DATE
#include "../../kernel/qsparqlxsd_p.h"

Expand Down
4 changes: 2 additions & 2 deletions src/sparql/drivers/virtuoso/qsparql_virtuoso_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
#ifndef QSPARQL_VIRTUOSO_H
#define QSPARQL_VIRTUOSO_H

#include <QtSparql/private/qsparqldriver_p.h>
#include <QtSparql/qsparqlresult.h>
#include <private/qsparqldriver_p.h>
#include <qsparqlresult.h>

#if defined (Q_OS_WIN32)
#include <QtCore/qt_windows.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/****************************************************************************
**
** Copyright (C) 2010-2011 Nokia Corporation and/or its subsidiary(-ies).
Expand Down Expand Up @@ -43,6 +44,7 @@

#include <QtTest/QtTest>
#include <QtSparql>
#include <unistd.h>

class tst_QSparqlTrackerDirect : public TrackerDirectCommon
{
Expand Down