Compare commits

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

5 commits

Author SHA1 Message Date
Dmitry Butskoy
dc752c0b5f Update URL 2025-10-04 12:32:18 +03:00
Fedora Release Engineering
d2a5a5e757 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 22:47:37 +00:00
Zbigniew Jędrzejewski-Szmek
8fc1a36d11 Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
2025-02-11 15:53:24 +01:00
Björn Esser
9595425ed7
Add explicit BR: libxcrypt-devel
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2025-02-01 19:56:03 +01:00
Fedora Release Engineering
71b133c4ff Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 20:02:53 +00:00

View file

@ -4,10 +4,10 @@
Name: newscache
Summary: Free cache server for USENET News
Version: 1.2
Release: 0.48.rc6%{?dist}
Release: 0.53.rc6%{?dist}
# Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPL-2.0-or-later
URL: http://www.linuxhacker.at/newscache/
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
@ -17,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
@ -57,6 +57,11 @@ popd
%patch -P4 -p1
# Create a sysusers.d config file
cat >newscache.sysusers.conf <<EOF
u news - 'News user' /etc/news -
EOF
%build
# socket++ is a library from the same site as NewScache.
@ -121,13 +126,9 @@ EOF
chmod 755 %{name}
popd
install -m0644 -D newscache.sysusers.conf %{buildroot}%{_sysusersdir}/newscache.conf
%pre
getent group news >/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
@ -155,9 +156,25 @@ 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 <Dmitry@Butskoy.name> - 1.2-0.53.rc6
- update URL (#2401403)
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-0.52.rc6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 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 <besser82@fedoraproject.org> - 1.2-0.50.rc6
- Add explicit BR: libxcrypt-devel
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-0.49.rc6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 1.2-0.48.rc6
- convert license to SPDX