redshift/redshift.spec

98 lines
2.8 KiB
RPMSpec

Name: redshift
Version: 1.9.1
Release: 1mamba
Summary: Adjusts the color temperature of your screen according to time of day
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
URL: http://jonls.dk/redshift/
Source: http://github.com/jonls/redshift/archive/v%{version}.tar.gz
Patch: redshift-1.7-geoclue_provider.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: GConf-devel
BuildRequires: glibc-devel
BuildRequires: libdbus-devel
BuildRequires: libdbus-glib-devel
BuildRequires: libgeoclue-devel
BuildRequires: libglib-devel
BuildRequires: libpython-devel
BuildRequires: libX11-devel
BuildRequires: libxcb-devel
BuildRequires: libxml2-devel
BuildRequires: libXxf86vm-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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.
This program is inspired by f.lux.
%package gtk
Summary: Redshift widget for GTK
Group: Graphical Desktop/Applications/Utilities
Requires: pygtk
Requires: python-xdg
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: gtk-%{name}
%description gtk
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.
This program is inspired by f.lux.
This package provides the Redshift widget for GTK.
%prep
%setup -q
%patch -p1
%build
autoreconf -if
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \
uninstall-ubuntu_mono_{dark,light}_iconDATA
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/redshift
%{_mandir}/man?/*
%doc COPYING
#%doc NEWS README
%files gtk
%defattr(-,root,root,-)
%{_bindir}/redshift-gtk
%{_prefix}/lib/systemd/user/redshift-gtk.service
%{_prefix}/lib/systemd/user/redshift.service
%{_datadir}/icons/hicolor/scalable/apps/redshift*.svg
%{_datadir}/applications/redshift-gtk.desktop
%{python3_sitelib}/redshift_gtk
%changelog
* Sat Apr 26 2014 Automatic Build System <autodist@mambasoft.it> 1.9.1-1mamba
- automatic version update by autodist
* Wed Apr 16 2014 Automatic Build System <autodist@mambasoft.it> 1.9-1mamba
- automatic version update by autodist
* Tue Nov 19 2013 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.8-1mamba
- update to 1.8
* Fri Aug 19 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.7-1mamba
- update to 1.7
* Thu Jun 09 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.6-1mamba
- package created by autospec