Compare commits

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

4 commits

Author SHA1 Message Date
Fedora Release Engineering
8fa2c2cc9b Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 19:16:18 +00:00
Carlos Rodriguez-Fernandez
9672054974
Update to 1.13.3 2025-04-17 21:57:10 -07:00
Carlos Rodriguez-Fernandez
abfd3092b0
Disable broken check from known issue 2025-02-12 21:28:10 -07:00
Zbigniew Jędrzejewski-Szmek
4958d0ad6c Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.

The sysusers file is now in server subpackage, even though the %pre scriptlet
was previously attached to the main subpackage.
2025-02-12 19:53:42 +01:00
3 changed files with 23 additions and 12 deletions

View file

@ -6,8 +6,8 @@
Summary: DICT protocol (RFC 2229) server and command-line client
Name: dictd
Version: 1.13.1
Release: 6%{?dist}
Version: 1.13.3
Release: 2%{?dist}
License: GPL-2.0-only AND GPL-2.0-or-later AND GPL-1.0-or-later AND GPL-3.0-or-later AND MIT AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
Source0: https://github.com/cheusov/dictd/archive/%{version}/%{name}-%{version}.tar.gz
Source1: dictd.service
@ -19,6 +19,7 @@ Patch1: 0001-remove-use-of-deprecated-inet_aton-and-inet_ntoa.patch
URL: http://www.dict.org/
BuildRequires: flex
BuildRequires: flex-devel
Buildrequires: autoconf
BuildRequires: bison
BuildRequires: libtool
@ -32,7 +33,6 @@ BuildRequires: gcc
BuildRequires: pkgconfig(systemd)
BuildRequires: checkpolicy, selinux-policy-devel
Requires(pre): shadow-utils
%description
Command-line client for the DICT protocol. The Dictionary Server
@ -58,10 +58,15 @@ More information can be found in the INSTALL file in this package.
%prep
%autosetup -p1
autoreconf -fv
autoreconf -fiv
mkdir SELinux
cp -p %{SOURCE2} SELinux
# Create a sysusers.d config file
cat >dictd.sysusers.conf <<EOF
u dictd - 'dictd dictionary server' %{homedir} -
EOF
%build
pushd SELinux
for selinuxvariant in %{selinux_variants}
@ -91,6 +96,8 @@ do
%{buildroot}%{_datadir}/selinux/${selinuxvariant}/dictd2.pp
done
install -m0644 -D dictd.sysusers.conf %{buildroot}%{_sysusersdir}/dictd.conf
%post server
%systemd_post dictd.service
@ -101,12 +108,6 @@ done
%postun server
%systemd_postun_with_restart dictd.service
%pre
getent group %{username} >/dev/null || groupadd -r %{username}
getent passwd %{username} >/dev/null || \
useradd -r -g %{username} -d %{homedir} -s /sbin/nologin \
-c "dictd dictionary server" %{username}
exit 0
%files
%doc ANNOUNCE COPYING README doc/rfc2229.txt doc/security.doc
@ -139,12 +140,22 @@ exit 0
%{_mandir}/man1/dictzip.1*
%{_mandir}/man8/dictd.8*
%attr(0644,root,root) %{_unitdir}/dictd.service
%{_sysusersdir}/dictd.conf
%{homedir}
%config(noreplace) %{_sysconfdir}/dictd.conf
%doc SELinux
%{_datadir}/selinux/*/dictd2.pp
%changelog
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Thu Apr 17 2025 Carlos Rodriguez-Fernandez <carlosrodrifernandez@gmail.com> - 1.13.3-1
- Update to 1.13.3
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.13.1-7
- Add sysusers.d config file to allow rpm to create users/groups automatically
* Wed Jan 29 2025 Carlos Rodriguez-Fernandez <carlosrodrifernandez@gmail.com> - 1.13.1-6
- Set default client configuration to use dict.org

View file

@ -13,7 +13,7 @@ product_versions:
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpmdeplint.functional}
# - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpmdeplint.functional} # known issue rhbz#2268949
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpminspect.static-analysis}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.installability.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

View file

@ -1 +1 @@
SHA512 (dictd-1.13.1.tar.gz) = 5e4b67e8d74cec174e9c36b0ccecf1363eed324ec6216307b03f68571155c98bd94e5d3b7fc0b096585172c687aca832fd4110849a403da8c722eba9a4e74fa3
SHA512 (dictd-1.13.3.tar.gz) = fb118a7594566a8e4e3fdff9bf79c37ed29f1f2eb3a9f380ba7c57740839b723537a0ed8864c0b425774b564f78ae50624756c3ca3a372a971002bcaca7fb934