[packages/brightnessctl] new

atler atler at pld-linux.org
Wed Dec 25 15:19:01 CET 2024


commit 7b87279b81f6199d832c24fd42fa2c30b44f963c
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Dec 25 15:18:19 2024 +0100

    new

 brightnessctl.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
---
diff --git a/brightnessctl.spec b/brightnessctl.spec
new file mode 100644
index 0000000..ceda263
--- /dev/null
+++ b/brightnessctl.spec
@@ -0,0 +1,48 @@
+Summary:	A program to read and control device brightness
+Name:		brightnessctl
+Version:	0.5.1
+Release:	1
+License:	MIT
+Group:		Applications
+Source0:	https://github.com/Hummer12007/brightnessctl/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	f65719e7e9070f212dd4e1162d5d6412
+URL:		https://github.com/Hummer12007/brightnessctl
+BuildRequires:	pkgconfig
+BuildRequires:	systemd-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+his program allows you read and control device brightness on Linux.
+Devices, by default, include backlight and LEDs (searched for in
+corresponding classes). If omitted, the first found device is
+selected.
+
+It can also preserve current brightness before applying the operation
+(allowing for usecases like disabling backlight on lid close).
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+	CC="%{__cc}" \
+	CFLAGS='%{rpmcflags} %{rpmcppflags} -std=c99 -DVERSION=\"$(VERSION)\" -D_POSIX_C_SOURCE=200809L' \
+	LDFLAGS="%{rpmldflags}" \
+	ENABLE_SYSTEMD=1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT \
+	BINDIR="$RPM_BUILD_ROOT%{_bindir}" \
+	MANDIR="$RPM_BUILD_ROOT%{_mandir}" \
+	ENABLE_SYSTEMD=1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%attr(755,root,root) %{_bindir}/brightnessctl
+%{_mandir}/man1/brightnessctl.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/brightnessctl.git/commitdiff/7b87279b81f6199d832c24fd42fa2c30b44f963c



More information about the pld-cvs-commit mailing list