screen/screen.spec

159 lines
3.9 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:16:44 -04:00
Name: screen
Epoch: 1
2022-10-21 11:07:23 +08:00
Version: 4.9.0
2023-04-19 17:01:15 +08:00
Release: 2
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
2021-02-26 14:56:27 +08:00
Patch1: screen-4.3.1-screenrc.patch
Patch2: screen-E3.patch
Patch3: screen-4.3.1-suppress_remap.patch
Patch4: screen-4.3.1-crypt.patch
2020-03-18 17:09:57 +08:00
2023-04-19 17:01:15 +08:00
Patch6001: backport-CVE-2023-24626.patch
2019-11-06 19:52:06 +08:00
BuildRequires: automake autoconf gcc ncurses-devel texinfo
BuildRequires: systemd
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 \
--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
2023-04-19 17:01:15 +08:00
* Wed Apr 19 2023 hongjinghao <hongjinghao@huawei.com> - 1:4.9.0-2
- fix CVE-2023-24626
2022-10-21 11:07:23 +08:00
* Fri Oct 21 2022 hongjinghao <hongjinghao@huawei.com> - 1:4.9.0-1
- update to 4.9.0
2021-06-19 16:32:22 +08:00
* Sat Jun 19 2021 panxiaohe <panxiaohe@huawei.com> - 1:4.8.0-11
- remove '--enable-telnet' in configure
* Fri Jun 4 2021 panxiaohe <panxiaohe@huawei.com> - 1:4.8.0-10
- add systemd to BuildRequires to use _tmpfilesdir macro
- fix bogus dates in changelog
2021-02-26 14:56:27 +08:00
* Fri Feb 26 2021 lirui<lirui130@huawei.com> - 1:4.8.0-9
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix CVE-2021-26937
2020-07-24 18:20:01 +08:00
* Mon Jul 27 2020 linwei<linwei54@huawei.com> - 1:4.8.0-8
2020-07-24 17:18:05 +08:00
- Type:bugfix
- ID:NA
- SUG:NA
2020-07-24 18:20:01 +08:00
- DESC:modify release and changelog
2020-07-24 17:18:05 +08:00
* Thu Jul 16 2020 linwei<linwei54@huawei.com> - 1:4.8.0-7
2020-07-16 18:25:21 +08:00
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update screen to 4.8.0
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
* Thu Sep 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:4.6.2-3
2019-09-30 11:16:44 -04:00
- Modify requires
* Thu Sep 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:4.6.2-2
2019-09-30 11:16:44 -04:00
- Adjust requires
* Sat Sep 7 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:4.6.2-1
- Package init