Commit 0fdde724 authored by Matti Kosola's avatar Matti Kosola

Merge branch 'jb50027' into 'master'

Use macros, not hardcoded paths.

See merge request mer-core/libcontacts!18
parents 06adaa51 fc6f7849
Name: libcontacts-qt5
Summary: Nemo contact cache library
Summary: Sailfish OS contact cache library
Version: 0.2.7
Release: 1
Group: System/Libraries
License: BSD
URL: https://github.com/nemomobile/libcontacts
URL: https://git.sailfishos.org/mer-core/libcontacts
Source0: %{name}-%{version}.tar.bz2
Requires: qtcontacts-sqlite-qt5
BuildRequires: pkgconfig(Qt5Core)
......@@ -23,16 +22,14 @@ BuildRequires: qt5-qttools-linguist
%{summary}.
%package tests
Summary: Nemo contact cache library tests
Group: System/Libraries
Summary: Sailfish OS contact cache library tests
Requires: %{name} = %{version}-%{release}
%description tests
%{summary}.
%package devel
Summary: Nemo contact cache library headers
Group: System/Libraries
Summary: Sailfish OS contact cache library headers
Requires: %{name} = %{version}-%{release}
%description devel
......@@ -41,7 +38,6 @@ Requires: %{name} = %{version}-%{release}
%package ts-devel
Summary: Translation source for libcontacts
Group: System/Applications
%description ts-devel
Translation source for libcontacts
......@@ -57,7 +53,7 @@ Translation source for libcontacts
%build
%qmake5 VERSION=%{version}
%qmake5 VERSION=%{version} "PKGCONFIG_LIB=%{_lib}"
make %{?_smp_mflags}
......
......@@ -6,12 +6,18 @@ CONFIG += create_pc create_prl no_install_prl
# 'contacts' is too generic for the target name - use 'contactcache'
TARGET = $${PACKAGENAME}
target.path = $$PREFIX/lib
target.path = $$[QT_INSTALL_LIBS]
INSTALLS += target
# This should be passed on qmake command line
isEmpty(PKGCONFIG_LIB) {
PKGCONFIG_LIB = lib
message("PKGCONFIG_LIB is unset, assuming $$PKGCONFIG_LIB")
}
# version for generated pkgconfig files is defined in the spec file
QMAKE_PKGCONFIG_INCDIR = $$PREFIX/include/$${PACKAGENAME}
QMAKE_PKGCONFIG_LIBDIR = $$PREFIX/lib
QMAKE_PKGCONFIG_LIBDIR = $$PREFIX/$${PKGCONFIG_LIB}
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
CONFIG += link_pkgconfig
......
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