## START: Set by rpmautospec
## (rpmautospec version 0.7.3)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
    release_number = 5;
    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
    print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec

Name:           chayang
Version:        0.1.0

%global forgeurl https://git.sr.ht/~emersion/chayang
%global tag v%{version}
%forgemeta

Release:        %{autorelease}
Summary:        Gradually dim the screen on wlroots-based compositors

License:        MIT
URL:            %{forgeurl}
Source:         %{forgesource}

BuildRequires:  gcc
BuildRequires:  meson
BuildRequires:  wayland-devel >= 1.14.91
BuildRequires:  wayland-protocols-devel >= 1.14

%description
Gradually dim the screen.
Can be used to implement a grace period before locking the session.

%prep
%forgesetup

%build
%meson
%meson_build

%install
%meson_install

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}

%changelog
## START: Generated by rpmautospec
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild

* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

* Thu Nov 02 2023 Zephyr Lykos <git@mochaa.ws> - 0.1.0-2
- Remove HPND from the license field

* Fri Oct 06 2023 Zephyr Lykos <git@mochaa.ws> - 0.1.0-1
- Initial packaging (fedora#2239511)
## END: Generated by rpmautospec