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
|
2017-02-26 12:05:40 +01:00
|
|
|
%define rundir %{_localstatedir}/run
|
2014-04-23 07:35:29 +02:00
|
|
|
%endif
|
2006-12-14 16:53:16 +01:00
|
|
|
Name: screen
|
2017-02-26 12:05:40 +01:00
|
|
|
Version: 4.5.1
|
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
|
2017-02-26 12:05:40 +01:00
|
|
|
Url: http://www.gnu.org/software/screen/
|
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
|
2012-06-11 18:04:07 +02:00
|
|
|
Patch6: libtinfo.diff
|
2017-02-26 12:05:40 +01:00
|
|
|
Patch7: 0001-Follow-up-to-bc5ea98-fix-texinfo-syntax-errors.patch
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
# FIXME: use proper Requires(pre/post/preun/...)
|
|
|
|
PreReq: %{install_info_prereq}
|
|
|
|
PreReq: coreutils
|
|
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
Requires(preun): %{install_info_prereq}
|
2006-12-14 16:53:16 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-02-26 12:05:40 +01:00
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
BuildRequires: makeinfo
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
BuildRequires: utempter-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: utempter
|
|
|
|
%endif
|
2006-12-14 16:53:16 +01:00
|
|
|
|
|
|
|
%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
|
2017-02-26 12:05:40 +01:00
|
|
|
%setup -q
|
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
|
|
|
# libtinfo.diff
|
2012-06-11 18:04:07 +02:00
|
|
|
%patch6
|
2017-02-26 12:05:40 +01:00
|
|
|
%patch7 -p2
|
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
|
|
|
|
|
2017-02-26 12:05:40 +01:00
|
|
|
CFLAGS="-DMAXWIN=1000 %{optflags}" %configure --prefix=%{_prefix} --infodir=%{_infodir} \
|
2006-12-14 16:53:16 +01:00
|
|
|
--mandir=%{_mandir} \
|
2017-02-26 12:05:40 +01:00
|
|
|
--with-socket-dir='(eff_uid ? "%{rundir}/uscreens" : "%{rundir}/screens")' \
|
|
|
|
--with-sys-screenrc=%{_sysconfdir}/screenrc \
|
2006-12-14 16:53:16 +01:00
|
|
|
--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
|
2017-02-26 12:05:40 +01:00
|
|
|
make %{?_smp_mflags} depend # FIXME: this should be self sufficient.
|
2014-04-23 07:35:29 +02:00
|
|
|
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
|
2017-02-26 12:05:40 +01:00
|
|
|
%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}%{_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
|
2006-12-14 16:53:16 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2017-02-26 12:05:40 +01:00
|
|
|
%config %{_sysconfdir}/screenrc
|
|
|
|
%attr(555,root,root) %{_bindir}/screen
|
|
|
|
%dir %{_datadir}/screen
|
|
|
|
%dir %{_prefix}/lib/tmpfiles.d
|
|
|
|
%{_prefix}/lib/tmpfiles.d/screen.conf
|
|
|
|
%{_datadir}/screen/utf8encodings
|
2011-11-20 07:48:53 +01:00
|
|
|
# Created via aaa_base or systemd on system boot
|
2017-02-26 12:05:40 +01:00
|
|
|
%ghost %dir %{rundir}/screens
|
|
|
|
%ghost %dir %{rundir}/uscreens
|
|
|
|
%{_infodir}/screen.info*%{ext_info}
|
|
|
|
%{_mandir}/man1/screen.1%{ext_man}
|
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
|
|
|
|
|
2017-02-26 12:05:40 +01:00
|
|
|
%preun
|
|
|
|
%install_info_delete --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.
|
2017-02-26 12:05:40 +01: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
|