]> git.pld-linux.org Git - packages/redshift.git/blob - redshift.spec
- up to 1.9.1
[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.9.1
4 Release:        1
5 License:        GPL v3+
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)
27
28 %description
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.
32
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.
37
38 This package provides the base program.
39
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
47
48 %description -n %{name}-gtk
49 This package provides GTK integration for Redshift, a screen color
50 temperature adjustment program.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55
56 %{__sed} -i -e '1s,^#!.*python,#!%{__python},' src/redshift-gtk/redshift-gtk.in
57
58 %build
59 %configure \
60         --disable-silent-rules
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 %{__make} install \
66         INSTALL="install -p" \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 %py_postclean
70
71 %find_lang %{name}
72 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/redshift-gtk.desktop
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post -n %{name}-gtk
78 %update_icon_cache hicolor
79
80 %postun -n %{name}-gtk
81 %update_icon_cache hicolor
82
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*
88
89 %files -n %{name}-gtk
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
This page took 0.031873 seconds and 3 git commands to generate.