diff --git a/newscache.spec b/newscache.spec index 689349a..6fb3ab2 100644 --- a/newscache.spec +++ b/newscache.spec @@ -4,9 +4,10 @@ Name: newscache Summary: Free cache server for USENET News Version: 1.2 -Release: 0.40.rc6%{?dist} -License: GPLv2+ -URL: http://www.linuxhacker.at/newscache/ +Release: 0.53.rc6%{?dist} +# Automatically converted from old format: GPLv2+ - review is highly recommended. +License: GPL-2.0-or-later +URL: https://github.com/hstraub/NewsCache Source0: http://src.linuxhacker.at/NewsCache/%{srcnamever}.tar.gz Source1: http://src.linuxhacker.at/socket++/socket++-%{socketver}.tar.gz Source2: %{name}.init @@ -16,11 +17,11 @@ Patch2: newscache-1.2rc6-gcc43.patch Patch3: socket++-1.12.12-drop_doc.patch Patch4: newscache-glibc.patch BuildRequires: make +BuildRequires: libxcrypt-devel BuildRequires: gcc-c++ BuildRequires: libtool, texinfo, pam-devel BuildRequires: systemd-units -Requires(pre): shadow-utils Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units @@ -39,8 +40,8 @@ bandwidth consumption or the IO load caused by news clients. %setup -q -n %{srcnamever} -a 1 cp etc/newscache.conf-dist newscache.conf -%patch1 -p0 -%patch2 -p1 +%patch -P1 -p0 +%patch -P2 -p1 # to satisfy g++ >= 8.0 sed -i 's/^main/int main/' configure.in @@ -51,10 +52,15 @@ mkdir -p too/deep mv socket++-%{socketver} too/deep pushd too/deep/socket++-%{socketver} -%patch3 -p1 +%patch -P3 -p1 popd -%patch4 -p1 +%patch -P4 -p1 + +# Create a sysusers.d config file +cat >newscache.sysusers.conf </dev/null || groupadd -r news -getent passwd news >/dev/null || \ - useradd -r -g news -d /etc/news -s /sbin/nologin -c 'News user' news -exit 0 %post @@ -154,9 +156,49 @@ exit 0 %doc AUTHORS COPYING NEWS README THANKS TODO %doc doc/newscache*.txt etc/*-dist %{_mandir}/*/* +%{_sysusersdir}/newscache.conf %changelog +* Sat Oct 4 2025 Dmitry Butskoy - 1.2-0.53.rc6 +- update URL (#2401403) + +* Thu Jul 24 2025 Fedora Release Engineering - 1.2-0.52.rc6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek - 1.2-0.51.rc6 +- Add sysusers.d config file to allow rpm to create users/groups automatically + +* Sat Feb 01 2025 Björn Esser - 1.2-0.50.rc6 +- Add explicit BR: libxcrypt-devel + +* Fri Jan 17 2025 Fedora Release Engineering - 1.2-0.49.rc6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Fri Jul 26 2024 Miroslav Suchý - 1.2-0.48.rc6 +- convert license to SPDX + +* Thu Jul 18 2024 Fedora Release Engineering - 1.2-0.47.rc6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 1.2-0.46.rc6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.2-0.45.rc6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 1.2-0.44.rc6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 1.2-0.43.rc6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.2-0.42.rc6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 1.2-0.41.rc6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Thu Jul 22 2021 Fedora Release Engineering - 1.2-0.40.rc6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild