Package init
This commit is contained in:
commit
532c0f6b62
BIN
screen-4.6.2.tar.gz
Normal file
BIN
screen-4.6.2.tar.gz
Normal file
Binary file not shown.
2
screen.pam
Normal file
2
screen.pam
Normal file
@ -0,0 +1,2 @@
|
||||
#%PAM-1.0
|
||||
auth include system-auth
|
||||
101
screen.spec
Normal file
101
screen.spec
Normal file
@ -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 <<EOF > %{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 <buildteam@openeuler.org> - 1:4.6.2-3
|
||||
- Modify requires
|
||||
|
||||
* Tue Sep 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:4.6.2-2
|
||||
- Adjust requires
|
||||
|
||||
* Sat Sep 7 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:4.6.2-1
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user