File redshift.spec of Package redshift
#
# spec file for package redshift
#
# Copyright (c) 2011 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.7
Release: 3
License: GPL v3
Summary: Adjusts the color temperature of your screen
Url: http://jonls.dk/redshift/
Group: System/X11/Utilities
BuildRequires: hicolor-icon-theme
BuildRequires: python-devel
BuildRequires: update-desktop-files
BuildRequires: fdupes
BuildRequires: xorg-x11-devel
BuildRequires: gconf2-devel
Requires: python-xdg
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: http://launchpad.net/redshift/trunk/1.7/+download/redshift-1.7.tar.bz2
%{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.
%prep
%setup -q
%build
%configure
make
%install
%{?make_install} %{!?make_install:%makeinstall}
%fdupes %{buildroot}%{python_sitelib}
%suse_update_desktop_file gtk-redshift GTK X-SuSE-DesktopUtility
%find_lang %{name}
%clean
rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/gtk-redshift
%{_bindir}/redshift
%{python_sitelib}/gtk_redshift
%{_datadir}/applications/gtk-redshift.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
%{_mandir}/man1/redshift.1.gz
%changelog