File pilorama.spec of Package pilorama
#
# spec file for package pilorama
#
# 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/
#
%define __builder ninja
Name: pilorama
Version: 4.2.0
Release: 0
Summary: Timeboxing tool
License: GPL-3.0-only
URL: https://pilorama.app
Source0: https://github.com/eplatonoff/pilorama/archive/refs/tags/v4.2.0.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: hicolor-icon-theme
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: qt6-declarative-devel
BuildRequires: cmake(Qt6Multimedia)
BuildRequires: cmake(Qt6Svg)
BuildRequires: cmake(Qt6Xml)
%description
Pilorama is a timeboxing tool. Features include:
* Simple countdown timer
* Infinite time boxing timer
* System notifications
* Dynamic tray icon and menu
* JSON Presets
* Night mode
* Optional pause button
%prep
%autosetup
%build
cd src
%cmake
%cmake_build
%install
cd src
install -Dm755 "%{__builddir}/Pilorama" -T "%{buildroot}%{_bindir}/pilorama"
for r in 16 22 24 32 36 48 64 72 96 128 192 256 512; do
install -Dm644 "assets/app_icons/hicolor/${r}x${r}.png" -T "%{buildroot}%{_datadir}/icons/hicolor/${r}x${r}/apps/pilorama.png"
done
install -Dm644 "assets/app_icons/hicolor/app.svg" "%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/pilorama.svg"
install -Dm644 "pilorama.desktop" -t "%{buildroot}%{_datadir}/applications"
%files
%license LICENSE
%doc presets
%{_bindir}/pilorama
%{_datadir}/icons/hicolor/*/apps/pilorama.*
%{_datadir}/applications/pilorama.desktop
%changelog