438 lines
13 KiB
RPMSpec
438 lines
13 KiB
RPMSpec
Summary: A screen manager that supports multiple logins on one terminal.
|
||
Name: screen
|
||
Version: 4.0.2
|
||
Release: 6
|
||
License: GPL2
|
||
Group: Applications/System
|
||
URL: http://www.gnu.org/software/screen
|
||
Prereq: /sbin/install-info
|
||
BuildRoot: %{_tmppath}/%{name}-root
|
||
BuildRequires: ncurses-devel texinfo pam-devel libtool
|
||
|
||
#
|
||
# The one and only true source
|
||
#
|
||
Source0: ftp://ftp.uni-erlangen.de/pub/utilities/screen/screen-%{version}.tar.gz
|
||
|
||
# Except for the PAM configuration, that is.
|
||
Source1: screen.pam
|
||
|
||
# Small tweak for ia64
|
||
#
|
||
Patch1: screen-3.9.13-ia64.patch
|
||
|
||
# Some tweaks of the default screenrc
|
||
# really end users should visit /etc/screenrc and tweak
|
||
# it to suit their personal preferances
|
||
#
|
||
Patch2: screen-4.0.2-screenrc.patch
|
||
Patch3: screen-4.0.1-etcscreenrc.patch
|
||
|
||
# Due to the way the build system creates rpms in a buildroot
|
||
# we need this tweak for utf8encodings
|
||
#
|
||
Patch4: screen-3.9.11-utf8-install.patch
|
||
|
||
# We need to allow rpm to strip the binary and we don't have a
|
||
# libelf dependancy
|
||
Patch5: screen-3.9.11-no-stripping-or-elf.patch
|
||
|
||
# The maintainers really didn't like this patch, and I couldn't
|
||
# reproduce the "access denied" problem on 4.0.1, so this
|
||
# patch is not applied for now. We'll include it in the srpm
|
||
# in case someone else wants it.
|
||
#
|
||
Patch6: screen-3.9.15-home-screendir.patch
|
||
|
||
# Fixes potential buffer overflow when > 2^31 semicolons are passed.
|
||
#
|
||
Patch7: screen-4.0.1-args.patch
|
||
Patch8: screen-4.0.2-logname.patch
|
||
|
||
%description
|
||
The screen utility allows you to have multiple logins on just one
|
||
terminal. Screen is useful for users who telnet into a machine or are
|
||
connected via a dumb terminal, but want to use more than just one
|
||
login.
|
||
|
||
Install the screen package if you need a screen manager that can
|
||
support multiple logins on one terminal.
|
||
|
||
|
||
%prep
|
||
|
||
|
||
%setup -q
|
||
%patch1 -p1 -b .ia64
|
||
%patch2 -p1 -b .screenrc
|
||
#%patch3 -p1 -b .etcscreenrc
|
||
%patch4 -p1 -b .utf8-install
|
||
%patch5 -p1 -b .no-stripping-or-elf
|
||
#%patch8 -p1 -b .logname
|
||
|
||
# Uncomment if you want screen to first try to use $HOME/.screens
|
||
# and subsequently try to use /tmp/S-<user>
|
||
#
|
||
#%patch6 -p1 -b .screendir
|
||
|
||
#
|
||
#
|
||
%patch7 -p0 -b .args
|
||
|
||
|
||
%build
|
||
libtoolize --copy --force
|
||
autoconf
|
||
|
||
%configure \
|
||
--enable-pam \
|
||
--enable-colors256 \
|
||
--enable-rxvt_osc \
|
||
--enable-locale \
|
||
--enable-telnet \
|
||
--with-sys-screenrc="/etc/screenrc" #\
|
||
#--with-socket-dir="/tmp/screen"
|
||
|
||
# We would like to have braille support.
|
||
#
|
||
sed -e 's/.*#.*undef.*HAVE_BRAILLE.*/#define HAVE_BRAILLE 1/;' \
|
||
< config.h > config.tmp.h
|
||
mv config.tmp.h config.h
|
||
|
||
# We really don't want to be using /usr/local
|
||
# because we wish to be FSB complient
|
||
#
|
||
#sed -e 's/\/usr\/local\/etc/\/etc/g;' < etc/etcscreenrc > etc/etcscreenrc.tmp
|
||
#mv etc/etcscreenrc.tmp etc/etcscreenrc
|
||
|
||
find doc -type f | while read line; do
|
||
sed -e 's/\(\/usr\)\?\/local\/etc/\/etc/g;' < $line > $line.tmp;
|
||
mv $line.tmp $line
|
||
done
|
||
|
||
rm doc/screen.info*
|
||
make clean
|
||
|
||
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" make
|
||
|
||
|
||
%install
|
||
rm -rf $RPM_BUILD_ROOT
|
||
|
||
mkdir -p $RPM_BUILD_ROOT/etc
|
||
%makeinstall DDESTDIR=$RPM_BUILD_ROOT
|
||
|
||
( cd $RPM_BUILD_ROOT
|
||
rm -f .%{_bindir}/screen.old .%{_bindir}/screen
|
||
mv .%{_bindir}/screen-%{version} .%{_bindir}/screen
|
||
)
|
||
|
||
install -c -m 0644 etc/etcscreenrc $RPM_BUILD_ROOT/etc/screenrc
|
||
cat etc/screenrc >> $RPM_BUILD_ROOT/etc/screenrc
|
||
|
||
# Better not forget to copy the pam file around
|
||
#
|
||
mkdir -p $RPM_BUILD_ROOT/etc/pam.d
|
||
install -m 0644 $RPM_SOURCE_DIR/screen.pam $RPM_BUILD_ROOT/etc/pam.d/screen
|
||
|
||
# Remove files from the buildroot which we don't want packaged
|
||
#
|
||
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
||
|
||
%clean
|
||
rm -rf $RPM_BUILD_ROOT
|
||
|
||
%post
|
||
/sbin/install-info %{_infodir}/screen.info.gz %{_infodir}/dir --entry="* screen: (screen). Terminal multiplexer."
|
||
|
||
|
||
%preun
|
||
if [ $1 = 0 ]; then
|
||
/sbin/install-info --delete %{_infodir}/screen.info.gz %{_infodir}/dir --entry="* screen: (screen). Terminal multiplexer."
|
||
fi
|
||
|
||
|
||
%files
|
||
%defattr(-,root,root)
|
||
%doc NEWS README doc/FAQ doc/README.DOTSCREEN
|
||
|
||
%attr(755,root,root) %{_bindir}/screen
|
||
%{_mandir}/man1/screen.*
|
||
%{_infodir}/screen.info*
|
||
%{_datadir}/screen/utf8encodings/*
|
||
%config /etc/screenrc
|
||
%config /etc/pam.d/screen
|
||
|
||
%changelog
|
||
* Tue Feb 15 2005 Petr Rockai <prockai@redhat.com> - 4.0.2-6
|
||
- fix BR 136234 by carrying out the suggested change in /etc/screenrc
|
||
- drop screen-4.0.2-logname.patch (merged into screen-4.0.2-screenrc.patch)
|
||
- grant wish 130674 by adding a (commented out) caption statement to default
|
||
screenrc
|
||
|
||
* Fri Sep 10 2004 Warren Togami <wtogami@redhat.com> 4.0.2-5
|
||
- #132321 and some minor spec cleanups
|
||
|
||
* Fri Aug 6 2004 Daniel Reed <djr@redhat.com> 4.0.2-4
|
||
- remove extra entries in "sources" file
|
||
|
||
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
||
- rebuilt
|
||
|
||
* Wed Apr 28 2004 Daniel Reed <djr@redhat.com> 4.0.2-2
|
||
- Add patch -logname to correct #121875
|
||
|
||
* Mon Apr 05 2004 Daniel Reed <djr@redhat.com> 4.0.2-1
|
||
- Version bump (4.0.2)
|
||
|
||
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
||
- rebuilt
|
||
|
||
* Tue Jan 27 2004 Lon Hohberger <lhh@redhat.com> 4.0.1-3
|
||
- Rebuild
|
||
|
||
* Mon Dec 08 2003 Lon Hohberger <lhh@redhat.com> 4.0.1-2
|
||
- Build for Fedora
|
||
|
||
* Mon Dec 08 2003 Lon Hohberger <lhh@redhat.com> 4.0.1-1
|
||
- Import of 4.0.1 from upstream.
|
||
- Removed screen-homedir hack introduced in 3.9.15-8. (I
|
||
was unable to reproduce the behavior described in #98320,
|
||
and thus, the patch isn't necessary.)
|
||
- Fix for buffer overflow from Timo Strainen (patch 7).
|
||
- Fix for #111084 - we now require texinfo to build.
|
||
- Comment out lines in screenrc causing screen to complain
|
||
at startup.
|
||
|
||
* Tue Jul 10 2003 Lon Hohberger <lhh@redhat.com> 3.9.15-11
|
||
- Rebuilt
|
||
|
||
* Tue Jul 10 2003 Lon Hohberger <lhh@redhat.com> 3.9.15-10
|
||
- Put the bindkey back in for now.
|
||
|
||
* Mon Jul 01 2003 Lon Hohberger <lhh@redhat.com> 3.9.15-9
|
||
- Rebuilt
|
||
|
||
* Mon Jul 01 2003 Lon Hohberger <lhh@redhat.com> 3.9.15-8
|
||
- Change screen's behavior to do the following: Attempt to use
|
||
~/.screen as the screen directory. Failing that (ie, on files
|
||
systems without Unix sockets support), try using /tmp/screen-<USER>.
|
||
This prevents a user from creating /tmp/screens (which inherits
|
||
the sticky bit from /tmp, preventing other users from using screen),
|
||
as well as *tries* to be more secure.
|
||
|
||
* Tue Jul 01 2003 Lon Hohberger <lhh@redhat.com> 3.9.15-7
|
||
- Rebuilt
|
||
|
||
* Tue Jul 01 2003 Lon Hohberger <lhh@redhat.com> 3.9.15-6
|
||
- Disable system-wide read/write dir in /tmp; use user's ~/.screen
|
||
directory for screen sessions. (#98320)
|
||
|
||
* Mon Jun 16 2003 Lon Hohberger <lhh@redhat.com> 3.9.15-5
|
||
- Rebuilt
|
||
|
||
* Fri Jun 13 2003 Lon Hohberger <lhh@redhat.com> 3.9.15-4
|
||
- Removed bindkey entry; stty `tput kbs` sets this correctly for
|
||
the screen terminal type.
|
||
|
||
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
||
- rebuilt
|
||
|
||
* Wed Apr 16 2003 Lon Hohberger <lhh@redhat.com> 3.9.15-2
|
||
- Rebuilt
|
||
|
||
* Wed Apr 16 2003 Lon Hohberger <lhh@redhat.com> 3.9.15-1
|
||
- Import of 3.9.15 from upstream.
|
||
|
||
* Fri Feb 14 2003 Lon Hohberger <lhh@redhat.com> 3.9.13-5
|
||
- Closes a potential window to raise the warning noted
|
||
in #84232.
|
||
|
||
* Fri Feb 14 2003 Lon Hohberger <lhh@redhat.com> 3.9.13-4
|
||
- Fix for #84232
|
||
|
||
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
||
- rebuilt
|
||
|
||
* Thu Dec 05 2002 Lon Hohberger <lhh@redhat.com> 3.9.13-2
|
||
- Fixed up patches; aggregated screenrc + status patches into one
|
||
for build 2.
|
||
|
||
* Thu Dec 05 2002 Lon Hohberger <lhh@redhat.com> 3.9.13-1
|
||
- Import of 3.9.13 source tree. UTF-8 no longer dooms us.
|
||
|
||
* Mon Dec 02 2002 Lon Hohberger <lhh@redhat.com> 3.9.11-14
|
||
- Fix for #78423
|
||
|
||
* Tue Nov 12 2002 Lon Hohberger <lhh@redhat.com> 3.9.11-13
|
||
- Fixed Makefile, bumped to 3.9.11-13
|
||
|
||
* Mon Nov 11 2002 Nalin Dahyabhai <nalin@redhat.com> 3.9.11-12
|
||
- obey RPM_OPT_FLAGS always
|
||
|
||
* Mon Nov 11 2002 Bill Nottingham <notting@redhat.com>
|
||
- remove hardcoded paths from pam config file
|
||
|
||
* Wed Aug 14 2002 Philip Copeland <bryce@redhat.com> 3.9.11-10
|
||
- #65344 - doomed by utf8
|
||
|
||
* Tue Aug 12 2002 Philip Copeland <bryce@redhat.com> 3.9.11-9
|
||
- #60597 - what /shall/ we make the defaults today?
|
||
|
||
* Thu Jul 17 2002 Philip Copeland <bryce@redhat.com> 3.9.11-8
|
||
- Prevent the makefile from stripping the binary
|
||
- Really get rid of the libelf dependancy
|
||
|
||
* Thu Jun 27 2002 Philip Copeland <bryce@redhat.com> 3.9.11-7
|
||
- Get rid of libelf dependancy
|
||
|
||
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 3.9.11-6
|
||
- automated rebuild
|
||
|
||
* Tue May 28 2002 Philip Copeland <bryce@redhat.com> 3.9.11-5
|
||
- Missing bindkey to allow backspace to work
|
||
- Rebuilt due to rpm bug
|
||
|
||
* Thu Apr 18 2002 Bill Nottingham <notting@redhat.com>
|
||
- fix starting in non-en_US locales (#61835)
|
||
|
||
* Mon Apr 15 2002 Philip Copeland <bryce@redhat.com>
|
||
- Various fixups including remembering to enable pam support
|
||
|
||
* Sat Feb 16 2002 Florian La Roche <Florian.LaRoche@redhat.de>
|
||
- update to 3.9.11
|
||
- patch0/patch4 is not necessary anymore
|
||
- do not compress man-pages/info-files in spec file
|
||
- use configure to set telnet/screenrc instead of sed
|
||
- add a hack to correctly install the new screenencodings
|
||
- try to build up a better global /etc/screenrc instead of
|
||
/etc/skel/.screenrc
|
||
|
||
* Fri Aug 3 2001 Crutcher Dunnavant <crutcher@redhat.com> 3.9.9-3
|
||
- fixed screenrc path sed command; #50046
|
||
- added ncurses-devel build dep; #49692
|
||
- fix typo in specfile that broke screenrc, #49535
|
||
|
||
* Tue Jul 10 2001 Tim Powers <timp@redhat.com>
|
||
- gzip manpage
|
||
|
||
* Mon Jun 25 2001 Crutcher Dunnavant <crutcher@redhat.com>
|
||
- itterate to 3.9.9
|
||
- fixed FAQ
|
||
- added electro@mrduck.net's PAM patch, crazy :)
|
||
|
||
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
|
||
- Bump release + rebuild.
|
||
|
||
* Tue Feb 13 2001 Florian La Roche <Florian.LaRoche@redhat.de>
|
||
- fix configure.in to use correct code to check for select()
|
||
|
||
* Wed Jan 10 2001 Tim Waugh <twaugh@redhat.com>
|
||
- Rebuild, which will hopefully fix bug #22537
|
||
|
||
* Sun Oct 01 2000 Florian La Roche <Florian.LaRoche@redhat.de>
|
||
- update to 3.9.8
|
||
- change the .jbj patch and add some more "user" -> "auser" cases
|
||
|
||
* Thu Aug 15 2000 Crutcher Dunnavant <crutcher@redhat.com>
|
||
- Patched the documentation to change the 'C-a C-\' to 'C-a \',
|
||
- which is what is the real behaviour. this fixes bug #16103
|
||
|
||
* Thu Aug 3 2000 Crutcher Dunnavant <crutcher@redhat.com>
|
||
- Fixed my fix, so that the hack goes in the /global/ file :)
|
||
|
||
* Thu Aug 3 2000 Crutcher Dunnavant <crutcher@redhat.com>
|
||
- Stuck an entry into the default screenrc file that forces
|
||
- '^?' (backspace) to send '^H'.
|
||
- Its an ugly fix for a termcap inheritance problem,
|
||
- but it works, if anyone REALLY needs '^?' they can change it,
|
||
- and I think we anger less people with this than the way it
|
||
- currently behaves. (Read: vi and emacs work now)
|
||
- POST NOTE (Aug 15): emacs is NOT happy with ^H, BUT screen thinks
|
||
- that this is what backspace is supposed to do, so we don't change it.
|
||
|
||
* Thu Aug 3 2000 Crutcher Dunnavant <crutcher@redhat.com>
|
||
- Fixed some conflicting descriptions in the documentation
|
||
|
||
* Thu Aug 3 2000 Crutcher Dunnavant <crutcher@redhat.com>
|
||
- got a patch from rzm@icm.edu.pl to fix bug #10353
|
||
- which caused screen to crash when copying to a file buffer
|
||
|
||
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
||
- automatic rebuild
|
||
|
||
* Sat Jun 10 2000 Bill Nottingham <notting@redhat.com>
|
||
- rebuild, FHS tweaks
|
||
|
||
* Sat May 6 2000 Bill Nottingham <notting@redhat.com>
|
||
- fix build for ia64
|
||
|
||
* Mon Apr 3 2000 Bernhard Rosenkr<6B>nzer <bero@redhat.com>
|
||
- rebuild with new ncurses
|
||
|
||
* Tue Mar 7 2000 Jeff Johnson <jbj@redhat.com>
|
||
- rebuild for sparc baud rates > 38400.
|
||
|
||
* Tue Feb 15 2000 Bernhard Rosenkr<6B>nzer <bero@redhat.com>
|
||
- Fix MD5 password support (Bug #9463)
|
||
|
||
* Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
|
||
- handle compressed man pages
|
||
|
||
* Fri Dec 10 1999 Bill Nottingham <notting@redhat.com>
|
||
- update to 3.9.5
|
||
|
||
* Wed Oct 20 1999 Bill Nottingham <notting@redhat.com>
|
||
- you know, we weren't just patching in Unix98 pty support for fun.
|
||
|
||
* Wed Aug 18 1999 Bill Nottingham <notting@redhat.com>
|
||
- put screendir in ~
|
||
|
||
* Wed Aug 18 1999 Jeff Johnson <jbj@redhat.com>
|
||
- update to 3.9.4.
|
||
|
||
* Wed Jun 16 1999 Bill Nottingham <notting@redhat.com>
|
||
- force tty permissions/group
|
||
|
||
* Wed Jun 5 1999 Dale Lovelace <dale@redhat.com>
|
||
- permissions on /etc/skel/.screenrc to 644
|
||
|
||
* Mon Apr 26 1999 Bill Nottingham <notting@redhat.com>
|
||
- take out warning of directory permissions so root can still use screen
|
||
|
||
* Wed Apr 07 1999 Bill Nottingham <notting@redhat.com>
|
||
- take out warning of directory ownership so root can still use screen
|
||
|
||
* Wed Apr 07 1999 Erik Troan <ewt@redhat.com>
|
||
- patched in utempter support, turned off setuid bit
|
||
|
||
* Fri Mar 26 1999 Erik Troan <ewt@redhat.com>
|
||
- fixed unix98 pty support
|
||
|
||
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
||
- auto rebuild in the new build environment (release 3)
|
||
|
||
* Thu Mar 11 1999 Bill Nottingham <notting@redhat.com>
|
||
- add patch for Unix98 pty support
|
||
|
||
* Mon Dec 28 1998 Jeff Johnson <jbj@redhat.com>
|
||
- update to 3.7.6.
|
||
|
||
* Sun Aug 16 1998 Jeff Johnson <jbj@redhat.com>
|
||
- build root
|
||
|
||
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
|
||
- translations modified for de, fr, tr
|
||
|
||
* Wed Oct 21 1997 Cristian Gafton <gafton@redhat.com>
|
||
- upgraded to 3.7.4
|
||
|
||
* Wed Oct 08 1997 Erik Troan <ewt@redhat.com>
|
||
- removed glibc 1.99 specific patch
|
||
|
||
* Tue Sep 23 1997 Erik Troan <ewt@redhat.com>
|
||
- added install-info support
|
||
|
||
* Mon Jul 21 1997 Erik Troan <ewt@redhat.com>
|
||
- built against glibc
|