File dfl-applications.spec of Package dfl-applications
#
# spec file for package dfl-applications
#
# 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-applications
Version: 0.2.0+4
Release: 0
Summary: Library provides a thin wrapper around QT Applications
License: GPL-3.0
URL: https://gitlab.com/desktop-frameworks/applications
Source0: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: qt6-tools-linguist
BuildRequires: meson
BuildRequires: pkgconfig(Qt6Core)
BuildRequires: pkgconfig(Qt6Gui)
BuildRequires: pkgconfig(Qt6Widgets)
BuildRequires: pkgconfig(df6ipc)
%description
This library provides a thin wrapper around QApplication, QGuiApplication and
QCoreApplication, to provide single-instance functionality. Further, with the
use of DFL::IPC it also provides a smooth two-way communication between the
first and the subsequent instances.
%package -n libdf6applications%{soname}
Summary: DFL::Applications Shared Libraries - Qt6 version
%description -n libdf6applications%{soname}
This library provides a thin wrapper around QApplication, QGuiApplication and
QCoreApplication, to provide single-instance functionality. Further, with the
use of DFL::IPC it also provides a smooth two-way communication between the
first and the subsequent instances.
This package contains the shared libraries.
%package -n libdf6applications%{soname}-devel
Summary: DFL::Applications - Development files - Qt6 version
Requires: libdf6applications%{soname} = %{version}
%description -n libdf6applications%{soname}-devel
This library provides a thin wrapper around QApplication, QGuiApplication and
QCoreApplication, to provide single-instance functionality. Further, with the
use of DFL::IPC it also provides a smooth two-way communication between the
first and the subsequent instances.
This package contains the development files.
%prep
%autosetup
%build
%meson -Duse_qt_version="qt6"
%meson_build
%install
%meson_install
%post -n libdf6applications%{soname} -p /sbin/ldconfig
%postun -n libdf6applications%{soname} -p /sbin/ldconfig
%files -n libdf6applications%{soname}
%license LICENSE
%{_libdir}/libdf6application.so.0
%{_libdir}/libdf6application.so.0.2.0
%{_libdir}/libdf6coreapplication.so.0
%{_libdir}/libdf6coreapplication.so.0.2.0
%{_libdir}/libdf6guiapplication.so.0
%{_libdir}/libdf6guiapplication.so.0.2.0
%files -n libdf6applications%{soname}-devel
%dir %{_includedir}/DFL
%dir %{_includedir}/DFL/DF6
%{_includedir}/DFL/DF6/DFApplication.hpp
%{_includedir}/DFL/DF6/DFCoreApplication.hpp
%{_includedir}/DFL/DF6/DFGuiApplication.hpp
%{_libdir}/libdf6application.so
%{_libdir}/libdf6coreapplication.so
%{_libdir}/libdf6guiapplication.so
%{_libdir}/pkgconfig/df6application.pc
%{_libdir}/pkgconfig/df6coreapplication.pc
%{_libdir}/pkgconfig/df6guiapplication.pc
%changelog