-
Notifications
You must be signed in to change notification settings - Fork 2
/
mdevctl.spec.in
51 lines (38 loc) · 1.05 KB
/
mdevctl.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
43
44
45
46
47
48
49
50
%global commit #COMMIT#
Name: mdevctl
Version: #VERSION#
Release: 1%{?dist}
Summary: Mediated device management and persistence utility
Group: System Environment/Kernel
License: LGPLv2
URL: https://github.com/mdevctl/mdevctl
BuildArch: noarch
# Probably wrong
Source0: https://github.com/mdevctl/mdevctl/archive/%{name}-%{version}-%{commit}.tar.gz
BuildRequires: systemd
Requires(post,postun): %{_sbindir}/udevadm
Requires: coreutils udev
%description
mdevctl is a utility for managing and persisting mediated devices.
mdevctl integrates with udev and systemd to automatically persist
mdevs created through sysfs and provides a user interface for
creating/removing, starting/stopping, as well as listing active,
available, and saved devices.
%prep
%setup -q -n %{name}-%{version}-%{commit}
%install
%make_install
%files
%license COPYING
%doc README
%{_sbindir}/mdevctl
%{_libexecdir}/mdevctl
%{_udevrulesdir}/*.rules
%{_unitdir}/[email protected]
%{_sysconfdir}/mdevctl.conf
%dir %{_sysconfdir}/mdevctl.d
%post
%udev_rules_update
%postun
%udev_rules_update
%changelog