|
|
db0a20 |
Name: bolt
|
|
|
db0a20 |
Version: 0.7
|
|
|
db0a20 |
Release: 1%{?dist}
|
|
|
db0a20 |
Summary: Thunderbolt device manager
|
|
|
db0a20 |
License: LGPLv2+
|
|
|
db0a20 |
URL: https://gitlab.freedesktop.org/bolt/bolt
|
|
|
db0a20 |
Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.bz2
|
|
|
db0a20 |
Patch0: py2-compat.patch
|
|
|
db0a20 |
Patch1: journal-fix-format.patch
|
|
|
db0a20 |
Patch2: use-sendfile.patch
|
|
|
db0a20 |
Patch3: unsupported-settings.patch
|
|
|
db0a20 |
|
|
|
db0a20 |
BuildRequires: gcc
|
|
|
db0a20 |
BuildRequires: asciidoc
|
|
|
db0a20 |
BuildRequires: meson
|
|
|
db0a20 |
BuildRequires: libudev-devel
|
|
|
db0a20 |
BuildRequires: pkgconfig(gio-2.0)
|
|
|
db0a20 |
BuildRequires: pkgconfig(libudev)
|
|
|
db0a20 |
BuildRequires: pkgconfig(systemd)
|
|
|
db0a20 |
BuildRequires: pkgconfig(libsystemd)
|
|
|
db0a20 |
BuildRequires: polkit-devel
|
|
|
db0a20 |
BuildRequires: systemd
|
|
|
db0a20 |
%{?systemd_requires}
|
|
|
db0a20 |
|
|
|
db0a20 |
# for the integration test (optional)
|
|
|
db0a20 |
%if 0%{?fedora}
|
|
|
db0a20 |
BuildRequires: pygobject3-devel
|
|
|
db0a20 |
BuildRequires: python3-dbus
|
|
|
db0a20 |
BuildRequires: python3-dbusmock
|
|
|
db0a20 |
BuildRequires: umockdev-devel
|
|
|
db0a20 |
%endif
|
|
|
db0a20 |
|
|
|
db0a20 |
%description
|
|
|
db0a20 |
bolt is a system daemon to manage thunderbolt 3 devices via a D-BUS
|
|
|
db0a20 |
API. Thunderbolt 3 features different security modes that require
|
|
|
db0a20 |
devices to be authorized before they can be used. The D-Bus API can be
|
|
|
db0a20 |
used to list devices, enroll them (authorize and store them in the
|
|
|
db0a20 |
local database) and forget them again (remove previously enrolled
|
|
|
db0a20 |
devices). It also emits signals if new devices are connected (or
|
|
|
db0a20 |
removed). During enrollment devices can be set to be automatically
|
|
|
db0a20 |
authorized as soon as they are connected. A command line tool, called
|
|
|
db0a20 |
boltctl, can be used to control the daemon and perform all the above
|
|
|
db0a20 |
mentioned tasks.
|
|
|
db0a20 |
|
|
|
db0a20 |
%prep
|
|
|
db0a20 |
%autosetup -p1
|
|
|
db0a20 |
|
|
|
db0a20 |
%build
|
|
|
db0a20 |
%meson -Ddb-name=boltd
|
|
|
db0a20 |
%meson_build
|
|
|
db0a20 |
|
|
|
db0a20 |
%check
|
|
|
db0a20 |
%meson_test
|
|
|
db0a20 |
|
|
|
db0a20 |
%install
|
|
|
db0a20 |
%meson_install
|
|
|
db0a20 |
install -m0755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/boltd
|
|
|
db0a20 |
|
|
|
db0a20 |
|
|
|
db0a20 |
%post
|
|
|
db0a20 |
%systemd_post %{name}.service
|
|
|
db0a20 |
|
|
|
db0a20 |
%preun
|
|
|
db0a20 |
%systemd_preun %{name}.service
|
|
|
db0a20 |
|
|
|
db0a20 |
%postun
|
|
|
db0a20 |
%systemd_postun_with_restart %{name}.service
|
|
|
db0a20 |
|
|
|
db0a20 |
%files
|
|
|
db0a20 |
%license COPYING
|
|
|
db0a20 |
%doc README.md
|
|
|
db0a20 |
%{_bindir}/boltctl
|
|
|
db0a20 |
%{_libexecdir}/boltd
|
|
|
db0a20 |
%{_unitdir}/%{name}.service
|
|
|
db0a20 |
%{_udevrulesdir}/*-%{name}.rules
|
|
|
db0a20 |
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.bolt.conf
|
|
|
db0a20 |
%{_datadir}/dbus-1/interfaces/org.freedesktop.bolt.xml
|
|
|
db0a20 |
%{_datadir}/polkit-1/actions/org.freedesktop.bolt.policy
|
|
|
db0a20 |
%{_datadir}/polkit-1/rules.d/org.freedesktop.bolt.rules
|
|
|
db0a20 |
%{_datadir}/dbus-1/system-services/org.freedesktop.bolt.service
|
|
|
db0a20 |
%{_mandir}/man1/boltctl.1*
|
|
|
db0a20 |
%{_mandir}/man8/boltd.8*
|
|
|
db0a20 |
%dir %{_localstatedir}/lib/boltd
|
|
|
db0a20 |
|
|
|
db0a20 |
%changelog
|
|
|
db0a20 |
* Tue Mar 26 2019 Christian Kellner <ckellner@redhat.com> - 0.7-1
|
|
|
db0a20 |
- bolt 0.7 release with pre-bootacl support.
|
|
|
db0a20 |
Resolves: #1629713
|
|
|
db0a20 |
- Patch to fix a format string bug in the 0.7
|
|
|
db0a20 |
- Drop restricting-capabilities.patch (included in 0.7)
|
|
|
db0a20 |
- Patch to not use unsuppported unit file settings.
|
|
|
db0a20 |
Resolves: #1631050
|
|
|
db0a20 |
|
|
|
db0a20 |
* Wed Jul 18 2018 Christian Kellner <ckellner@redhat.com> - 0.4-3
|
|
|
db0a20 |
- Include patch to tighten sandbox by restricting capabilities
|
|
|
db0a20 |
- Resolves: #1559611
|
|
|
db0a20 |
|
|
|
db0a20 |
* Wed Jun 6 2018 Christian Kellner <ckellner@redhat.com> - 0.4-2
|
|
|
db0a20 |
- bolt 0.4 upstream release
|
|
|
db0a20 |
- Resolves: #1559611
|