File light.spec of Package light

#
# spec file for package light
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 Michael Aquilina
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           light
Version:        1.2.2
Release:        0
Summary:        Control backlight controllers
License:        GPL-3.0-only
Group:          System/Management
URL:            https://haikarainen.github.io/light/
Source0:        https://github.com/haikarainen/light/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0:         fix-build.patch
BuildRequires:  autoconf
BuildRequires:  automake

%description
Light is a program to control backlight controllers under GNU/Linux,
it is the successor of lightscript, which was a bash script
with the same purpose, and tries to maintain the same functionality.

Features
 - Works excellent where other software have been proven unusable
   or problematic, thanks to how it operates internally
   and the fact that it does not rely on X.
 - Can automatically figure out the best controller to use,
   making full use of underlying hardware.
 - Possibility to set a minimum brightness value, as some controllers
   set the screen to be pitch black at a value of 0 (or higher).

%prep
%autosetup -p1 -n light-%{version}

%build
autoreconf -fiv
%configure --with-udev --libdir=%{_libexecdir} --bindir=%{_bindir}
%make_build

%install
install -Dm755 src/light %{buildroot}%{_bindir}/light
install -Dm644 90-backlight.rules %{buildroot}%{_udevrulesdir}/90-backlight.rules
install -Dm644 light.1 %{buildroot}%{_mandir}/man1/light.1

%files
%license COPYING
%doc README.md DOCUMENTATION.md
%{_bindir}/light
%{_udevrulesdir}/90-backlight.rules
%{_mandir}/man1/light.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by