]> git.pld-linux.org Git - packages/redshift.git/blame - redshift.spec
- python 3.6
[packages/redshift.git] / redshift.spec
CommitLineData
f16f24f7
ER
1Summary: Adjusts the color temperature of your screen according to time of day
2Name: redshift
53fd8a1a 3Version: 1.11
7e919ce1 4Release: 2
f16f24f7
ER
5License: GPL v3+
6Group: Applications/System
53fd8a1a
JP
7Source0: https://github.com/jonls/redshift/releases/download/v%{version}/%{name}-%{version}.tar.xz
8# Source0-md5: a31d768b0348c5202e58612855a9027e
f16f24f7
ER
9# Remove Ubuntu specific geoclue provider
10Patch0: %{name}-geoclue-provider.patch
11# https://bugs.launchpad.net/redshift/+bug/888661
12# http://bazaar.launchpad.net/~jonls/redshift/trunk/revision/165
f16f24f7
ER
13URL: http://jonls.dk/redshift/
14BuildRequires: GConf2-devel
b3b8c222
JP
15BuildRequires: autoconf >= 2.69
16BuildRequires: automake
f16f24f7
ER
17BuildRequires: desktop-file-utils
18BuildRequires: geoclue-devel
b3b8c222
JP
19BuildRequires: gettext-tools >= 0.17
20BuildRequires: glib2-devel >= 1:2.26
21BuildRequires: intltool >= 0.50
22BuildRequires: libdrm-devel
23BuildRequires: libxcb-devel
6412d4fd 24BuildRequires: pkgconfig
a3b98209 25BuildRequires: python3 >= 3.2
f16f24f7
ER
26BuildRequires: rpm-pythonprov
27BuildRequires: rpmbuild(macros) >= 1.219
a3b98209 28BuildRequires: sed >= 4.0
f16f24f7
ER
29BuildRequires: xorg-lib-libXxf86vm-devel
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33Redshift adjusts the color temperature of your screen according to
34your surroundings. This may help your eyes hurt less if you are
35working in front of the screen at night.
36
37The color temperature is set according to the position of the sun. A
38different color temperature is set during night and daytime. During
39twilight and early morning, the color temperature transitions smoothly
40from night to daytime temperature to allow your eyes to slowly adapt.
41
42This package provides the base program.
43
a3b98209 44%package -n %{name}-gtk
f16f24f7
ER
45Summary: GTK integration for Redshift
46Group: Applications/System
47Requires: %{name} = %{version}-%{release}
b3b8c222
JP
48Requires: gtk+3
49Requires: python3 >= 3.2
50Requires: python3-pyxdg
a3b98209 51Obsoletes: gtk-redshift
f16f24f7 52
a3b98209 53%description -n %{name}-gtk
f16f24f7
ER
54This package provides GTK integration for Redshift, a screen color
55temperature adjustment program.
56
57%prep
58%setup -q
59%patch0 -p1
f16f24f7 60
53fd8a1a 61%{__sed} -i -e '1s,^#!.*python3,#!%{__python3},' src/redshift-gtk/redshift-gtk.in
916dff9a 62
f16f24f7 63%build
b3b8c222
JP
64%{__gettextize}
65%{__intltoolize}
66%{__aclocal} -I m4
67%{__autoheader}
68%{__automake}
69%{__autoconf}
f16f24f7 70%configure \
53fd8a1a 71 am_cv_python_pythondir=%{py3_sitescriptdir} \
b3b8c222
JP
72 --disable-silent-rules \
73 --enable-drm \
74 --enable-geoclue \
75 --enable-geoclue2 \
76 --enable-gui \
77 --enable-randr \
78 --enable-vidmode
f16f24f7
ER
79%{__make}
80
81%install
82rm -rf $RPM_BUILD_ROOT
83%{__make} install \
84 INSTALL="install -p" \
85 DESTDIR=$RPM_BUILD_ROOT
86
87%py_postclean
88
89%find_lang %{name}
a3b98209 90desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/redshift-gtk.desktop
f16f24f7
ER
91
92%clean
93rm -rf $RPM_BUILD_ROOT
94
a3b98209 95%post -n %{name}-gtk
f16f24f7
ER
96%update_icon_cache hicolor
97
a3b98209 98%postun -n %{name}-gtk
f16f24f7
ER
99%update_icon_cache hicolor
100
101%files -f %{name}.lang
102%defattr(644,root,root,755)
53fd8a1a 103%doc DESIGN HACKING NEWS README README-colorramp redshift.conf.sample
f16f24f7
ER
104%attr(755,root,root) %{_bindir}/redshift
105%{_mandir}/man1/redshift.1*
106
a3b98209 107%files -n %{name}-gtk
f16f24f7 108%defattr(644,root,root,755)
a3b98209 109%attr(755,root,root) %{_bindir}/redshift-gtk
b3b8c222 110%{_datadir}/appdata/redshift-gtk.appdata.xml
a3b98209 111%{py3_sitescriptdir}/redshift_gtk
f16f24f7 112%{_iconsdir}/hicolor/scalable/apps/redshift*.svg
53fd8a1a 113%{_desktopdir}/redshift.desktop
a3b98209
JP
114%{_desktopdir}/redshift-gtk.desktop
115%{systemduserunitdir}/redshift.service
116%{systemduserunitdir}/redshift-gtk.service
This page took 0.100682 seconds and 4 git commands to generate.