Compare commits

..

8 commits

Author SHA1 Message Date
Fedora Release Engineering
b6b3c04ef5 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 03:37:36 +00:00
Fedora Release Engineering
656b46e5ce Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 16:56:06 +00:00
Jitka Plesnikova
e3de39913a Perl 5.42 rebuild 2025-07-07 16:24:46 +02:00
Zbigniew Jędrzejewski-Szmek
0803777d47 Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
2025-03-10 10:49:31 +01:00
Jason Tibbitts
f89594ead8 Fix unfortunate typo. 2025-02-13 12:56:08 -06:00
Jason Tibbitts
3c88249265 Fix absolute symlink
This should silence the rpm complaint at the end of the build.
2025-02-11 19:55:32 -06:00
Jason Tibbitts
a7570179e3 Build with -std=c17.
The code in ndmp-src is quite old and has many failures when built
as C23.  Fixing these will take some effort so the quick fix of
building as C17 will work for now.  An alternate quick fix would be to
pass --without-ndmp to configure.
2025-02-11 18:42:36 -06:00
Fedora Release Engineering
7156f615df Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 10:56:20 +00:00

View file

@ -128,10 +128,16 @@ server also needs to have the amanda-client package installed.
%prep
%autosetup -p1 -n %{name}-tag-community-%{version}
# Create a sysusers.d config file
cat >amanda.sysusers.conf <<EOF
u amandabackup 33:%amanda_group 'Amanda user' %{_localstatedir}/lib/amanda /bin/bash
m amandabackup tape
EOF
%build
./autogen
export MAILER=/usr/bin/mail CFLAGS="$RPM_OPT_FLAGS -fPIE" LDFLAGS="$RPM_LD_FLAGS -pie"
export MAILER=/usr/bin/mail CFLAGS="$RPM_OPT_FLAGS -fPIE -std=c17" LDFLAGS="$RPM_LD_FLAGS -pie"
%configure --enable-shared \
--enable-manpage-build \
--disable-rpath \
@ -202,13 +208,16 @@ popd
rm -rf $RPM_BUILD_ROOT/usr/share/amanda
find $RPM_BUILD_ROOT -name \*.la | xargs rm
pushd $RPM_BUILD_ROOT/usr/bin
rm amandad
ln -s ../%_lib/amanda/amandad
popd
install -m0644 -D amanda.sysusers.conf %{buildroot}%{_sysusersdir}/amanda.conf
%check
make check
%pre
/usr/sbin/useradd -M -N -g %amanda_group -o -r -d %{_localstatedir}/lib/amanda -s /bin/bash \
-c "Amanda user" -u 33 %amanda_user >/dev/null 2>&1 || :
/usr/bin/gpasswd -a %amanda_user tape >/dev/null 2>&1 || :
%post
%{?ldconfig}
@ -294,6 +303,7 @@ make check
%attr(600,%amanda_user,%amanda_group) %config(noreplace) %{_localstatedir}/lib/amanda/.amandahosts
%attr(02770,%amanda_user,%amanda_group) %dir /var/log/amanda
%attr(02770,%amanda_user,%amanda_group) %dir /var/log/amanda/amandad
%{_sysusersdir}/amanda.conf
%files libs
%{_libdir}/libamdevice*.so