Skip to content

Instantly share code, notes, and snippets.

Created February 4, 2023 21:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
clight rpkg spec template for blog post
Name: {{{ git_cwd_name name="clight" }}}
Version: {{{ git_cwd_version lead="$(git tag | sed -n 's/^v//p' | sort --version-sort -r | head -n1)" }}}
Release: 1%{?dist}
Summary: A C daemon that turns your webcam into a light sensor. It will adjust screen backlight based on ambient brightness.
License: GPL-3.0
VCS: {{{ git_cwd_vcs }}}
Source0: {{{ git_cwd_pack }}}
BuildRequires: cmake
BuildRequires: g++
BuildRequires: systemd-devel
BuildRequires: popt-devel
BuildRequires: libconfig-devel
BuildRequires: gsl-devel
BuildRequires: dbus-devel
BuildRequires: libmodule
Requires: systemd
Requires: popt
Requires: gsl
Requires: libconfig
Requires: libmodule
Requires: clightd
%global debug_package %{nil}
A linux bus interface that lets you change screen brightness, compute captured webcam frames brightness and change screen temperature.
{{{ git_cwd_setup_macro }}}
mkdir -p build
cd build
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=%{_lib} -DCMAKE_BUILD_TYPE="Release" ..
cd build
%license COPYING
{{{ git_cwd_changelog }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment