Name: flux Version: 1.0 Release: 2%{?dist} Summary: Better lighting for your computer License: MIT URL: https://justgetflux.com Source0: https://github.com/Kilian/f.lux-indicator-applet/archive/master.zip Source1: https://justgetflux.com/linux/xflux64.tgz #Source2: https://justgetflux.com/linux/xflux-pre.tgz BuildRequires: python2-devel BuildRequires: desktop-file-utils Requires: python python-pexpect glade2 pyxdg Requires: gnome-python2-gconf python-appindicator libcanberra-gtk2 %description Ever notice how people texting at night have that eerie blue glow? Or wake up ready to write down the Next Great Idea, and get blinded by your computer screen? During the day, computer screens look good—they're designed to look like the sun. But, at 9PM, 10PM, or 3AM, you probably shouldn't be looking at the sun. %prep %setup -q -b 1 -n f.lux-indicator-applet-master %build %{__python2} setup.py build %install %{__python2} setup.py install --skip-build --root %{buildroot} desktop-file-validate %{buildroot}/%{_datadir}/applications/fluxgui.desktop # for x68_64 use native binary %ifarch x86_64 cp ../xflux %{buildroot}/%{_bindir} %endif %files %{python2_sitelib}/* %{_bindir}/xflux %{_bindir}/fluxgui %{_datadir}/icons/hicolor/scalable/apps/fluxgui*.svg %{_datadir}/applications/fluxgui.desktop %doc # https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog * Fri Jun 19 2015 Jakub Jelen 1.0-2 - X86_64 use native binary instead of ix68 compatible * Fri Jun 19 2015 Jakub Jelen 1.0-1 - Initial release