Compare commits

...

10 Commits

Author SHA1 Message Date
Kate Hsuan 195a7869b5 Update to 0.9.5 2023-05-18 10:24:32 +00:00
Simon Steinbeiss b4cec0376d Update to 0.9.2
Resolves: rhbz#2048399
2022-02-26 19:43:10 +01:00
Mohan Boddu a0b8ee48e8 Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-08-09 19:31:09 +00:00
Mohan Boddu 81f1f120a4 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-04-15 22:45:35 +00:00
DistroBaker 39d7a09c09 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/bolt.git#00fafcf7429cbcc3527d9a557580c0b451bcf0cd
2021-02-19 11:58:00 +00:00
DistroBaker 0ccc3678ef Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/bolt.git#00fafcf7429cbcc3527d9a557580c0b451bcf0cd
2021-02-17 11:58:36 +01:00
DistroBaker a648bdfc51 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/bolt.git#00fafcf7429cbcc3527d9a557580c0b451bcf0cd
2021-02-09 17:45:38 +01:00
DistroBaker 2881adb9e7 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/bolt.git#00fafcf7429cbcc3527d9a557580c0b451bcf0cd
2021-02-03 11:46:57 +01:00
DistroBaker 2db3926764 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/bolt.git#5c19f90ad0ed8cc24c8fd9ebd8456095db637658
2020-12-01 13:28:58 +00:00
Petr Šabata af107e46bf RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/bolt#c59682ab976d616ebedc72007123d1d04aef76d3
2020-10-14 22:25:51 +02:00
7 changed files with 274 additions and 0 deletions

1
.bolt.metadata Normal file
View File

@ -0,0 +1 @@
1246849ee48e7ba29536996857a04ed61195b735 bolt-0.9.5.tar.gz

23
.gitignore vendored
View File

@ -0,0 +1,23 @@
bolt-*/
x86_64/
results_bolt/
*.log
*.rpm
#testing
tests/artifacts/
tests/source/
#tarballs
/bolt-0.1.tar.gz
/bolt-0.2.tar.gz
/bolt-0.3.tar.gz
/bolt-0.4.tar.gz
/bolt-0.5.tar.gz
/bolt-0.6.tar.gz
/bolt-0.7.tar.gz
/bolt-0.8.tar.gz
/bolt-0.9.tar.gz
/bolt-0.9.1.tar.gz
/bolt-0.9.2.tar.gz
/bolt-0.9.5.tar.gz

163
bolt.spec Normal file
View File

