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.bz2
8 # Source0-md5: c56512afa292b5a94b715ed4a1841d4c
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 Patch1: %{name}-geoclue-client-check.patch
14 URL: http://jonls.dk/redshift/
15 BuildRequires: GConf2-devel
16 BuildRequires: desktop-file-utils
17 BuildRequires: geoclue-devel
18 BuildRequires: gettext-devel
20 BuildRequires: rpm-pythonprov
21 BuildRequires: rpmbuild(macros) >= 1.219
22 BuildRequires: xorg-lib-libXrandr-devel
23 BuildRequires: xorg-lib-libXxf86vm-devel
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Redshift adjusts the color temperature of your screen according to
28 your surroundings. This may help your eyes hurt less if you are
29 working in front of the screen at night.
31 The color temperature is set according to the position of the sun. A
32 different color temperature is set during night and daytime. During
33 twilight and early morning, the color temperature transitions smoothly
34 from night to daytime temperature to allow your eyes to slowly adapt.
36 This package provides the base program.
38 %package -n gtk-%{name}
39 Summary: GTK integration for Redshift
40 Group: Applications/System
41 Requires: %{name} = %{version}-%{release}
42 Requires: python-pygtk-gtk
43 Requires: python-pyxdg
45 %description -n gtk-%{name}
46 This package provides GTK integration for Redshift, a screen color
47 temperature adjustment program.
56 --disable-silent-rules
60 rm -rf $RPM_BUILD_ROOT
62 INSTALL="install -p" \
63 DESTDIR=$RPM_BUILD_ROOT
68 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/gtk-redshift.desktop
71 rm -rf $RPM_BUILD_ROOT
74 %update_icon_cache hicolor
76 %postun -n gtk-%{name}
77 %update_icon_cache hicolor
79 %files -f %{name}.lang
80 %defattr(644,root,root,755)
81 %doc AUTHORS ChangeLog NEWS README
82 %attr(755,root,root) %{_bindir}/redshift
83 %{_mandir}/man1/redshift.1*
86 %defattr(644,root,root,755)
87 %attr(755,root,root) %{_bindir}/gtk-redshift
88 %{py_sitescriptdir}/gtk_redshift
89 %{_iconsdir}/hicolor/scalable/apps/redshift*.svg
90 %{_desktopdir}/gtk-redshift.desktop