File redshift.spec of Package redshift

Name:           redshift
Version:        1.6
Release:        1
License:        GPL v3
URL:            http://jonls.dk/redshift/
Group:          System/X11/Utilities
Summary:        Adjusts the color temperature of your screen
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gconf2-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  python-devel
BuildRequires:  xorg-x11-devel
BuildRequires:	update-desktop-files

Source:         %{name}-%{version}.tar.bz2
Patch0:		redshift-no-return-nonvoid.patch

%{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
%patch0

%build
%configure
make

%install
make install DESTDIR=%{buildroot}
%{__rm} -rf %{buildroot}%{_datadir}/icons/ubuntu-mono-*

%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
openSUSE Build Service is sponsored by