commit 532c0f6b62bd2a76791f2580c116c342e1e8d5b1 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:16:44 2019 -0400 Package init diff --git a/screen-4.6.2.tar.gz b/screen-4.6.2.tar.gz new file mode 100644 index 0000000..dc31440 Binary files /dev/null and b/screen-4.6.2.tar.gz differ diff --git a/screen.pam b/screen.pam new file mode 100644 index 0000000..143c372 --- /dev/null +++ b/screen.pam @@ -0,0 +1,2 @@ +#%PAM-1.0 +auth include system-auth diff --git a/screen.spec b/screen.spec new file mode 100644 index 0000000..4314027 --- /dev/null +++ b/screen.spec @@ -0,0 +1,101 @@ +Name: screen +Epoch: 1 +Version: 4.6.2 +Release: 3 +Summary: A full-screen window manager +License: GPLv3+ +URL: http://www.gnu.org/software/screen +Source0: http://ftp.gnu.org/gnu/screen/screen-%{version}.tar.gz +Source1: screen.pam + +BuildRequires: automake autoconf gcc ncurses-devel +Requires: shadow info + +%description +Screen is a full-screen window manager that multiplexes +a physical terminal between several processes,typically +interactive shells. + +%package help +Summary: help for %{name} +BuildArch: noarch + +%description help +%{summary}. + +%prep +%autosetup -n %{name}-%{version} + +%build +autoreconf -fiv + +%configure \ + --enable-pam \ + --enable-colors256 \ + --enable-rxvt_osc \ + --enable-use-locale \ + --enable-telnet \ + --with-pty-mode=0620 \ + --with-sys-screenrc="%{_sysconfdir}/screenrc" \ + --with-socket-dir="%{_rundir}/screen" + +%make_build + +%install +%make_install + +mv -f %{buildroot}/%{_bindir}/screen{-%{version},} + +install -D -p -m 0644 etc/etcscreenrc %{buildroot}/%{_sysconfdir}/screenrc +install -D -p -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/pam.d/screen + +install -d -m 0755 %{buildroot}/%{_rundir}/screen +install -d -m 0755 %{buildroot}/%{_tmpfilesdir} + +cat < %{buildroot}/%{_tmpfilesdir}/screen.conf +d %{_rundir}/screen 0775 root screen +EOF + +# delete unpacked file +rm -f %{buildroot}/%{_infodir}/dir + +%pre +/usr/sbin/groupadd -g 84 -r -f screen + +%post +if [ -f %{_infodir}/screen.info.gz ]; then + /sbin/install-info %{_infodir}/screen.info.gz %{_infodir}/dir 2>/dev/null || : +fi + +%preun +if [ $1 = 0 ]; then + if [ -f %{_infodir}/screen.info.gz ]; then + /sbin/install-info --delete %{_infodir}/screen.info.gz %{_infodir}/dir 2>/dev/null || : + fi +fi + +%files +%defattr(-,root,root) +%doc README ChangeLog doc/FAQ doc/README.DOTSCREEN +%license COPYING +%config(noreplace) %{_sysconfdir}/screenrc +%config(noreplace) %{_sysconfdir}/pam.d/screen +%{_tmpfilesdir}/screen.conf +%attr(2755,root,screen) %{_bindir}/screen +%{_datadir}/screen + + +%files help +%{_mandir}/man1/screen.* +%{_infodir}/screen.info* + + +%changelog +* Tue Sep 26 2019 openEuler Buildteam - 1:4.6.2-3 +- Modify requires + +* Tue Sep 26 2019 openEuler Buildteam - 1:4.6.2-2 +- Adjust requires + +* Sat Sep 7 2019 openEuler Buildteam - 1:4.6.2-1 +- Package init