2006-12-14 16:53:16 +01:00
|
|
|
#
|
2011-07-06 21:09:31 +02:00
|
|
|
# spec file for package screen
|
2006-12-14 16:53:16 +01:00
|
|
|
#
|
2017-01-17 23:41:54 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-14 16:53:16 +01:00
|
|
|
#
|
2009-05-28 03:45:47 +02:00
|
|
|
# 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.
|
|
|
|
|
2006-12-14 16:53:16 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-10-09 15:15:30 +02:00
|
|
|
|
2014-04-23 07:35:29 +02:00
|
|
|
%if 0%{?suse_version} > 1310
|
|
|
|
%define rundir /run
|
|
|
|
%else
|
|
|
|
%define rundir /var/run
|
|
|
|
%endif
|
|
|
|
|
2009-05-28 03:45:47 +02:00
|
|
|
Url: http://www.gnu.org/software/screen/
|
2008-05-16 14:56:02 +02:00
|
|
|
|
2006-12-14 16:53:16 +01:00
|
|
|
Name: screen
|
2013-02-06 15:43:50 +01:00
|
|
|
%if 0%{?suse_version} > 1140
|
2012-09-09 19:54:30 +02:00
|
|
|
BuildRequires: makeinfo
|
2013-02-06 15:43:50 +01:00
|
|
|
%endif
|
2010-09-10 15:15:42 +02:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
BuildRequires: utempter-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: utempter
|
|
|
|
%endif
|
2014-04-23 07:35:29 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2015-08-19 11:02:12 +02:00
|
|
|
BuildRequires: pam-devel
|
2006-12-14 16:53:16 +01:00
|
|
|
PreReq: %install_info_prereq
|
2012-09-13 13:52:35 +02:00
|
|
|
PreReq: coreutils
|
2017-01-17 23:41:54 +01:00
|
|
|
Version: 4.5.0
|
2012-06-11 18:04:07 +02:00
|
|
|
Release: 0
|
2006-12-14 16:53:16 +01:00
|
|
|
Summary: A program to allow multiple screens on a VT100/ANSI Terminal
|
2015-06-15 18:01:12 +02:00
|
|
|
License: GPL-3.0+
|
2012-06-11 18:04:07 +02:00
|
|
|
Group: System/Console
|
2014-05-07 11:40:51 +02:00
|
|
|
Source: http://ftp.gnu.org/gnu/screen/%{name}-%{version}.tar.gz
|
2010-11-04 01:54:11 +01:00
|
|
|
Source1: screen.conf
|
2014-05-07 11:40:51 +02:00
|
|
|
Source2: http://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
|
2014-04-23 07:35:29 +02:00
|
|
|
Patch0: global_screenrc.patch
|
2017-01-27 23:05:16 +01:00
|
|
|
Patch1: fix_enable_logfile.patch
|
2012-06-11 18:04:07 +02:00
|
|
|
Patch6: libtinfo.diff
|
2006-12-14 16:53:16 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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
|
2014-04-23 07:35:29 +02:00
|
|
|
# global_screenrc.patch
|
2012-06-11 18:04:07 +02:00
|
|
|
%patch0
|
2017-01-27 23:05:16 +01:00
|
|
|
# PATCH-FEATURE-UPSTREAM fix_enable_logfile.patch
|
|
|
|
%patch1
|
2014-04-23 07:35:29 +02:00
|
|
|
# libtinfo.diff
|
2012-06-11 18:04:07 +02:00
|
|
|
%patch6
|
2015-06-15 18:01:12 +02:00
|
|
|
|
2006-12-14 16:53:16 +01:00
|
|
|
%build
|
2014-04-23 07:35:29 +02:00
|
|
|
sh ./autogen.sh
|
|
|
|
|
2011-11-21 15:55:29 +01:00
|
|
|
CFLAGS="-DMAXWIN=1000 $RPM_OPT_FLAGS" %configure --prefix=/usr --infodir=%{_infodir} \
|
2006-12-14 16:53:16 +01:00
|
|
|
--mandir=%{_mandir} \
|
2014-04-23 07:35:29 +02:00
|
|
|
--with-socket-dir='(eff_uid ? "%rundir/uscreens" : "%rundir/screens")' \
|
2006-12-14 16:53:16 +01:00
|
|
|
--with-sys-screenrc=/etc/screenrc \
|
|
|
|
--with-pty-group=5 \
|
2012-10-09 15:15:30 +02:00
|
|
|
--enable-use-locale \
|
2006-12-14 16:53:16 +01:00
|
|
|
--enable-telnet \
|
2015-08-19 11:02:12 +02:00
|
|
|
--enable-pam \
|
2006-12-14 16:53:16 +01:00
|
|
|
--enable-colors256 \
|
|
|
|
--verbose
|
2014-04-23 07:35:29 +02:00
|
|
|
|
|
|
|
# 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 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
|
|
|
|
|
2010-02-12 08:01:00 +01:00
|
|
|
make %{?_smp_mflags}
|
2006-12-14 16:53:16 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/screen
|
|
|
|
mv $RPM_BUILD_ROOT/usr/bin/screen-%version $RPM_BUILD_ROOT/usr/bin/screen
|
|
|
|
chmod 755 $RPM_BUILD_ROOT/usr/bin/screen
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc
|
2011-07-06 21:09:31 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
|
2014-04-23 07:35:29 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%rundir/screens
|
|
|
|
chmod 755 $RPM_BUILD_ROOT%rundir/screens
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%rundir/uscreens
|
|
|
|
chmod 1777 $RPM_BUILD_ROOT%rundir/uscreens
|
2006-12-14 16:53:16 +01:00
|
|
|
install -m 644 screenrc $RPM_BUILD_ROOT/etc/screenrc
|
2011-07-06 21:09:31 +02:00
|
|
|
install -m 644 %SOURCE1 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
|
2006-12-14 16:53:16 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config /etc/screenrc
|
|
|
|
%attr(555,root,root) /usr/bin/screen
|
|
|
|
%dir /usr/share/screen
|
2011-07-06 21:09:31 +02:00
|
|
|
%dir /usr/lib/tmpfiles.d
|
|
|
|
/usr/lib/tmpfiles.d/screen.conf
|
2006-12-14 16:53:16 +01:00
|
|
|
/usr/share/screen/utf8encodings
|
2011-11-20 07:48:53 +01:00
|
|
|
# Created via aaa_base or systemd on system boot
|
2014-04-23 07:35:29 +02:00
|
|
|
%ghost %dir %rundir/screens
|
|
|
|
%ghost %dir %rundir/uscreens
|
2006-12-14 16:53:16 +01:00
|
|
|
%doc %{_infodir}/screen.info*.gz
|
|
|
|
%doc %{_mandir}/man1/screen.1.gz
|
2015-07-01 10:17:21 +02:00
|
|
|
%doc COPYING
|
2006-12-14 16:53:16 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2011-11-20 07:48:53 +01:00
|
|
|
# Create our dirs immediatly, after a manual package install.
|
|
|
|
# After a reboot systemd/aaa_base will take care.
|
2014-04-23 07:35:29 +02:00
|
|
|
test -d %rundir/screens || mkdir -m 755 %rundir/screens
|
|
|
|
test -d %rundir/uscreens || mkdir -m 1777 %rundir/uscreens
|
2011-11-20 07:48:53 +01:00
|
|
|
|
2007-03-29 18:27:59 +02:00
|
|
|
%changelog
|