#
# Conditional build:
-%bcond_with fifo # force using fifos even if sockets detected
+%bcond_without fifo # force using fifos even if sockets detected
# TODO
-# - should we switch back fifos forcibly (so you could resume 4.0 sessions with 4.1?, stalled for me anyway)
-# configure: checking socket implementation...
-# - you are normal
-# - both sockets and fifos usable. let's take sockets.
# - from changelog: 'maxwin' can now be used to increase the number of maximum windows.
Summary: Screen - Manages multiple sessions on one tty
Summary(de.UTF-8): Screen - Verwaltet mehrere Sitzungen an einem tty
Name: screen
# 4.0 stable is on SCREEN_4_0 brach
Version: 4.1.0
-Release: 1.3
+Release: 2
License: GPL v3+
Group: Applications/Terminal
-Source0: http://git.savannah.gnu.org/cgit/screen.git/snapshot/%{name}-df0777e915608ba2d403bb0b3a967b4619e0378b.tar.gz
-# Source0-md5: d8f6eb8a8d940e90e2acbd73ad015e77
+Source0: http://git.savannah.gnu.org/cgit/screen.git/snapshot/%{name}-cbaa666d4f21988164068a38ac915f8b4f3c4da3.tar.gz
+# Source0-md5: 8acbe428e5d3071c20c3981183009b73
Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
# Source1-md5: 236166e774cee788cf594b05dd1dd70d
Source2: %{name}.pamd
Patch12: %{name}-screenrc.patch
Patch13: %{name}-osc.patch
Patch15: %{name}-statusline-encoding.patch
+Patch16: screen-ipv6.patch
+Patch17: screen-E3.patch
+Patch18: screen-4.1.0-suppress_remap.patch
+Patch19: 49long-usernames.patch
+Patch20: 50increase-max-TERM-length.patch
+Patch21: 51fix-utf8-status-padding-bug.patch
+Patch22: 52fix_screen_utf8_nfd.patch
+Patch23: 53fix-startup-race-condition.patch
+Patch24: 60-644788-screen-4.1.0-4.0.3-interoperability.patch
URL: http://www.gnu.org/software/screen/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: texinfo
BuildRequires: utempter-devel
Requires: pam >= 0.77.3
+Requires: systemd-units >= 38
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%patch12 -p1
#%patch13 -p1 # my brain farted here, see if you have better luck
%patch15 -p0
+%patch16 -p2
+%patch17 -p2
+%patch18 -p1
+%patch19 -p1
+%patch20 -p1
+%patch21 -p1
+%patch22 -p1
+%patch23 -p1
+%patch24 -p1
%build
%{__aclocal}
%{__autoheader}
%{__autoconf}
+# --enable-locale vs --enable-use-locale - https://savannah.gnu.org/bugs/index.php?37528
CFLAGS="%{rpmcflags} -DMAXWIN=256"
%{?with_fifo:nore=1} \
%configure \
--enable-pam \
--enable-colors256 \
--enable-rxvt_osc \
+ --enable-telnet \
+ --enable-use-locale \
--with-sys-screenrc=/etc/screenrc \
--with-pty-mode=0620 \
--with-pty-group=5 \