]> git.pld-linux.org Git - packages/redshift.git/blob - redshift.spec
new, version 1.7
[packages/redshift.git] / redshift.spec
1 Summary:        Adjusts the color temperature of your screen according to time of day
2 Name:           redshift
3 Version:        1.7
4 Release:        1
5 License:        GPL v3+
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
19 BuildRequires:  python
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)
25
26 %description
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.
30
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.
35
36 This package provides the base program.
37
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
44
45 %description -n gtk-%{name}
46 This package provides GTK integration for Redshift, a screen color
47 temperature adjustment program.
48
49 %prep
50 %setup -q
51 %patch0 -p1
52 %patch1 -p0
53
54 %build
55 %configure \
56         --disable-silent-rules
57 %{__make}
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 %{__make} install \
62         INSTALL="install -p" \
63         DESTDIR=$RPM_BUILD_ROOT
64
65 %py_postclean
66
67 %find_lang %{name}
68 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/gtk-redshift.desktop
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post -n gtk-%{name}
74 %update_icon_cache hicolor
75
76 %postun -n gtk-%{name}
77 %update_icon_cache hicolor
78
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*
84
85 %files -n gtk-%{name}
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
This page took 0.083993 seconds and 4 git commands to generate.