screen/screen.spec

126 lines
3.1 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:16:44 -04:00
Name: screen
Epoch: 1
Version: 4.6.2
2020-03-18 17:09:57 +08:00
Release: 6
2019-09-30 11:16:44 -04:00
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
2020-03-18 17:09:57 +08:00
Patch0: screen-4.3.1-screenrc.patch
Patch1: screen-E3.patch
Patch2: screen-4.3.1-suppress_remap.patch
Patch3: screen-4.3.1-crypt.patch
2019-11-06 19:52:06 +08:00
BuildRequires: automake autoconf gcc ncurses-devel texinfo
2019-12-25 16:07:06 +08:00
Requires: shadow-utils
Requires(preun): info
Requires(post): info
2019-09-30 11:16:44 -04:00
%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
2020-03-18 17:09:57 +08:00
%autosetup -n %{name}-%{version} -p1
2019-09-30 11:16:44 -04:00
%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
2019-12-25 16:07:06 +08:00
%attr(775,root,screen) %{_rundir}/screen
2019-09-30 11:16:44 -04:00
%{_datadir}/screen
%files help
%{_mandir}/man1/screen.*
%{_infodir}/screen.info*
%changelog
2020-03-18 17:09:57 +08:00
* Wed Mar 18 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:4.6.2-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix Null pointer reference
2019-12-25 16:07:06 +08:00
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:4.6.2-5
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add requires and a directory
2019-11-06 19:52:06 +08:00
* Sat Oct 26 2019 shenyangyang <shenyangyang4@huawei.com> - 1:4.6.2-4
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add build requires of texinfo to solve the problem of build
2019-09-30 11:16:44 -04:00
* 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