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

Name:           light
Version:        1.2
Release:        0%{?dist}
Summary:        GNU/Linux application to control backlights
License:        GPL-3.0-only
Group:          System/Management
BuildRequires:  autoconf
BuildRequires:  automake

Light is a program to control backlights and other lights under GNU/Linux.
Works where other software has proven unreliable (xbacklight etc.)
Works even in a fully CLI-environment, i.e. it does not rely on X
Works in wayland environments.
Provides functionality to automatically control backlights with the highest precision available
Extra features, like setting a minimum brightness value for controllers, or saving/restoring the value for poweroffs/boots.

%global debug_package %{nil}

%autosetup -n light-%{version}

sh ./
# FIXME: you should use the %%configure macro
./configure --with-udev --libdir=%{_libexecdir} --bindir=%{_bindir}
make %{?_smp_mflags}

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

%license COPYING
%attr(0755,root,root) %{_bindir}/light
%attr(0644,root,root) %{_libexecdir}/udev/rules.d/90-backlight.rules
%attr(0444,root,root) %{_mandir}/man1/*