File dfl-utils.spec of Package dfl-utils
#
# spec file for package dfl-utils
#
# 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-utils
Version: 0.2.0+0
Release: 0
Summary: Two very simple classes for IPC
License: GPL-3.0
URL: https://gitlab.com/desktop-frameworks/utils
Source0: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: qt6-tools-linguist
BuildRequires: meson
BuildRequires: pkgconfig(Qt6Core)
BuildRequires: pkgconfig(Qt6Gui)
%description
The DesQ library to obtain system information and various classes and functions
to be used across the DesQ project. This library provides single-instance
Application classes for Core and Gui, advanced file-system watcher, a very
simple IPC, functions to return XDG variables, desktop file parsing, and read
various system info like battery, network, storage, cpu and RAM info.
%package -n libdf6utils%{soname}
Summary: DFL::Utils Shared Libraries - Qt6 version
%description -n libdf6utils%{soname}
The DesQ library to obtain system information and various classes and functions
to be used across the DesQ project. This library provides single-instance
Application classes for Core and Gui, advanced file-system watcher, a very
simple IPC, functions to return XDG variables, desktop file parsing, and read
various system info like battery, network, storage, cpu and RAM info.
This package contains the shared libraries.
%package -n libdf6utils%{soname}-devel
Summary: DFL::Utils- Development files - Qt6 version
Requires: libdf6utils%{soname} = %{version}
%description -n libdf6utils%{soname}-devel
The DesQ library to obtain system information and various classes and functions
to be used across the DesQ project. This library provides single-instance
Application classes for Core and Gui, advanced file-system watcher, a very
simple IPC, functions to return XDG variables, desktop file parsing, and read
various system info like battery, network, storage, cpu and RAM info.
This package contains the development files.
%prep
%autosetup
%build
%meson -Duse_qt_version="qt6"
%meson_build
%install
%meson_install
%post -n libdf6utils%{soname} -p /sbin/ldconfig
%postun -n libdf6utils%{soname} -p /sbin/ldconfig
%files -n libdf6utils%{soname}
%license LICENSE
%{_libdir}/libdf6utils.so.*
%files -n libdf6utils%{soname}-devel
%dir %{_includedir}/DFL
%dir %{_includedir}/DFL/DF6
%{_includedir}/DFL/DF6/DF*.hpp
%{_libdir}/libdf6utils.so
%{_libdir}/pkgconfig/df6utils.pc
%changelog