@ -0,0 +1,163 @@
Name: bolt
Version: 0.9.5
Release: 1%{?dist}
Summary: Thunderbolt device manager
License: LGPLv2+
URL: https://gitlab.freedesktop.org/bolt/bolt
Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: asciidoc
BuildRequires: meson
BuildRequires: libudev-devel
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(systemd)
BuildRequires: polkit-devel
BuildRequires: systemd
%{?systemd_requires}
# for the integration test (optional)
%if 0%{?fedora} || 0%{?rhel} > 8
BuildRequires: pygobject3-devel
BuildRequires: python3-dbus
BuildRequires: python3-dbusmock
BuildRequires: umockdev-devel
%endif
%description
bolt is a system daemon to manage Thunderbolt devices via a D-BUS
API. Thunderbolt 3 introduced 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
%autosetup -p1
%build
%meson -Ddb-name=boltd
%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 CHANGELOG.md
%{_bindir}/boltctl
%{_libexecdir}/boltd
%{_unitdir}/%{name}.service
%{_udevrulesdir}/*-%{name}.rules
%{_datadir}/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*
%{_mandir}/man8/boltd.8*
%ghost %dir %{_localstatedir}/lib/boltd
%changelog
* Mon Jan 9 2023 Kate Hsuan <hpa@redhat.com> - 0.9.5-1
- New 0.9.5 upstream release
* Sat Feb 26 2022 Christian Kellner <christian@kellner.me> - 0.9.2-1
- New upstream release
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.9.1-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.9.1-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Dec 1 2020 Christian Kellner <ckellner@redhat.com> - 0.9.1-1
- bolt 0.9.1 release
- Update description with less emphasis on Thunderbolt version
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-3
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jun 15 2020 Christian Kellner <ckellner@redhat.com> - 0.9-1
- bolt 0.9 release
Drop all patches (all merged upstream).
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jan 23 2020 Christian Kellner <christian@kellner.me> - 0.8-3
- Add patch to ignore uevents from wakeup devices. See upstream issue
https://gitlab.freedesktop.org/bolt/bolt/issues/156
- Add patch to fix BoltError not being a typedef.
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Jun 13 2019 Christian Kellner <ckellner@redhat.com> - 0.8-1
- bolt 0.8 release
D-Bus Configuration moved from sysconfdir to datadir.
Package new CHNAGELOG.md.
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Jan 1 2019 Christian Kellner <gicmo@redhat.com> - 0.7-1
- bolt 0.7 release
* Wed Nov 28 2018 Christian Kellner <ckellner@redhat.com> - 0.6-1
- bolt 0.6 release
* Fri Sep 21 2018 Christian Kellner <ckellner@redhat.com> - 0.5-1
- bolt 0.5 release
- Remove forge macros again and use gitlab as authorative source
- Testing depedencies are now only pulled in on Fedora
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon May 28 2018 Christian Kellner <ckellner@redhat.com> - 0.4-1
- bolt 0.4 upstream release
* Tue Apr 10 2018 Christian Kellner <ckellner@redhat.com> - 0.3-1
- bolt 0.3 upstream release
- Update BuildRequires to include gcc
- Use forge macros
* Tue Mar 6 2018 Christian Kellner <ckellner@redhat.com> - 0.2-1
- bolt 0.2 upstream release
- Update BuildRequires dependencies.
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sun Dec 17 2017 Christian Kellner <ckellner@redhat.com> - 0.1-2
- Set database path to /var/lib/boltd, create it during
installation, which is needed for the service file to work.
* Thu Dec 14 2017 Christian Kellner <ckellner@redhat.com> - 0.1-1
- Initial upstream release

12
gating.yaml Normal file
View File

@ -0,0 +1,12 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_testing
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (bolt-0.9.5.tar.gz) = cf8625f45d15f5685d99a49c5993a9196b355158be660c63fb22f86c2d9806d41cc13702d2e8d1b8e6f37e4acf3485e2b2c0eb19f907732bdf670680cbc073ae

51
tests/run-it.sh Executable file
View File

@ -0,0 +1,51 @@
#!/usr/bin/bash
set -u
# helper functions
vcmp_lt () {
# argument $1 is less than $2
MV=$(echo "$@" | tr " " "\n" | sort -rV | head -n1)
test "$1" != "$MV"
}
# main script
IT="${1:-source/tests/test-integration}"
# check if we need to install additional packages
# which is the case if we are on RHEL 8
source /etc/os-release || exit 1
if [[ "$ID" = *"rhel"* ]] && [[ "$VERSION_ID" == *"8"* ]]; then
dnf config-manager -y --add-repo umockdev.repo
dnf install -y umockdev-devel python3-gobject-base
pip3 install python-dbusmock
fi
BOLT_VERSION=$(boltctl --version | cut -d " " -f2)
# check if we can even discover the tests
"$IT" list-tests > /dev/null || exit 1
# The format of "list-tests" changed with 0.6
if vcmp_lt $BOLT_VERSION 0.6; then
echo "Old style integration test names"
DELIM=" "
else
DELIM=$'\n'
fi
# discover all the tests
declare -a TESTS=()
while IFS= read -r -d "$DELIM" line; do
TESTS+=( "${line% *}" )
done < <( $IT list-tests )
# execute all the tests, one by one
RESULT=0
for test in ${TESTS[@]}; do
echo "$test"
umockdev-wrapper "$IT" "$test"
((RESULT += $?))
done
exit $RESULT

23
tests/tests.yml Normal file
View File

@ -0,0 +1,23 @@
---
- hosts: localhost
roles:
- role: standard-test-source
tags:
- always
- role: standard-test-basic
tags:
- atomic
- classic
required_packages:
- bolt
- pygobject3-devel
- python3-dbus
- python3-dbusmock
- umockdev-devel
tests:
- smoke:
dir: smoke
run: boltctl --version
- integration:
dir: .
run: ./run-it.sh source/tests/test-integration