Compare commits

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

6 commits

Author SHA1 Message Date
Fedora Release Engineering
c15ecc349a Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:18:46 +00:00
Fedora Release Engineering
c73075af35 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 19:44:06 +00:00
Dan Horák
0f3611110f fix build with GCC 15
Resolves: rhbz#2341496 rhbz#2385713
2025-09-01 17:12:50 +02:00
Fedora Release Engineering
33f1ea4a5b Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 19:54:54 +00:00
cd3dc6d062 Add sysusers.d config file to allow rpm to create users/groups automatically 2025-01-23 21:18:06 +01:00
Fedora Release Engineering
eb99312cab Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 14:00:51 +00:00

View file

@ -63,7 +63,6 @@ Requires(preun): /sbin/install-info
Requires(post): /sbin/install-info
%endif
Requires: lockdev >= 1.0.0-14
Requires(pre): shadow-utils
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
@ -96,6 +95,12 @@ because it can be useful even if you do not do uucp.
%patch -P12 -p1 -b .configure-c99
%patch -P13 -p1 -b .fix-types
# Create a sysusers.d config file
cat >uucp.sysusers.conf <<EOF
g uucp 14
u uucp 10 'Uucp user' /var/spool/uucp -
EOF
%build
# enable hardening because uucp contains setuid binaries
%if ! 0%{?fedora}%{?rhel} || 0%{?fedora} >= 16 || 0%{?rhel} >= 7
@ -108,7 +113,7 @@ export LDFLAGS="-pie"
%endif
autoreconf --verbose --force --install
export CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
export CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -std=gnu17"
%configure --with-newconfigdir=%{_newconfigdir} --with-oldconfigdir=%{_oldconfigdir}
make %{?_smp_mflags}
@ -171,18 +176,7 @@ EOF
find "${RPM_BUILD_ROOT}%_datadir/uucp/contrib" -type f -exec chmod a-x {} +
%pre
getent group uucp >/dev/null || groupadd -g 14 -r uucp
if ! getent passwd uucp >/dev/null ; then
if ! getent passwd 10 >/dev/null ; then
useradd -r -u 10 -g uucp -d /var/spool/uucp -c "Uucp user" uucp
else
useradd -r -g uucp -d /var/spool/uucp -c "Uucp user" uucp
fi
fi
exit 0
install -m0644 -D uucp.sysusers.conf %{buildroot}%{_sysusersdir}/uucp.conf
%post
%if %{with systemd_macros}
@ -296,6 +290,7 @@ fi
%config(noreplace) %{_newconfigdir}/port
%config(noreplace) %{_newconfigdir}/sys
%attr(755,uucp,uucp) /var/spool/uucp
%{_sysusersdir}/uucp.conf
%files -n cu
%doc README COPYING ChangeLog NEWS TODO