diff --git a/tcpcrypt.spec b/tcpcrypt.spec index 050228a..f86f51c 100644 --- a/tcpcrypt.spec +++ b/tcpcrypt.spec @@ -4,9 +4,8 @@ Summary: Opportunistically encrypt TCP connections Name: tcpcrypt Version: 0.5 -Release: 19%{?dist} -# Automatically converted from old format: BSD - review is highly recommended. -License: LicenseRef-Callaway-BSD +Release: 12%{?dist} +License: BSD Url: http://tcpcrypt.org/ Source0: http://tcpcrypt.org//%{name}-%{version}.tar.gz SOURCE1: tmpfiles-tcpcrypt.conf @@ -22,6 +21,7 @@ BuildRequires: systemd Requires(post): systemd Requires(preun): systemd Requires(postun): systemd +Requires(pre): shadow-utils %description Provides a protocol that attempts to encrypt (almost) all of your @@ -46,11 +46,6 @@ Contains libraries used by tcpcryptd server and tcpcrypt-aware applications %prep %autosetup -# Create a sysusers.d config file -cat >tcpcrypt.sysusers.conf </dev/null || groupadd -r tcpcryptd +getent passwd tcpcryptd >/dev/null || \ +useradd -r -g tcpcryptd -d /var/run/tcpcryptd -s /sbin/nologin \ +-c "tcpcrypt daemon account" tcpcryptd || exit 0 %post %systemd_post tcpcryptd.service @@ -103,27 +100,6 @@ install -m0644 -D tcpcrypt.sysusers.conf %{buildroot}%{_sysusersdir}/tcpcrypt.co %systemd_postun_with_restart tcpcryptd.service %changelog -* Fri Jul 25 2025 Fedora Release Engineering - 0.5-19 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek - 0.5-18 -- Add sysusers.d config file to allow rpm to create users/groups automatically - -* Sun Jan 19 2025 Fedora Release Engineering - 0.5-17 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Wed Sep 04 2024 Miroslav Suchý - 0.5-16 -- convert license to SPDX - -* Sat Jul 20 2024 Fedora Release Engineering - 0.5-15 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Sat Jan 27 2024 Fedora Release Engineering - 0.5-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sat Jul 22 2023 Fedora Release Engineering - 0.5-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - * Thu Feb 23 2023 Eric Garver - 0.5-12 - remove bash-isms from tcpcryptd-firewall