82 lines
2.7 KiB
RPMSpec
82 lines
2.7 KiB
RPMSpec
Name: fluxgui
|
|
Version: 1.2.0
|
|
Release: 2mamba
|
|
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
|
|
Source: https://github.com/xflux-gui/fluxgui.git/v%{version}/fluxgui-%{version}.tar.bz2
|
|
License: BSD
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libX11-devel
|
|
BuildRequires: libXext-devel
|
|
BuildRequires: libXrandr-devel
|
|
BuildRequires: libXxf86vm-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libpython3-devel
|
|
BuildRequires: libstdc++6-devel
|
|
## AUTOBUILDREQ-END
|
|
Requires: python-pexpect-py3
|
|
Requires: python-ptyprocess-py3
|
|
Requires: libappindicator3
|
|
|
|
%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.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
|
|
|
./download-xflux.py
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%{__python3} setup.py install \
|
|
-O1 --skip-build \
|
|
--root="%{buildroot}" \
|
|
--install-headers=%{python3_inc} \
|
|
--install-lib=%{python3_sitearch} \
|
|
--record=%{name}.filelist
|
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
|
|
|
install xflux %{buildroot}%{_bindir}/xflux
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/xflux
|
|
%{_bindir}/fluxgui
|
|
%{python3_sitearch}/f.lux_indicator_applet-%{version}-py*.egg-info
|
|
%dir %{python3_sitearch}/fluxgui
|
|
%{python3_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 Feb 19 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-2mamba
|
|
- rebuilt with python 3.7
|
|
|
|
* Sat Jul 20 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-1mamba
|
|
- package created using the webbuild interface
|