screen/screen.spec

167 lines
5.0 KiB
RPMSpec

Name: screen
Version: 4.9.1
Release: 1mamba
Summary: A screen manager that multiplexes a physical terminal between several processes
Group: Applications/Shells
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.gnu.org/software/screen/
Source0: ftp://ftp.gnu.org/gnu/screen/screen-%{version}.tar.gz
Source1: screen-pamfile
Source2: screen-tmpfiles.conf
Patch0: screen-4.0.3-libs.patch
# Some tweaks of the default screenrc
Patch1: screen-4.0.2-screenrc.patch
Patch2: screen-4.0.3-stropts.patch
# Fixes potential buffer overflow when > 2^31 semicolons are passed.
Patch3: screen-4.0.1-args.patch
Patch4: screen-4.0.2-maxstr.patch
Patch5: screen-4.0.3-ipv6.patch
Patch6: screen-4.8.0-screenrc-mouse-scroll.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libncurses-devel
BuildRequires: libpam-devel
BuildRequires: libutempter-devel
BuildRequires: libxcrypt-devel
## AUTOBUILDREQ-END
#BuildConflicts: libtermcap-devel
BuildRequires: autoconf
BuildRequires: texinfo
Requires(post):%{__install_info}
%description
Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.
%debug_package
%prep
%setup -q
#%patch0 -p1
%patch 1 -p1
#%patch2 -p1
#%patch3 -p0
#%patch4 -p1
#%patch5 -p1
%patch 6 -p1
./autogen.sh
%build
%configure \
--enable-pam \
--enable-colors256 \
--enable-rxvt_osc \
--enable-locale \
--enable-telnet \
--with-sys-screenrc=/etc/screenrc \
--with-socket-dir=/run/screens
# We would like to have braille support.
sed -i -e 's/.*#.*undef.*HAVE_BRAILLE.*/#define HAVE_BRAILLE 1/;' config.h
sed -i -e 's/\(\/usr\)\?\/local\/etc/\/etc/g;' doc/screen.{1,texinfo}
#rm doc/screen.info*
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall DESTDIR=%{buildroot}
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/screen
install -D -m0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/screen.conf
install -D -m0644 etc/screenrc %{buildroot}%{_sysconfdir}/screenrc
rm -f %{buildroot}%{_bindir}/screen
mv %{buildroot}%{_bindir}/screen-%{version} %{buildroot}%{_bindir}/screen
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%pre
%tmpfiles_create_package screen %{SOURCE2}
:
%post
%install_info %{name}.info
exit 0
%preun
%uninstall_info %{name}.info
exit 0
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/screenrc
%{_sysconfdir}/pam.d/screen
%{_bindir}/screen
%{_tmpfilesdir}/screen.conf
%{_datadir}/screen/
%{_infodir}/screen.*
%{_mandir}/man1/screen.*
%doc COPYING
# ChangeLog FAQ NEWS README TODO
#% doc doc/README.DOTSCREEN
%changelog
* Fri Aug 18 2023 Automatic Build System <autodist@mambasoft.it> 4.9.1-1mamba
- automatic version update by autodist
* Mon Jul 05 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 4.8.0-4mamba
- added screenrc patch to support mouse wheel scroll; added debug package
* Sun Dec 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 4.8.0-3mamba
- set /run/screens 777
* Sat Dec 26 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 4.8.0-2mamba
- rebuild without libtermcap
* Thu Feb 06 2020 Automatic Build System <autodist@mambasoft.it> 4.8.0-1mamba
- automatic version update by autodist
* Wed Oct 02 2019 Automatic Build System <autodist@mambasoft.it> 4.7.0-1mamba
- automatic version update by autodist
* Tue Oct 24 2017 Automatic Build System <autodist@mambasoft.it> 4.6.2-1mamba
- automatic version update by autodist
* Mon Aug 14 2017 Automatic Build System <autodist@mambasoft.it> 4.6.1-1mamba
- automatic version update by autodist
* Sat Apr 15 2017 Automatic Build System <autodist@mambasoft.it> 4.5.1-1mamba
- automatic version update by autodist
* Wed Jan 25 2017 Automatic Build System <autodist@mambasoft.it> 4.5.0-1mamba
- automatic version update by autodist
* Mon Jun 20 2016 Automatic Build System <autodist@mambasoft.it> 4.4.0-1mamba
- automatic version update by autodist
* Sat Sep 12 2015 Automatic Build System <autodist@mambasoft.it> 4.3.1-1mamba
- automatic version update by autodist
* Wed Apr 30 2014 Automatic Build System <autodist@mambasoft.it> 4.2.1-1mamba
- automatic version update by autodist
* Thu Oct 27 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.3-5mamba
- modify pam file not to use obsoleted pam_stack module
* Mon Jul 19 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.3-4mamba
- added configure option to fix patch of default configuration file (/etc/screenrc)
* Mon Feb 08 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.3-3mamba
- rebuilt without libshadow
* Thu Oct 30 2008 Tiziana Ferro <tiziana.ferro@email.it> 4.0.3-2mamba
- some bug fixed
- braille support added
- buildrequirement list added
* Fri Aug 29 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.3-1mamba
- update to 4.0.3
* Mon May 28 2007 Aleph0 <aleph0@openmamba.org> 4.0.2-1mamba
- package created by autospec