7aa7f49293
new version, GNU screen 4.3.0 release OBS-URL: https://build.opensuse.org/request/show/312094 OBS-URL: https://build.opensuse.org/package/show/Base:System/screen?expand=0&rev=57
132 lines
4.0 KiB
RPMSpec
132 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package screen
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%if 0%{?suse_version} > 1310
|
|
%define rundir /run
|
|
%else
|
|
%define rundir /var/run
|
|
%endif
|
|
|
|
Url: http://www.gnu.org/software/screen/
|
|
|
|
Name: screen
|
|
%if 0%{?suse_version} > 1140
|
|
BuildRequires: makeinfo
|
|
%endif
|
|
BuildRequires: ncurses-devel
|
|
%if 0%{?suse_version} > 1130
|
|
BuildRequires: utempter-devel
|
|
%else
|
|
BuildRequires: utempter
|
|
%endif
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
PreReq: %install_info_prereq
|
|
PreReq: coreutils
|
|
Version: 4.3.0
|
|
Release: 0
|
|
Summary: A program to allow multiple screens on a VT100/ANSI Terminal
|
|
License: GPL-3.0+
|
|
Group: System/Console
|
|
Source: http://ftp.gnu.org/gnu/screen/%{name}-%{version}.tar.gz
|
|
Source1: screen.conf
|
|
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
|
|
Patch0: global_screenrc.patch
|
|
Patch6: libtinfo.diff
|
|
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
|
|
# global_screenrc.patch
|
|
%patch0
|
|
# libtinfo.diff
|
|
%patch6
|
|
|
|
|
|
%build
|
|
sh ./autogen.sh
|
|
|
|
CFLAGS="-DMAXWIN=1000 $RPM_OPT_FLAGS" %configure --prefix=/usr --infodir=%{_infodir} \
|
|
--mandir=%{_mandir} \
|
|
--with-socket-dir='(eff_uid ? "%rundir/uscreens" : "%rundir/screens")' \
|
|
--with-sys-screenrc=/etc/screenrc \
|
|
--with-pty-group=5 \
|
|
--enable-use-locale \
|
|
--enable-telnet \
|
|
--enable-colors256 \
|
|
--verbose
|
|
|
|
# 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
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%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
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
|
|
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
|
|
install -m 644 screenrc $RPM_BUILD_ROOT/etc/screenrc
|
|
install -m 644 %SOURCE1 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%config /etc/screenrc
|
|
%attr(555,root,root) /usr/bin/screen
|
|
%dir /usr/share/screen
|
|
%dir /usr/lib/tmpfiles.d
|
|
/usr/lib/tmpfiles.d/screen.conf
|
|
/usr/share/screen/utf8encodings
|
|
# Created via aaa_base or systemd on system boot
|
|
%ghost %dir %rundir/screens
|
|
%ghost %dir %rundir/uscreens
|
|
%doc %{_infodir}/screen.info*.gz
|
|
%doc %{_mandir}/man1/screen.1.gz
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
# Create our dirs immediatly, after a manual package install.
|
|
# After a reboot systemd/aaa_base will take care.
|
|
test -d %rundir/screens || mkdir -m 755 %rundir/screens
|
|
test -d %rundir/uscreens || mkdir -m 1777 %rundir/uscreens
|
|
|
|
%postun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%changelog
|