File quickshell.spec of Package quickshell

#
# spec file for package quickshell
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#

Name:           quickshell
Version:        0.2.1
Release:        0
Summary:        building blocks for your desktop
License:        LGPL-3.0-only AND GPL-3.0-only
URL:            https://git.outfoxxed.me/quickshell/quickshell
Source0:        %{url}/archive/v%{version}.tar.gz
BuildRequires:  pkgconfig(CLI11)
BuildRequires:  pkgconfig(gbm)
BuildRequires:  pkgconfig(jemalloc)
BuildRequires:  pkgconfig(libdrm)
BuildRequires:  pkgconfig(libpipewire-0.3)
BuildRequires:  pkgconfig(pam)
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(wayland-protocols)
BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(Qt6CorePrivate)
BuildRequires:  cmake(Qt6Qml)
BuildRequires:  cmake(Qt6Quick)
BuildRequires:  cmake(Qt6QuickControls2)
BuildRequires:  cmake(Qt6QuickPrivate)
BuildRequires:  cmake(Qt6ShaderTools)
BuildRequires:  cmake(Qt6WaylandClient)
BuildRequires:  cmake(Qt6WaylandClientPrivate)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  Mesa-libGLESv3-devel
BuildRequires:  cmake
BuildRequires:  hicolor-icon-theme
BuildRequires:  gcc-c++
BuildRequires:  ninja
BuildRequires:  pkgconfig
BuildRequires:  qt6-declarative-devel
BuildRequires:  spirv-tools
BuildRequires:  wayland-devel
BuildRequires:  polkit-devel
Provides:       qt6qmlimport(qs.components)
Provides:       qt6qmlimport(qs.components.containers)
Provides:       qt6qmlimport(qs.components.controls)
Provides:       qt6qmlimport(qs.components.effects)
Provides:       qt6qmlimport(qs.components.filedialog)
Provides:       qt6qmlimport(qs.components.images)
Provides:       qt6qmlimport(qs.components.misc)
Provides:       qt6qmlimport(qs.components.widgets)
Provides:       qt6qmlimport(qs.config)
Provides:       qt6qmlimport(qs.modules.bar)
Provides:       qt6qmlimport(qs.modules.sidebar)
Provides:       qt6qmlimport(qs.modules.bar.popouts)
Provides:       qt6qmlimport(qs.modules.controlcenter)
Provides:       qt6qmlimport(qs.modules.dashboard)
Provides:       qt6qmlimport(qs.modules.launcher)
Provides:       qt6qmlimport(qs.modules.launcher.services)
Provides:       qt6qmlimport(qs.modules.notifications)
Provides:       qt6qmlimport(qs.modules.osd)
Provides:       qt6qmlimport(qs.modules.session)
Provides:       qt6qmlimport(qs.modules.utilities)
Provides:       qt6qmlimport(qs.modules.utilities.toasts)
Provides:       qt6qmlimport(qs.modules.windowinfo)
Provides:       qt6qmlimport(qs.services)
Provides:       qt6qmlimport(qs.utils)
Provides:       qt6qmlimport(qs.widgets)


%description
Quickshell is a toolkit for building status bars, widgets, lockscreens,
and other desktop components using QtQuick. It can be used alongside your
wayland compositor or window manager to build a complete desktop environment.


%prep
%autosetup -p1


%build
export CFLAGS="%{optflags} -I/usr/include/wayland"
export CXXFLAGS="%{optflags} -Wno-error=return-type"
%define __builder ninja
%cmake  -DBUILD_SHARED_LIBS=OFF \
        -DCMAKE_SKIP_RPATH=TRUE \
        -DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE \
        -DCMAKE_INSTALL_RPATH="" \
        -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE \
        -DDISTRIBUTOR="openSUSE (home:kaiman)" \
        -DDISTRIBUTOR_DEBUGINFO_AVAILABLE=NO \
        -DCRASH_REPORTER=OFF \
        -DINSTALL_QML_PREFIX=%{_lib}/qt6/qml
%cmake_build


%install
%cmake_install


%files
%license LICENSE*
%doc README.md
%{_bindir}/qs
%{_bindir}/quickshell
%{_libdir}/qt6/qml/Quickshell
%{_datadir}/applications/dev.noctalia.noctalia-qs.desktop
%{_datadir}/icons/hicolor/scalable/apps/dev.noctalia.noctalia-qs.svg
#%{_datadir}/applications/org.quickshell.desktop
#%{_datadir}/icons/hicolor/scalable/apps/org.quickshell.svg


%changelog
openSUSE Build Service is sponsored by