Commit b81db91e authored by Andrew Branson's avatar Andrew Branson

Merge branch 'mer-1992' into 'master'

[development] Create pkgconfig for libssu. Fixes MER#1992

See merge request !23
parents 27af65c0 81426bb9
......@@ -38,3 +38,18 @@ install_headers.files = $${public_headers}
ssuconfhack {
DEFINES += SSUCONFHACK
}
CONFIG += create_pc create_prl no_install_prl
pkgconfig.files = $$PWD/pkgconfig/ssu.pc
pkgconfig.path = /usr/lib/pkgconfig
QMAKE_PKGCONFIG_NAME = $$TARGET
QMAKE_PKGCONFIG_DESCRIPTION = ssu development files
QMAKE_PKGCONFIG_VERSION = $$VERSION
QMAKE_PKGCONFIG_LIBDIR = $$target.path
QMAKE_PKGCONFIG_INCDIR = $$install_headers.path
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
QMAKE_PKGCONFIG_REQUIRES = Qt5Network Qt5Xml Qt5DBus libsystemd-journal libshadowutils libzypp
INSTALLS += pkgconfig
......@@ -121,6 +121,7 @@ Requires: %{name} = %{version}-%{release}
%defattr(-,root,root,-)
%{_libdir}/libssu.so
%{_includedir}/ssu*.h
%{_libdir}/pkgconfig/ssu.pc
%package tests
......@@ -167,7 +168,7 @@ Group: Documentation
%build
mkdir -p build && cd build
%qmake5 DEFINES+='TARGET_ARCH=\\\"\"%{_target_cpu}\"\\\"' -recursive ..
%qmake5 "VERSION=%{version}" DEFINES+='TARGET_ARCH=\\\"\"%{_target_cpu}\"\\\"' -recursive ..
make %{?_smp_mflags}
if [ -f ../.nodocs ]; then
echo "Skip building documentation"
......
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