File redshift.spec of Package redshift
#
# spec file for package redshift
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: redshift
Version: 1.8
Release: 0
Summary: Adjusts the color temperature of your screen
License: GPL-3.0
Group: System/X11/Utilities
Url: http://jonls.dk/redshift/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gettext-tools
BuildRequires: hicolor-icon-theme
BuildRequires: python-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(geoclue)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xxf86vm)
Requires: python-xdg
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: https://github.com/jonls/redshift/archive/v%{version}.tar.gz
%{py_requires}
%description
Redshift adjusts the color temperature of your screen according to your surroundings.
This may help your eyes hurt less if you are working in front of the screen at night.
%package gtk
Summary: Gtk frontend for redshift
Group: System/X11/Utilities
Requires: redshift = %{version}
%description gtk
A graphical user interface for the redshift tool that integrates into Gtk+ and GNOME.
%prep
%setup -q
%build
./bootstrap
%configure
make
%install
%{?make_install} %{!?make_install:%makeinstall}
%fdupes %{buildroot}%{python_sitelib}
%suse_update_desktop_file redshift-gtk GTK X-SuSE-DesktopUtility
%find_lang %{name}
%post gtk
%desktop_database_post
%icon_theme_cache_post
%postun gtk
%desktop_database_postun
%icon_theme_cache_postun
%files gtk -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/redshift-gtk
%{python_sitelib}/redshift_gtk
%{_datadir}/applications/redshift-gtk.desktop
%{_datadir}/icons/hicolor/scalable/apps/redshift-status-off.svg
%{_datadir}/icons/hicolor/scalable/apps/redshift-status-on.svg
%{_datadir}/icons/hicolor/scalable/apps/redshift.svg
%files
%defattr(-,root,root)
%{_bindir}/redshift
%{_mandir}/man1/redshift.1.gz
%changelog