Compare commits

...
Sign in to create a new pull request.

7 commits

View file

@ -27,10 +27,10 @@ Summary: Notifier for USB Firewall to use with desktop environments
URL: https://github.com/kochstefan/usbauth-all/tree/master/usbauth-notifier
Source: https://github.com/kochstefan/usbauth-all/archive/v%{version}.tar.gz
Release: 3%{?dist}
License: GPLv2
Release: 10%{?dist}
# Automatically converted from old format: GPLv2 - review is highly recommended.
License: GPL-2.0-only
Requires(pre): shadow-utils
Requires: usbauth
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(libudev)
@ -47,6 +47,12 @@ A notifier for the usbauth firewall against BadUSB attacks. The user could manua
%prep
%autosetup -n usbauth-all-%{version} -p1
# Create a sysusers.d config file
cat >usbauth-notifier.sysusers.conf <<EOF
g usbauth -
g usbauth-notifier -
EOF
%build
pushd %{name}/
autoreconf -f -i
@ -55,15 +61,14 @@ autoreconf -f -i
popd
%pre
if ! getent group usbauth>/dev/null; then groupadd -r usbauth; fi
if ! getent group usbauth-notifier>/dev/null; then groupadd -r usbauth-notifier; fi
%install
pushd %{name}/
%make_install
%find_lang %name
popd
install -m0644 -D usbauth-notifier.sysusers.conf %{buildroot}%{_sysusersdir}/usbauth-notifier.conf
%files -f %{name}/%name.lang
%license %{name}/COPYING
%doc %{name}/README
@ -73,9 +78,31 @@ popd
%attr(04750,root,usbauth) %_libexecdir/usbauth-npriv
%dir %attr(00750,root,usbauth-notifier) %_libexecdir/usbauth-notifier
%attr(02755,root,usbauth) %_libexecdir/usbauth-notifier/usbauth-notifier
%{_sysusersdir}/usbauth-notifier.conf
%changelog
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.4-7
- Add sysusers.d config file to allow rpm to create users/groups automatically
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Mon Jul 29 2024 Miroslav Suchý <msuchy@redhat.com> - 1.0.4-5
- convert license to SPDX
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild