SHA256
3
0
forked from pool/screen
screen/screen.spec
OBS User autobuild af2a08d7d8 Accepting request 18959 from Base:System
Copy from Base:System/screen based on submit request 18959 from user mlschroe

OBS-URL: https://build.opensuse.org/request/show/18959
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/screen?expand=0&rev=6
2009-08-27 22:44:55 +00:00

106 lines
3.1 KiB
RPMSpec

#
# spec file for package screen (Version 4.0.2)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Url: http://www.gnu.org/software/screen/
Name: screen
BuildRequires: ncurses-devel utempter
License: GPL v2 or later
Group: System/Console
PreReq: %install_info_prereq
AutoReqProv: on
Version: 4.0.2
Release: 190
Summary: A program to allow multiple screens on a VT100/ANSI Terminal
Source: screen-4.0.2.tar.gz
Patch: screen-4.0.2.dif
Patch1: screen-__P.diff
Patch2: screen-gcc4.diff
Patch3: screen-4.0.2-comb.diff
Patch4: screen-man-loginshell.diff
Patch5: screen-4.0.3-ipv6.patch
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
Authors:
--------
Oliver Lauman
Juergen Weigert <jnweiger@immd4.informatik.uni-erlangen.de>
Michael Schroeder <mlschroe@immd4.informatik.uni-erlangen.de>
%prep
%setup
%patch
%patch1
%patch2 -p1
%patch3
%patch4 -p1
%patch5 -p1
%build
CFLAGS="-DMAXWIN=1000 $RPM_OPT_FLAGS" ./configure --prefix=/usr --infodir=%{_infodir} \
--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
make
%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
%dir /var/run/screens
%dir /var/run/uscreens
%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
%changelog