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
|
|
|
#
|
2014-04-15 13:04:27 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products 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
|
2006-12-14 16:53:16 +01:00
|
|
|
PreReq: %install_info_prereq
|
2012-09-13 13:52:35 +02:00
|
|
|
PreReq: coreutils
|
2014-04-23 07:35:29 +02:00
|
|
|
Version: 4.2.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
|
2012-06-11 18:04:07 +02:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Console
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
2010-11-04 01:54:11 +01:00
|
|
|
Source1: screen.conf
|
2014-04-23 07:35:29 +02:00
|
|
|
Patch0: global_screenrc.patch
|
2012-06-11 18:04:07 +02:00
|
|
|
Patch2: screen-man-loginshell.diff
|
|
|
|
Patch3: screen-4.0.3-ipv6.patch
|
2010-12-10 20:46:04 +01:00
|
|
|
# upstream savannah#30880
|
2012-06-11 18:04:07 +02:00
|
|
|
Patch4: term_too_long.diff
|
|
|
|
Patch5: sort_command.patch
|
|
|
|
Patch6: libtinfo.diff
|
2012-10-09 15:15:30 +02:00
|
|
|
Patch9: use_locale.diff
|
2013-02-06 15:43:50 +01:00
|
|
|
Patch10: screen-poll-zombies.patch
|
2014-04-23 07:35:29 +02:00
|
|
|
Patch11: xX_string_escape.patch
|
2013-09-13 15:59:02 +02:00
|
|
|
Patch12: screen_enhance_windows_list.patch
|
2014-04-23 07:35:29 +02:00
|
|
|
Patch13: msg_version_3.patch
|
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
|
2014-04-23 07:35:29 +02:00
|
|
|
# screen-man-loginshell.diff
|
2006-12-14 16:53:16 +01:00
|
|
|
%patch2 -p1
|
2014-04-23 07:35:29 +02:00
|
|
|
# screen-4.0.3-ipv6.patch
|
2012-06-11 18:04:07 +02:00
|
|
|
%patch3
|
2014-04-23 07:35:29 +02:00
|
|
|
# term_too_long.diff
|
2008-05-16 14:56:02 +02:00
|
|
|
%patch4 -p1
|
2014-04-23 07:35:29 +02:00
|
|
|
# sort_command.patch
|
2012-06-11 18:04:07 +02:00
|
|
|
%patch5
|
2014-04-23 07:35:29 +02:00
|
|
|
# libtinfo.diff
|
2012-06-11 18:04:07 +02:00
|
|
|
%patch6
|
2014-04-23 07:35:29 +02:00
|
|
|
# use_locale.diff
|
2012-10-09 15:15:30 +02:00
|
|
|
%patch9 -p1
|
2014-04-23 07:35:29 +02:00
|
|
|
# screen-poll-zombies.patch
|
2013-02-06 15:43:50 +01:00
|
|
|
%patch10 -p1
|
2014-04-23 07:35:29 +02:00
|
|
|
# xX_string_escape.patch
|
2013-09-13 15:59:02 +02:00
|
|
|
%patch11
|
2014-04-23 07:35:29 +02:00
|
|
|
# screen_enhance_windows_list.patch
|
2013-09-13 15:59:02 +02:00
|
|
|
%patch12
|
2014-04-23 07:35:29 +02:00
|
|
|
# msg_version_3.patch
|
|
|
|
%patch13 -p1
|
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 \
|
|
|
|
--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
|
|
|
|
|
|
|
|
%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
|
|
|
|
2006-12-14 16:53:16 +01:00
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2007-03-29 18:27:59 +02:00
|
|
|
%changelog
|