fluxgui/fluxgui.spec

79 lines
2.7 KiB
RPMSpec

Name: fluxgui
Version: 1.2.0
Release: 1mamba
Summary: Better lighting for Linux
Group: Graphical Desktop/Applications/Utilities
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/xflux-gui/fluxgui.git
## GITSOURCE https://github.com/xflux-gui/fluxgui.git v1.2.0
Source: https://github.com/xflux-gui/fluxgui.git/v%{version}/fluxgui-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXrandr-devel
BuildRequires: libXxf86vm-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
Requires: python-pexpect-py36
Requires: python-ptyprocess-py36
Requires: libappindicator3
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
The f.lux indicator applet fluxgui is an indicator applet to control xflux, an application that makes the color of your computer's display adapt to the time of day: warm at night, and like sunlight during the day. Reducing blue light exposure in the evening can help you fall asleep at night. See https://justgetflux.com/research.html for more details.
%prep
%setup -q
%build
CFLAGS="%{optflags}" %{__python36} setup.py build
./download-xflux.py
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python36} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python36_inc} \
--install-lib=%{python36_sitearch} \
--record=%{name}.filelist
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
install xflux %{buildroot}%{_bindir}/xflux
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/xflux
%{_bindir}/fluxgui
%{python36_sitearch}/f.lux_indicator_applet-1.2.0-py3.6.egg-info
%dir %{python36_sitearch}/fluxgui
%{python36_sitearch}/fluxgui/*
%{_datadir}/applications/fluxgui.desktop
%{_datadir}/glib-2.0/schemas/apps.fluxgui.gschema.xml
%{_datadir}/glib-2.0/schemas/gschemas.compiled
%{_datadir}/icons/Adwaita/16x16/status/fluxgui-panel.svg
%{_datadir}/icons/breeze-dark/status/22/fluxgui-panel.svg
%{_datadir}/icons/breeze/status/22/fluxgui-panel.svg
%{_datadir}/icons/elementary-xfce-dark/panel/22/fluxgui-panel.svg
%{_datadir}/icons/elementary-xfce/panel/22/fluxgui-panel.svg
%{_datadir}/icons/elementary/status/24/fluxgui-panel.svg
%{_datadir}/icons/hicolor/*/apps/fluxgui.svg
%{_datadir}/icons/ubuntu-mono-dark/status/*/fluxgui-panel.svg
%{_datadir}/icons/ubuntu-mono-light/status/*/fluxgui-panel.svg
%doc LICENSE
%changelog
* Sat Jul 20 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-1mamba
- package created using the webbuild interface