%global git_date  20250219
%global git_hash  818c98b

%global git_ver  0.1.0
%global rel  1
%global src_name  %{name}-%{git_date}-%{git_hash}.tar.xz

Name:		labwc-tweaks
Version:	%{git_ver}^%{git_date}g%{git_hash}
Release:	%{rel}%{?dist}
Summary:	Configuration gui app for labwc
License:  	GPLv2
URL:      	https://github.com/labwc/labwc-tweaks
Source:	%{url}/%{src_name}

BuildRequires:  make cmake gcc-c++ kf6-rpm-macros
BuildRequires:  pkgconfig(glib-2.0)

Recommends:  labwc

%description
This is a [WIP] configuration gui app for labwc without any real plan or Acceptance Criteria. It was merely written to help change themes for the purposes of testing labwc during development.

%prep
%autosetup -n %{name}

%build
%cmake_kf6
%cmake_build

%install
%cmake_install

%files
%doc README.md LICENSE
%{_bindir}/labwc-tweaks
%{_datadir}/icons/*
%{_datadir}/applications/labwc_tweaks.desktop
%{_datadir}/%{name}/translations/*
%{_datadir}/metainfo/labwc_tweaks.appdata.xml


%changelog
%autochangelog