c636faf
Name:           gammastep
c094801
Version:        2.0.9
06f2537
Release:        6%{?dist}
c636faf
Summary:        Adjusts the color temperature of your screen according to time of day
c636faf
c636faf
# src/gamma-control.xml is licensed under MIT
c636faf
License:        GPLv3+ and MIT
c636faf
URL:            https://gitlab.com/chinstrap/gammastep
c636faf
Source0:        %{url}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
c636faf
c636faf
BuildRequires:  desktop-file-utils
c636faf
BuildRequires:  gcc
c636faf
BuildRequires:  gettext
c636faf
BuildRequires:  intltool
c636faf
BuildRequires:  libappstream-glib
c636faf
BuildRequires:  libtool
35f404b
BuildRequires:  make
c636faf
BuildRequires:  pkgconfig(gio-2.0) >= 2.26
c636faf
BuildRequires:  pkgconfig(glib-2.0)
c636faf
BuildRequires:  pkgconfig(gobject-2.0)
c636faf
BuildRequires:  pkgconfig(libdrm)
c636faf
BuildRequires:  pkgconfig(wayland-client)
c636faf
BuildRequires:  pkgconfig(wayland-scanner) >= 1.15.0
c636faf
BuildRequires:  pkgconfig(x11)
c636faf
BuildRequires:  pkgconfig(xcb)
c636faf
BuildRequires:  pkgconfig(xcb-randr)
c636faf
BuildRequires:  pkgconfig(xxf86vm)
c636faf
BuildRequires:  python3-devel >= 3.2
c636faf
BuildRequires:  systemd-rpm-macros
c636faf
c636faf
Requires:       hicolor-icon-theme
c636faf
c636faf
%description
c636faf
Gammastep adjusts the color temperature of your screen according to your
c636faf
surroundings. This may help your eyes hurt less if you are working in front
c636faf
of the screen at night.
c636faf
c636faf
The color temperature is set according to the position of the sun. A different
c636faf
color temperature is set during night and daytime. During twilight and early
c636faf
morning, the color temperature transitions smoothly from night to daytime
c636faf
temperature to allow your eyes to slowly adapt.
c636faf
c636faf
Gammastep supports wlr-gamma-control-unstable-v1 protocol for wlroots-based
c636faf
wayland compositors.
c636faf
c636faf
%package        indicator
c636faf
Summary:        GTK indicator applet for %{name}
c636faf
c636faf
Requires:       %{name}%{?_isa} = %{version}-%{release}
c636faf
Requires:       gtk3
c636faf
Requires:       libappindicator-gtk3
c636faf
Requires:       python3dist(pygobject)
c636faf
Requires:       python3dist(pyxdg)
c636faf
c636faf
%description    indicator
c636faf
This package provides a status icon for %{name} that allows the user
c636faf
to control color temperature.
c636faf
c636faf
c636faf
%prep
c636faf
%autosetup -p1 -n %{name}-v%{version}
c636faf
c636faf
c636faf
%build
c636faf
./bootstrap
c636faf
%configure \
c636faf
    --with-systemduserunitdir=%{_userunitdir}
c636faf
%make_build
c636faf
c636faf
c636faf
%install
c636faf
%make_install
c636faf
%find_lang %{name}
c636faf
c636faf
c636faf
%check
c636faf
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
c636faf
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
c636faf
c636faf
c636faf
%post
c636faf
%systemd_user_post %{name}.service
c636faf
c636faf
%post indicator
c636faf
%systemd_user_post %{name}-indicator.service
c636faf
c636faf
%preun
c636faf
%systemd_user_preun %{name}.service
c636faf
c636faf
%preun indicator
c636faf
%systemd_user_preun %{name}-indicator.service
c636faf
c636faf
c636faf
%files -f %{name}.lang
c636faf
%license COPYING
c636faf
%doc README.md %{name}.conf.sample
c636faf
%{_bindir}/%{name}
c636faf
%{_mandir}/man1/%{name}.1*
c636faf
%{_datadir}/applications/%{name}.desktop
c636faf
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
c636faf
%{_userunitdir}/%{name}.service
c636faf
c636faf
%files indicator
c636faf
%{_bindir}/%{name}-indicator
c636faf
%{_datadir}/applications/%{name}-indicator.desktop
c636faf
%{_datadir}/icons/hicolor/scalable/apps/%{name}-status-*.svg
c636faf
%{_metainfodir}/%{name}-indicator.appdata.xml
c636faf
%{_userunitdir}/%{name}-indicator.service
c636faf
%{python3_sitelib}/%{name}_indicator/
c636faf
c636faf
c636faf
%changelog
06f2537
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-6
06f2537
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
06f2537
5adc24f
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-5
5adc24f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
5adc24f
5ac5b55
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-4
5ac5b55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
5ac5b55
90d4a4b
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.0.9-3
90d4a4b
- Rebuilt for Python 3.12
90d4a4b
363ac9c
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-2
363ac9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
363ac9c
c094801
* Fri Sep 16 2022 Aleksei Bavshin <alebastr@fedoraproject.org> - 2.0.9-1
c094801
- Update to 2.0.9 (#2125940)
c094801
c71ebb1
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.8-4
c71ebb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
c71ebb1
0397ab4
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.0.8-3
0397ab4
- Rebuilt for Python 3.11
0397ab4
2936767
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.8-2
2936767
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2936767
efd860a
* Thu Dec 23 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 2.0.8-1
efd860a
- Update to 2.0.8 (#2035160)
efd860a
dd90823
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-4
dd90823
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
dd90823
946af6b
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.7-3
946af6b
- Rebuilt for Python 3.10
946af6b
0ee61d1
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-2
0ee61d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0ee61d1
85e257d
* Fri Jan 15 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 2.0.7-1
85e257d
- Update to 2.0.7 (#1916565)
85e257d
35f404b
* Sun Dec 13 2020 Aleksei Bavshin <alebastr@fedoraproject.org> - 2.0.6-1
35f404b
- Update to 2.0.6
35f404b
d95363d
* Fri Nov 20 2020 Aleksei Bavshin <alebastr@fedoraproject.org> - 2.0.5-1
d95363d
- Update to 2.0.5
d95363d
c636faf
* Thu Sep 17 2020 Aleksei Bavshin <alebastr@fedoraproject.org> - 2.0.2-1
c636faf
- Initial import (#1878350)