Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8fa2c2cc9b | ||
|
|
9672054974 |
||
|
|
abfd3092b0 |
||
|
|
4958d0ad6c | ||
|
|
9d42e6db82 |
||
|
|
73b9ec83af |
4 changed files with 33 additions and 12 deletions
1
dict.conf
Normal file
1
dict.conf
Normal file
|
|
@ -0,0 +1 @@
|
|||
server dict.org
|
||||
40
dictd.spec
40
dictd.spec
|
|
@ -6,18 +6,20 @@
|
|||
|
||||
Summary: DICT protocol (RFC 2229) server and command-line client
|
||||
Name: dictd
|
||||
Version: 1.13.1
|
||||
Release: 4%{?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
|
||||
Source2: dictd2.te
|
||||
Source3: dictd.conf
|
||||
Source4: dict.conf
|
||||
Patch0: 0001-Fix-C99-compatibility-issues-in-lexer-parser-integra.patch
|
||||
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
|
||||
|
|
@ -31,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
|
||||
|
|
@ -57,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}
|
||||
|
|
@ -81,6 +87,7 @@ mkdir -p %{buildroot}%{_unitdir}
|
|||
install -m 755 %{SOURCE1} %{buildroot}%{_unitdir}/dictd.service
|
||||
mkdir -p %{buildroot}%{_sysconfdir}
|
||||
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/dictd.conf
|
||||
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/dict.conf
|
||||
|
||||
for selinuxvariant in %{selinux_variants}
|
||||
do
|
||||
|
|
@ -89,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
|
||||
|
|
@ -99,18 +108,13 @@ 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
|
||||
%doc examples/dict1.conf
|
||||
%{_bindir}/dict
|
||||
%{_mandir}/man1/dict.1*
|
||||
%config(noreplace) %{_sysconfdir}/dict.conf
|
||||
|
||||
%files server
|
||||
%doc ANNOUNCE COPYING INSTALL README doc/rfc2229.txt doc/security.doc
|
||||
|
|
@ -136,12 +140,28 @@ 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
|
||||
|
||||
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (dictd-1.13.1.tar.gz) = 5e4b67e8d74cec174e9c36b0ccecf1363eed324ec6216307b03f68571155c98bd94e5d3b7fc0b096585172c687aca832fd4110849a403da8c722eba9a4e74fa3
|
||||
SHA512 (dictd-1.13.3.tar.gz) = fb118a7594566a8e4e3fdff9bf79c37ed29f1f2eb3a9f380ba7c57740839b723537a0ed8864c0b425774b564f78ae50624756c3ca3a372a971002bcaca7fb934
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue