Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[development] Create pkgconfig for libssu. Fixes MER#1992
  • Loading branch information
Andrey Kozhevnikov committed Nov 5, 2019
1 parent 27af65c commit 81426bb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions libssu/libssu.pro
Expand Up @@ -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
3 changes: 2 additions & 1 deletion rpm/ssu.spec
Expand Up @@ -121,6 +121,7 @@ Requires: %{name} = %{version}-%{release}
%defattr(-,root,root,-)
%{_libdir}/libssu.so
%{_includedir}/ssu*.h
%{_libdir}/pkgconfig/ssu.pc


%package tests
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 81426bb

Please sign in to comment.