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
|
|
|
#
|
2013-02-06 15:43:50 +01:00
|
|
|
# Copyright (c) 2013 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
|
|
|
|
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
|
2006-12-14 16:53:16 +01:00
|
|
|
PreReq: %install_info_prereq
|
2012-09-13 13:52:35 +02:00
|
|
|
PreReq: coreutils
|
2012-06-11 18:04:07 +02:00
|
|
|
Version: 4.0.4
|
|
|
|
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
|
2012-06-11 18:04:07 +02:00
|
|
|
Patch0: screen-4.0.2.dif
|
2006-12-14 16:53:16 +01:00
|
|
|
Patch1: screen-__P.diff
|
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-08-07 17:09:16 +02:00
|
|
|
Patch7: mappedcmd.diff
|
2012-08-08 19:56:51 +02:00
|
|
|
Patch8: styroptcrash.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
|
|
|
|
Patch11: screen_enhance_windows_list_1_3.patch
|
|
|
|
Patch12: screen_enhance_windows_list_2_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
|
2012-06-11 18:04:07 +02:00
|
|
|
%patch0
|
2006-12-14 16:53:16 +01:00
|
|
|
%patch1
|
|
|
|
%patch2 -p1
|
2012-06-11 18:04:07 +02:00
|
|
|
%patch3
|
2008-05-16 14:56:02 +02:00
|
|
|
%patch4 -p1
|
2012-06-11 18:04:07 +02:00
|
|
|
%patch5
|
|
|
|
%patch6
|
2012-08-07 17:09:16 +02:00
|
|
|
%patch7 -p2
|
2012-08-08 19:56:51 +02:00
|
|
|
%patch8 -p2
|
2012-10-09 15:15:30 +02:00
|
|
|
%patch9 -p1
|
2013-02-06 15:43:50 +01:00
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
2006-12-14 16:53:16 +01:00
|
|
|
|
|
|
|
%build
|
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} \
|
|
|
|
--with-socket-dir='(eff_uid ? "/var/run/uscreens" : "/var/run/screens")' \
|
|
|
|
--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
|
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
|
2006-12-14 16:53:16 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/run/screens
|
|
|
|
chmod 755 $RPM_BUILD_ROOT/var/run/screens
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/run/uscreens
|
|
|
|
chmod 1777 $RPM_BUILD_ROOT/var/run/uscreens
|
|
|
|
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
|
2010-09-10 11:17:09 +02:00
|
|
|
%ghost %dir /var/run/screens
|
|
|
|
%ghost %dir /var/run/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.
|
|
|
|
test -d /var/run/screens || mkdir -m 755 /var/run/screens
|
|
|
|
test -d /var/run/uscreens || mkdir -m 1777 /var/run/uscreens
|
|
|
|
|
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
|