73 lines
1.9 KiB
RPMSpec
73 lines
1.9 KiB
RPMSpec
|
Name: bolt
|
||
|
Version: 0.1
|
||
|
Release: 1%{?dist}
|
||
|
Summary: Thunderbolt device manager
|
||
|
License: LGPLv2+
|
||
|
URL: https://github.com/gicmo/bolt
|
||
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||
|
Source1: https://raw.githubusercontent.com/gicmo/bolt/master/COPYING
|
||
|
|
||
|
BuildRequires: asciidoc
|
||
|
BuildRequires: meson
|
||
|
BuildRequires: libudev-devel
|
||
|
BuildRequires: pkgconfig(gio-2.0)
|
||
|
BuildRequires: pkgconfig(libudev)
|
||
|
BuildRequires: pkgconfig(systemd)
|
||
|
BuildRequires: polkit-devel
|
||
|
BuildRequires: umockdev-devel
|
||
|
BuildRequires: systemd
|
||
|
%{?systemd_requires}
|
||
|
|
||
|
%description
|
||
|
bolt is a system daemon to manage thunderbolt 3 devices via a D-BUS
|
||
|
API. Thunderbolt 3 features different security modes that require
|
||
|
devices to be authorized before they can be used. The D-Bus API can be
|
||
|
used to list devices, enroll them (authorize and store them in the
|
||
|
local database) and forget them again (remove previously enrolled
|
||
|
devices). It also emits signals if new devices are connected (or
|
||
|
removed). During enrollment devices can be set to be automatically
|
||
|
authorized as soon as they are connected. A command line tool, called
|
||
|
boltctl, can be used to control the daemon and perform all the above
|
||
|
mentioned tasks.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
cp %{SOURCE1} ./
|
||
|
|
||
|
%build
|
||
|
%meson
|
||
|
%meson_build
|
||
|
|
||
|
%check
|
||
|
%meson_test
|
||
|
|
||
|
%install
|
||
|
%meson_install
|
||
|
|
||
|
%post
|
||
|
%systemd_post %{name}.service
|
||
|
|
||
|
%preun
|
||
|
%systemd_preun %{name}.service
|
||
|
|
||
|
%postun
|
||
|
%systemd_postun_with_restart %{name}.service
|
||
|
|
||
|
%files
|
||
|
%license COPYING
|
||
|
%doc README.md
|
||
|
%{_bindir}/boltctl
|
||
|
%{_libexecdir}/boltd
|
||
|
%{_unitdir}/%{name}.service
|
||
|
%{_udevrulesdir}/*-%{name}.rules
|
||
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.bolt.conf
|
||
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.bolt.xml
|
||
|
%{_datadir}/polkit-1/actions/org.freedesktop.bolt.policy
|
||
|
%{_datadir}/polkit-1/rules.d/org.freedesktop.bolt.rules
|
||
|
%{_datadir}/dbus-1/system-services/org.freedesktop.bolt.service
|
||
|
%{_mandir}/man1/boltctl.1*
|
||
|
|
||
|
%changelog
|
||
|
* Thu Dec 14 2017 Christian Kellner <ckellner@redhat.com> - 0.1-1
|
||
|
- Initial upstream release
|