Accepting request 843609 from home:MSirringhaus
New package: gammastep Like redshift, but with wayland support OBS-URL: https://build.opensuse.org/request/show/843609 OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/gammastep?expand=0&rev=1
This commit is contained in:
commit
e72a6abdd3
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
gammastep-v2.0.2.tar.gz
Normal file
3
gammastep-v2.0.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a2b4c12064f85b16f6365ea0ddf1580ed64f66e389803484a8494d81eafa3949
|
||||
size 580121
|
5
gammastep.changes
Normal file
5
gammastep.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 23 08:16:53 UTC 2020 - Martin Sirringhaus <martin.sirringhaus@suse.com>
|
||||
|
||||
- Initial commit of v2.0.2 using minimally adjusted spec-file
|
||||
provided by upstream
|
123
gammastep.spec
Normal file
123
gammastep.spec
Normal file
@ -0,0 +1,123 @@
|
||||
#
|
||||
# spec file for package gammastep
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
Name: gammastep
|
||||
Version: 2.0.2
|
||||
Release: 0
|
||||
Summary: Adjusts the color temperature of your screen according to time of day
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://gitlab.com/chinstrap/gammastep
|
||||
Source0: %{url}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
|
||||
BuildRequires: appstream-glib
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gettext
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: intltool
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python3-devel >= 3.2
|
||||
BuildRequires: systemd-rpm-macros
|
||||
BuildRequires: pkgconfig(gio-2.0) >= 2.26
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(gobject-2.0)
|
||||
BuildRequires: pkgconfig(libdrm)
|
||||
BuildRequires: pkgconfig(wayland-client)
|
||||
BuildRequires: pkgconfig(wayland-scanner) >= 1.15.0
|
||||
BuildRequires: pkgconfig(x11)
|
||||
BuildRequires: pkgconfig(xcb)
|
||||
BuildRequires: pkgconfig(xcb-randr)
|
||||
BuildRequires: pkgconfig(xxf86vm)
|
||||
%{?systemd_requires}
|
||||
Requires: hicolor-icon-theme
|
||||
|
||||
%description
|
||||
Gammastep adjusts the color temperature of your screen according to your
|
||||
surroundings. This may help your eyes hurt less if you are working in front
|
||||
of the screen at night.
|
||||
|
||||
The color temperature is set according to the position of the sun. A different
|
||||
color temperature is set during night and daytime. During twilight and early
|
||||
morning, the color temperature transitions smoothly from night to daytime
|
||||
temperature to allow your eyes to slowly adapt.
|
||||
|
||||
Gammastep supports wlr-gamma-control-unstable-v1 protocol for wlroots-based
|
||||
wayland compositors.
|
||||
|
||||
%package indicator
|
||||
Summary: GTK indicator applet for %{name}
|
||||
Requires: gtk3
|
||||
Requires: python3dist(pygobject)
|
||||
Requires: python3dist(pyxdg)
|
||||
%{?systemd_requires}
|
||||
|
||||
%description indicator
|
||||
This package provides a status icon for %{name} that allows the user
|
||||
to control color temperature.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-v%{version}
|
||||
|
||||
|
||||
%build
|
||||
./bootstrap
|
||||
%configure \
|
||||
--with-systemduserunitdir=%{_userunitdir}
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
sed -i 's|/env python3|/python3|' %{buildroot}%{_bindir}/%{name}-indicator
|
||||
%find_lang %{name}
|
||||
|
||||
%check
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.appdata.xml
|
||||
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
||||
|
||||
|
||||
%post
|
||||
%systemd_user_post %{name}.service
|
||||
|
||||
%post indicator
|
||||
%systemd_user_post %{name}-indicator.service
|
||||
|
||||
%preun
|
||||
%systemd_user_preun %{name}.service
|
||||
|
||||
%preun indicator
|
||||
%systemd_user_preun %{name}-indicator.service
|
||||
|
||||
%files -f %{name}.lang
|
||||
%license COPYING
|
||||
%doc README.md %{name}.conf.sample
|
||||
%{_bindir}/%{name}
|
||||
%{_mandir}/man1/%{name}.1%{?ext_man}
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
||||
%{_userunitdir}/%{name}.service
|
||||
|
||||
%files indicator
|
||||
%{_bindir}/%{name}-indicator
|
||||
%{_datadir}/applications/%{name}-indicator.desktop
|
||||
%{_datadir}/appdata/gammastep-indicator.appdata.xml
|
||||
%{_datadir}/icons/hicolor/scalable/apps/%{name}-status-*.svg
|
||||
%{_userunitdir}/%{name}-indicator.service
|
||||
%{python3_sitelib}/%{name}_indicator/
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user