Commit ca985a90 authored by blam's avatar blam

Merge branch 'jb38551-pkgconfig-version' into 'master'

[transfer-engine] Properly link package and .pc version. Contributes to JB#38551

See merge request !9
parents 8ef3989a 0d71320b
......@@ -2,7 +2,7 @@ TEMPLATE = lib
TARGET = nemotransferengine-qt5
DEPENDPATH += .
INCLUDEPATH += .
CONFIG += shared link_pkgconfig
CONFIG += shared qt create_pc create_prl no_install_prl link_pkgconfig
QT += dbus
PKGCONFIG += quillmetadata-qt5
......@@ -36,7 +36,7 @@ HEADERS += \
SOURCES += \
transferengineinterface.cpp
OTHER_FILES += nemotransfernegine-qt5.pc nemotransferengine-plugin-qt5.prf
OTHER_FILES += nemotransferengine-qt5.pc nemotransferengine-plugin-qt5.prf
headers.files = $$HEADERS
headers.path = /usr/include/TransferEngine-qt5
......@@ -49,5 +49,12 @@ pkgconfigpc.files = nemotransferengine-qt5.pc
prf.path = $$[QT_INSTALL_DATA]/mkspecs/features
prf.files = nemotransferengine-plugin-qt5.prf
QMAKE_PKGCONFIG_NAME = lib$$TARGET
QMAKE_PKGCONFIG_DESCRIPTION = Nemo transfer engine library for share plugins and transfer engine API
QMAKE_PKGCONFIG_LIBDIR = $$target.path
QMAKE_PKGCONFIG_INCDIR = $$headers.path
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
QMAKE_PKGCONFIG_REQUIRES = Qt5Core Qt5DBus
QMAKE_PKGCONFIG_VERSION = $$VERSION
INSTALLS += target headers prf pkgconfigpc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/TransferEngine-qt5
Name: libnemotransferengine-qt5
Description: Nemo transfer engine library for share plugins and transfer engine API
Version: 0.0.1
Requires: Qt5Core Qt5DBus
Libs: -L${libdir} -lnemotransferengine-qt5
Cflags: -I${includedir}
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/TransferEngine
Name: libnemotransferengine
Description: Nemo transfer engine library for share plugins and transfer engine API
Version: 0.0.1
Requires: QtCore QtDBus
Libs: -L${libdir} -lnemotransferengine
Cflags: -I${includedir}
Name: nemo-transferengine-qt5
Version: 0.3.1
Version: 1.0.0
Release: 0
Summary: Transfer Engine for uploading media content and tracking transfers.
Group: System Environment/Daemon
......@@ -110,10 +110,8 @@ Documentation for Nemo TransferEngine
%setup -q -n %{name}-%{version}
%build
%qmake5
make %{?jobs:-j%jobs}
%qmake5 "VERSION=%{version}"
make %{?_smp_mflags}
make docs
%install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment