Compare commits
No commits in common. "rawhide" and "f41" have entirely different histories.
1 changed files with 5 additions and 15 deletions
20
amanda.spec
20
amanda.spec
|
|
@ -128,16 +128,10 @@ server also needs to have the amanda-client package installed.
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{name}-tag-community-%{version}
|
%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
|
%build
|
||||||
./autogen
|
./autogen
|
||||||
|
|
||||||
export MAILER=/usr/bin/mail CFLAGS="$RPM_OPT_FLAGS -fPIE -std=c17" LDFLAGS="$RPM_LD_FLAGS -pie"
|
export MAILER=/usr/bin/mail CFLAGS="$RPM_OPT_FLAGS -fPIE" LDFLAGS="$RPM_LD_FLAGS -pie"
|
||||||
%configure --enable-shared \
|
%configure --enable-shared \
|
||||||
--enable-manpage-build \
|
--enable-manpage-build \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
|
|
@ -208,16 +202,13 @@ popd
|
||||||
rm -rf $RPM_BUILD_ROOT/usr/share/amanda
|
rm -rf $RPM_BUILD_ROOT/usr/share/amanda
|
||||||
find $RPM_BUILD_ROOT -name \*.la | xargs rm
|
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
|
%check
|
||||||
make 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
|
%post
|
||||||
%{?ldconfig}
|
%{?ldconfig}
|
||||||
|
|
@ -303,7 +294,6 @@ make check
|
||||||
%attr(600,%amanda_user,%amanda_group) %config(noreplace) %{_localstatedir}/lib/amanda/.amandahosts
|
%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
|
||||||
%attr(02770,%amanda_user,%amanda_group) %dir /var/log/amanda/amandad
|
%attr(02770,%amanda_user,%amanda_group) %dir /var/log/amanda/amandad
|
||||||
%{_sysusersdir}/amanda.conf
|
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%{_libdir}/libamdevice*.so
|
%{_libdir}/libamdevice*.so
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue