Resolves: #1429174 - update spec file

epel9
Josef Ridky 8 years ago
parent 63e73c5621
commit bf9ee85a9c

@ -62,7 +62,7 @@ support multiple logins on one terminal.
--with-pty-mode=0620 \ --with-pty-mode=0620 \
--with-pty-group=$(getent group tty | cut -d : -f 3) \ --with-pty-group=$(getent group tty | cut -d : -f 3) \
--with-sys-screenrc="%{_sysconfdir}/screenrc" \ --with-sys-screenrc="%{_sysconfdir}/screenrc" \
--with-socket-dir="%{_localstatedir}/run/screen" --with-socket-dir="%{_rundir}/screen"
# We would like to have braille support. # We would like to have braille support.
sed -i -e 's/.*#.*undef.*HAVE_BRAILLE.*/#define HAVE_BRAILLE 1/;' config.h sed -i -e 's/.*#.*undef.*HAVE_BRAILLE.*/#define HAVE_BRAILLE 1/;' config.h
@ -93,16 +93,16 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/screen install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/screen
# Create the socket dir # Create the socket dir
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/screen mkdir -p $RPM_BUILD_ROOT%{_rundir}/screen
# And tell systemd to recreate it on start with tmpfs # And tell systemd to recreate it on start with tmpfs
mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir} mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir}
cat <<EOF > $RPM_BUILD_ROOT%{_tmpfilesdir}/screen.conf cat <<EOF > $RPM_BUILD_ROOT%{_tmpfilesdir}/screen.conf
# screen needs directory in /var/run # screen needs directory in /run
%if %{with multiuser} %if %{with multiuser}
d %{_localstatedir}/run/screen 0755 root root d %{_rundir}/screen 0755 root root
%else %else
d %{_localstatedir}/run/screen 0775 root screen d %{_rundir}/screen 0775 root screen
%endif %endif
EOF EOF
@ -131,16 +131,17 @@ fi
%doc README doc/FAQ doc/README.DOTSCREEN ChangeLog %doc README doc/FAQ doc/README.DOTSCREEN ChangeLog
%license COPYING %license COPYING
%{_mandir}/man1/screen.* %{_mandir}/man1/screen.*
%{_infodir}/screen.info*
%{_datadir}/screen %{_datadir}/screen
%config(noreplace) %{_sysconfdir}/screenrc %config(noreplace) %{_sysconfdir}/screenrc
%config(noreplace) %{_sysconfdir}/pam.d/screen %config(noreplace) %{_sysconfdir}/pam.d/screen
%{_tmpfilesdir}/screen.conf %{_tmpfilesdir}/screen.conf
%if %{with multiuser} %if %{with multiuser}
%attr(4755,root,root) %{_bindir}/screen %attr(4755,root,root) %{_bindir}/screen
%attr(755,root,root) %{_localstatedir}/run/screen %attr(755,root,root) %{_rundir}/screen
%else %else
%attr(2755,root,screen) %{_bindir}/screen %attr(2755,root,screen) %{_bindir}/screen
%attr(775,root,screen) %{_localstatedir}/run/screen %attr(775,root,screen) %{_rundir}/screen
%endif %endif
%changelog %changelog

Loading…
Cancel
Save