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