File dfl-login1.spec of Package dfl-login1

#
# spec file for package dfl-login1
#
# Copyright (c) 2024 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

%define         soname 0

Name:           dfl-login1
Version:        0.2.0+3
Release:        0
Summary:        DFL Login1 class implements a part of the systemd logind dbus protocol
License:        GPL-3.0
URL:            https://gitlab.com/desktop-frameworks/login1
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  gcc-c++
BuildRequires:  qt6-tools-linguist
BuildRequires:  meson
BuildRequires:  pkgconfig(Qt6Core)
BuildRequires:  pkgconfig(Qt6DBus)
BuildRequires:  pkgconfig(Qt6Gui)

%description
DFL::Login1 class implements a part of the systemd logind dbus protocol.

%package -n libdf6login1%{soname}
Summary:        DFL::Login1 Shared Libraries - Qt6 version

%description -n libdf6login1%{soname}
DFL::Login1 class implements a part of the systemd logind dbus protocol.

This package contains the shared libraries.

%package -n libdf6login1%{soname}-devel
Summary:        DFL::Login1 - Development files - Qt6 version
Requires:       libdf6login1%{soname} = %{version}

%description -n libdf6login1%{soname}-devel
DFL::Login1 class implements a part of the systemd logind dbus protocol.

This package contains the development files.

%prep
%autosetup

%build
%meson -Duse_qt_version="qt6"
%meson_build

%install
%meson_install

%post -n libdf6login1%{soname} -p /sbin/ldconfig

%postun -n libdf6login1%{soname} -p /sbin/ldconfig

%files -n libdf6login1%{soname}
%license LICENSE
%{_libdir}/libdf6login1.so.*

%files -n libdf6login1%{soname}-devel
%dir %{_includedir}/DFL
%dir %{_includedir}/DFL/DF6
%{_includedir}/DFL/DF6/DF*.hpp
%{_libdir}/libdf6login1.so
%{_libdir}/pkgconfig/df6login1.pc

%changelog

openSUSE Build Service is sponsored by