0c5121
Name:          bolt
8f2047
Version:       0.9.1
60dd81
Release:       1%{?dist}
0c5121
Summary:       Thunderbolt device manager
0c5121
License:       LGPLv2+
0d6636
URL:           https://gitlab.freedesktop.org/bolt/bolt
60dd81
Source0:       %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz
0c5121
0d6636
BuildRequires: gcc
0c5121
BuildRequires: asciidoc
0c5121
BuildRequires: meson
0c5121
BuildRequires: libudev-devel
0c5121
BuildRequires: pkgconfig(gio-2.0)
0c5121
BuildRequires: pkgconfig(libudev)
0c5121
BuildRequires: polkit-devel
0c5121
BuildRequires: systemd
0c5121
%{?systemd_requires}
0c5121
0c5121
%description
8f2047
bolt is a system daemon to manage Thunderbolt devices via a D-BUS
8f2047
API. Thunderbolt 3 introduced different security modes that require
0c5121
devices to be authorized before they can be used. The D-Bus API can be
0c5121
used to list devices, enroll them (authorize and store them in the
0c5121
local database) and forget them again (remove previously enrolled
0c5121
devices). It also emits signals if new devices are connected (or
0c5121
removed). During enrollment devices can be set to be automatically
0c5121
authorized as soon as they are connected.  A command line tool, called
0c5121
boltctl, can be used to control the daemon and perform all the above
0c5121
mentioned tasks.
0c5121
0c5121
%prep
0d6636
%autosetup -p1
0c5121
0c5121
%build
0d6636
%meson -Ddb-name=boltd
0c5121
%meson_build
0c5121
0c5121
%check
0c5121
%meson_test
0c5121
0c5121
%install
0c5121
%meson_install
0c5121
install -m0755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/boltd
0c5121
0c5121
%post
0c5121
%systemd_post %{name}.service
0c5121
0c5121
%preun
0c5121
%systemd_preun %{name}.service
0c5121
0c5121
%postun
0c5121
%systemd_postun_with_restart %{name}.service
0c5121
0c5121
%files
0c5121
%license COPYING
0d6636
%doc README.md CHANGELOG.md
0c5121
%{_bindir}/boltctl
0c5121
%{_libexecdir}/boltd
0c5121
%{_unitdir}/%{name}.service
0c5121
%{_udevrulesdir}/*-%{name}.rules
0d6636
%{_datadir}/dbus-1/system.d/org.freedesktop.bolt.conf
0c5121
%{_datadir}/dbus-1/interfaces/org.freedesktop.bolt.xml
0c5121
%{_datadir}/polkit-1/actions/org.freedesktop.bolt.policy
0c5121
%{_datadir}/polkit-1/rules.d/org.freedesktop.bolt.rules
0c5121
%{_datadir}/dbus-1/system-services/org.freedesktop.bolt.service
0c5121
%{_mandir}/man1/boltctl.1*
0c5121
%{_mandir}/man8/boltd.8*
0d6636
%ghost %dir %{_localstatedir}/lib/boltd
0c5121
0c5121
%changelog
8f2047
* Wed Jan 13 2021 Christian Kellner <ckellner@redhat.com> - 0.9.1-1
8f2047
- bolt 0.9 upstream release
8f2047
- Update description with less emphasis on Thunderbolt version
8f2047
60dd81
* Mon Jun 15 2020 Christian Kellner <ckellner@redhat.com> - 0.9-1
60dd81
- bolt 0.9 upstream release
60dd81
0d6636
* Fri Jun 14 2019 Christian Kellner <ckellner@redhat.com> - 0.8-2
0d6636
- Rebuilt for fixed gating.yaml (remove missing tier1 gate)
0d6636
0d6636
* Thu Jun 13 2019 Christian Kellner <ckellner@redhat.com> - 0.8-1
0d6636
- bolt 0.8 upstream release with pre-boot ACL and IOMMU support
0d6636
  D-Bus Configuration moved from sysconfdir to datadir
0d6636
  Resolves: #1629715
0d6636
0c5121
* Wed Jul 18 2018 Christian Kellner <ckellner@redhat.com> - 0.4-1
0c5121
- bolt 0.4 upstream release
0c5121
- Remove optional test dependencies
0c5121
0c5121
* Tue Apr 10 2018 Christian Kellner <ckellner@redhat.com> - 0.3-1
0c5121
- bolt 0.3 upstream release
0c5121
- Update BuildRequires to include gcc
0c5121
- Use forge macros
0c5121
0c5121
* Tue Mar  6 2018 Christian Kellner <ckellner@redhat.com> - 0.2-1
0c5121
- bolt 0.2 upstream release
0c5121
- Update BuildRequires dependencies.
0c5121
0c5121
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-3
0c5121
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0c5121
0c5121
* Sun Dec 17 2017 Christian Kellner <ckellner@redhat.com> - 0.1-2
0c5121
- Set database path to /var/lib/boltd, create it during
0c5121
  installation, which is needed for the service file to work.
0c5121
0c5121
* Thu Dec 14 2017 Christian Kellner <ckellner@redhat.com> - 0.1-1
0c5121
- Initial upstream release