-
Notifications
You must be signed in to change notification settings - Fork 6
/
illum.spec.in
42 lines (34 loc) · 1016 Bytes
/
illum.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Name: illum
Version: %ver%
Release: %dist%
Summary: A daemon that responds to brightness keys by changing the backlight level
License: AGPLv3
URL: https://github.com/jmesmon/illum
%global commit %commit%
%global ccan_commit %ccan_commit%
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global owner jmesmon
Source0: https://github.com/%{owner}/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
Source1: https://github.com/%{owner}/ccan/archive/%{ccan_commit}/ccan-%{ccan_commit}.tar.gz
BuildRequires: ninja
BuildRequires: pkg-config
BuildRequires: libev-devel
BuildRequires: libevdev-devel
%description
%prep
%setup -qn %{name}-%{commit}
tar -zxf %{SOURCE1}
rmdir ccan
mv $(basename %{SOURCE1} .tar.gz) ccan
%build
%set_build_flags
./build -v
%install
rm -rf $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr ./do-install
%files
%defattr(-,root,root)
%doc README
%{_bindir}/%{name}-d
/usr/lib/systemd/system/%{name}.service
%changelog