# generated by cabal-rpm-2.3.2 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %bcond tests 1 Name: timebox Version: 0.2.0 Release: 1%{?dist} Summary: Personal timeboxing for the terminal License: BSD-3-Clause URL: https://github.com/aldemeery/timebox # Begin cabal-rpm sources: Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-rpm-macros BuildRequires: ghc-Cabal-devel BuildRequires: ghc-base-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-network-devel BuildRequires: ghc-process-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-unix-devel %if %{with tests} BuildRequires: ghc-hspec-devel %endif # End cabal-rpm deps BuildRequires: systemd-rpm-macros Requires: pipewire-utils Requires: sound-theme-freedesktop %description Start a box (one task with a time limit) and a sound plays when the time runs out. A small daemon, supervised by a systemd user service, holds the box; the command-line client talks to it over a Unix domain socket. %prep # Begin cabal-rpm setup: %setup -q # End cabal-rpm setup %build # Begin cabal-rpm build: %ghc_bin_build # End cabal-rpm build %install # Begin cabal-rpm install %ghc_bin_install # End cabal-rpm install install -Dpm 0644 systemd/%{name}.service %{buildroot}%{_userunitdir}/%{name}.service sed -i 's|%%h/.local/bin|%{_bindir}|' %{buildroot}%{_userunitdir}/%{name}.service install -Dpm 0644 man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 %check %if %{with tests} %cabal_test %endif %post %systemd_user_post %{name}.service %preun %systemd_user_preun %{name}.service %postun %systemd_user_postun %{name}.service %files # Begin cabal-rpm files: %license LICENSE %doc CHANGELOG.md README.md %{_bindir}/%{name} # End cabal-rpm files %{_userunitdir}/%{name}.service %{_mandir}/man1/%{name}.1* %changelog * Sat Nov 28 2026 Osama Aldemeery - 0.2.0-1 - Accept durations that combine units, like 2h13m * Sat Nov 28 2026 Osama Aldemeery - 0.1.1-1 - Add a man page * Sat Nov 28 2026 Osama Aldemeery - 0.1.0-1 - Initial package