forked from pool/screen
5565115eb7
GNU Screen 4.8.0 OBS-URL: https://build.opensuse.org/request/show/770715 OBS-URL: https://build.opensuse.org/package/show/Base:System/screen?expand=0&rev=89
143 lines
4.5 KiB
RPMSpec
143 lines
4.5 KiB
RPMSpec
#
|
|
# spec file for package screen
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%if 0%{?suse_version} > 1310
|
|
%define rundir /run
|
|
%else
|
|
%define rundir %{_localstatedir}/run
|
|
%endif
|
|
Name: screen
|
|
Version: 4.8.0
|
|
Release: 0
|
|
Summary: A program to allow multiple screens on a VT100/ANSI Terminal
|
|
License: GPL-3.0-or-later
|
|
Group: System/Console
|
|
URL: https://www.gnu.org/software/screen/
|
|
Source: https://ftp.gnu.org/gnu/screen/%{name}-%{version}.tar.gz
|
|
Source1: screen.conf
|
|
Source2: https://ftp.gnu.org/gnu/screen/%{name}-%{version}.tar.gz.sig
|
|
Source3: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=screen&download=1#/%{name}.keyring
|
|
Source4: screen.pam
|
|
Patch0: global_screenrc.patch
|
|
Patch6: libtinfo.diff
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: pam-devel
|
|
Requires(post): permissions
|
|
Requires(post): %{install_info_prereq}
|
|
Requires(preun): %{install_info_prereq}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} > 1140
|
|
BuildRequires: makeinfo
|
|
%endif
|
|
%if 0%{?suse_version} > 1130
|
|
BuildRequires: utempter-devel
|
|
%else
|
|
BuildRequires: utempter
|
|
%endif
|
|
Requires: terminfo-base
|
|
|
|
%description
|
|
With this program you can take advantage of the multitasking abilities
|
|
of your Linux system by opening several sessions over one terminal. The
|
|
sessions can also be detached and resumed from another login terminal.
|
|
|
|
Documentation: man page
|
|
|
|
%prep
|
|
%setup -q
|
|
# global_screenrc.patch
|
|
%patch0
|
|
# libtinfo.diff
|
|
%patch6
|
|
|
|
%build
|
|
sh ./autogen.sh
|
|
|
|
CFLAGS="-DMAXWIN=1000 %{optflags}" %configure --prefix=%{_prefix} --infodir=%{_infodir} \
|
|
--mandir=%{_mandir} \
|
|
--with-socket-dir='(eff_uid ? "%{rundir}/uscreens" : "%{rundir}/screens")' \
|
|
--with-sys-screenrc=%{_sysconfdir}/screenrc \
|
|
--with-pty-group=5 \
|
|
--enable-use-locale \
|
|
--enable-telnet \
|
|
--enable-pam \
|
|
--enable-colors256 \
|
|
--verbose
|
|
|
|
# update Makefile so that make -j becomes reliable
|
|
:> osdef.h # so that make depend has a chance
|
|
:> comm.h # so that make depend has a chance
|
|
make %{?_smp_mflags} depend # FIXME: this should be self sufficient.
|
|
rm osdef.h # so that make will use osdef.sh
|
|
rm comm.h # so that make will use comm.sh
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
rm -f %{buildroot}%{_bindir}/screen
|
|
mv %{buildroot}%{_bindir}/screen-%{version} %{buildroot}%{_bindir}/screen
|
|
chmod 755 %{buildroot}%{_bindir}/screen
|
|
mkdir -p %{buildroot}/etc
|
|
mkdir -p %{buildroot}/etc/pam.d
|
|
mkdir -p %{buildroot}%{_prefix}/lib
|
|
mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d
|
|
mkdir -p %{buildroot}%{rundir}/screens
|
|
chmod 755 %{buildroot}%{rundir}/screens
|
|
mkdir -p %{buildroot}%{rundir}/uscreens
|
|
chmod 1777 %{buildroot}%{rundir}/uscreens
|
|
install -m 644 screenrc %{buildroot}%{_sysconfdir}/screenrc
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_prefix}/lib/tmpfiles.d
|
|
install -m 644 %{SOURCE4} %{buildroot}/etc/pam.d/screen
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%config %{_sysconfdir}/screenrc
|
|
%config /etc/pam.d/screen
|
|
%attr(555,root,root) %{_bindir}/screen
|
|
%dir %{_datadir}/screen
|
|
%dir %{_prefix}/lib/tmpfiles.d
|
|
%{_prefix}/lib/tmpfiles.d/screen.conf
|
|
%{_datadir}/screen/utf8encodings
|
|
# Created via aaa_base or systemd on system boot
|
|
%ghost %dir %{rundir}/screens
|
|
%ghost %dir %{rundir}/uscreens
|
|
%{_infodir}/screen.info*%{ext_info}
|
|
%{_mandir}/man1/screen.1%{ext_man}
|
|
%license COPYING
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
%set_permissions /run/uscreens/
|
|
%tmpfiles_create /usr/lib/tmpfiles.d/screen.conf
|
|
|
|
%verifyscript
|
|
%verify_permissions -e /run/uscreens/
|
|
|
|
%preun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
# Create our dirs immediatly, after a manual package install.
|
|
# After a reboot systemd/aaa_base will take care.
|
|
test -d %{rundir}/screens || mkdir -m 755 %{rundir}/screens
|
|
test -d %{rundir}/uscreens || mkdir -m 1777 %{rundir}/uscreens
|
|
|
|
%changelog
|