|
|
c636faf |
Name: gammastep
|
|
Aleksei Bavshin |
35f404b |
Version: 2.0.6
|
|
|
c636faf |
Release: 1%{?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
|
|
Aleksei Bavshin |
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
|
|
Aleksei Bavshin |
35f404b |
* Sun Dec 13 2020 Aleksei Bavshin <alebastr@fedoraproject.org> - 2.0.6-1
|
|
Aleksei Bavshin |
35f404b |
- Update to 2.0.6
|
|
Aleksei Bavshin |
35f404b |
|
|
Aleksei Bavshin |
d95363d |
* Fri Nov 20 2020 Aleksei Bavshin <alebastr@fedoraproject.org> - 2.0.5-1
|
|
Aleksei Bavshin |
d95363d |
- Update to 2.0.5
|
|
Aleksei Bavshin |
d95363d |
|
|
|
c636faf |
* Thu Sep 17 2020 Aleksei Bavshin <alebastr@fedoraproject.org> - 2.0.2-1
|
|
|
c636faf |
- Initial import (#1878350)
|