1 Summary: Adjusts the color temperature of your screen according to time of day
6 Group: Applications/System
7 Source0: http://launchpad.net/redshift/trunk/%{version}/+download/%{name}-%{version}.tar.xz
8 # Source0-md5: 4c5dd6ea043116f9c15a9d5ec4c608de
9 # Remove Ubuntu specific geoclue provider
10 Patch0: %{name}-geoclue-provider.patch
11 # https://bugs.launchpad.net/redshift/+bug/888661
12 # http://bazaar.launchpad.net/~jonls/redshift/trunk/revision/165
13 URL: http://jonls.dk/redshift/
14 BuildRequires: GConf2-devel
15 BuildRequires: desktop-file-utils
16 BuildRequires: geoclue-devel
17 BuildRequires: gettext-devel
18 BuildRequires: pkgconfig
19 BuildRequires: python3 >= 3.2
20 BuildRequires: rpm-pythonprov
21 BuildRequires: rpmbuild(macros) >= 1.219
22 BuildRequires: sed >= 4.0
23 BuildRequires: xorg-lib-libXxf86vm-devel
24 Requires: python3 >= 3.2
25 Requires: python3-pyxdg
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Redshift adjusts the color temperature of your screen according to
30 your surroundings. This may help your eyes hurt less if you are
31 working in front of the screen at night.
33 The color temperature is set according to the position of the sun. A
34 different color temperature is set during night and daytime. During
35 twilight and early morning, the color temperature transitions smoothly
36 from night to daytime temperature to allow your eyes to slowly adapt.
38 This package provides the base program.
40 %package -n %{name}-gtk
41 Summary: GTK integration for Redshift
42 Group: Applications/System
43 Requires: %{name} = %{version}-%{release}
44 Requires: python-pygtk-gtk
45 Requires: python-pyxdg
46 Obsoletes: gtk-redshift
48 %description -n %{name}-gtk
49 This package provides GTK integration for Redshift, a screen color
50 temperature adjustment program.
56 %{__sed} -i -e '1s,^#!.*python,#!%{__python},' src/redshift-gtk/redshift-gtk.in
60 --disable-silent-rules
64 rm -rf $RPM_BUILD_ROOT
66 INSTALL="install -p" \
67 DESTDIR=$RPM_BUILD_ROOT
72 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/redshift-gtk.desktop
75 rm -rf $RPM_BUILD_ROOT
78 %update_icon_cache hicolor
80 %postun -n %{name}-gtk
81 %update_icon_cache hicolor
83 %files -f %{name}.lang
84 %defattr(644,root,root,755)
85 %doc DESIGN HACKING NEWS README README-colorramp
86 %attr(755,root,root) %{_bindir}/redshift
87 %{_mandir}/man1/redshift.1*
90 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_bindir}/redshift-gtk
92 %{py3_sitescriptdir}/redshift_gtk
93 %{_iconsdir}/hicolor/scalable/apps/redshift*.svg
94 %{_desktopdir}/redshift-gtk.desktop
95 %{systemduserunitdir}/redshift.service
96 %{systemduserunitdir}/redshift-gtk.service