2006-12-14 16:53:16 +01:00
|
|
|
#
|
2010-05-04 08:54:32 +02:00
|
|
|
# spec file for package screen (Version 4.0.3)
|
2006-12-14 16:53:16 +01:00
|
|
|
#
|
2010-02-12 08:01:00 +01:00
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
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
|
2010-09-10 15:15:42 +02:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
BuildRequires: utempter-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: utempter
|
|
|
|
%endif
|
2010-02-12 08:01:00 +01:00
|
|
|
License: GPLv2+
|
2006-12-14 16:53:16 +01:00
|
|
|
Group: System/Console
|
|
|
|
PreReq: %install_info_prereq
|
2008-05-16 14:56:02 +02:00
|
|
|
AutoReqProv: on
|
2010-05-04 08:54:32 +02:00
|
|
|
Version: 4.0.3
|
2010-09-10 15:15:42 +02:00
|
|
|
Release: 7
|
2006-12-14 16:53:16 +01:00
|
|
|
Summary: A program to allow multiple screens on a VT100/ANSI Terminal
|
2010-05-04 08:54:32 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2006-12-14 16:53:16 +01:00
|
|
|
Patch: screen-4.0.2.dif
|
|
|
|
Patch1: screen-__P.diff
|
|
|
|
Patch2: screen-gcc4.diff
|
2008-05-16 14:56:02 +02:00
|
|
|
Patch4: screen-man-loginshell.diff
|
2009-08-28 00:44:55 +02:00
|
|
|
Patch5: screen-4.0.3-ipv6.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
|
|
|
|
%patch
|
|
|
|
%patch1
|
|
|
|
%patch2 -p1
|
2008-05-16 14:56:02 +02:00
|
|
|
%patch4 -p1
|
2009-08-28 00:44:55 +02:00
|
|
|
%patch5 -p1
|
2006-12-14 16:53:16 +01:00
|
|
|
|
|
|
|
%build
|
2009-05-28 03:45:47 +02: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 \
|
|
|
|
--enable-locale \
|
|
|
|
--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
|
|
|
|
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
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config /etc/screenrc
|
|
|
|
%attr(555,root,root) /usr/bin/screen
|
|
|
|
%dir /usr/share/screen
|
|
|
|
/usr/share/screen/utf8encodings
|
2010-09-10 11:17:09 +02:00
|
|
|
# Created via aaa_base on system boot
|
|
|
|
%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
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2007-03-29 18:27:59 +02:00
|
|
|
%changelog
|