source: projects/specs/trunk/s/screen/screen-vl.spec @ 12534

Revision 12534, 8.2 KB checked in by tomop, 3 years ago (diff)

updated 7 packages

freetype2-2.10.4-1

iproute-5.10.0-1

kmod-28-1

libunwind-1.5.0-1

net-tools-2.10-1

screen-4.8.0-2

util-linux-2.36.2-1

Line 
1Summary:        A screen manager that supports multiple logins on one terminal.
2Summary(ja):    スクリーンマネージャ - 一つの端末で多重ログイン
3Name:           screen
4Version:        4.8.0
5Release:        2%{?_dist_release}
6Group:          accessories
7Vendor:         Project Vine
8Distribution:   Vine Linux
9
10License:        GPLv2+
11Source0:        https://ftp.gnu.org/gnu/screen/screen-%{version}.tar.gz
12Source1:        screen.pam
13
14Patch1:         screen-4.3.1-libs.patch
15Patch2:         screen-4.3.1-screenrc.patch
16Patch3:         screen-E3.patch
17Patch4:         screen-4.3.1-suppress_remap.patch
18Patch5:         screen-4.3.1-crypt.patch
19Patch6:         screen-4.8.0-expand-d_xtermosc.patch
20# security
21Patch1000:      99_CVE-2021-26937.patch
22
23Requires: ncurses
24Requires(post,preun): /sbin/install-info
25BuildRequires: ncurses-devel, texinfo, perl
26BuildRequires: pam-devel
27BuildRoot: %{_tmppath}/%{name}-%{version}-root
28
29%description
30The screen utility allows you to have multiple logins on just one
31terminal.  Screen is useful for users who telnet into a machine or
32are connected via a dumb terminal, but want to use more than just
33one login.
34
35Install the screen package if you need a screen manager that can
36support multiple logins on one terminal.
37
38%description -l ja
39一つの端末プログラムだけで多重のログインを可能にするスクリーン管理
40ユーティリティです。telnetで操作しているユーザやダムターミナルから
41接続しているユーザでもっと多くの端末画面を使いたい場合にはとても
42便利なプログラムです。
43
44
45%debug_package
46
47
48%prep
49%setup -q
50%autosetup -p1
51
52
53%build
54autoreconf -vfi
55
56%configure \
57        --enable-pam \
58        --enable-locate \
59        --enable-telnet \
60        --enable-colors256 \
61        --with-sys-screenrc=%{_sysconfdir}/screenrc
62
63# configure can figure out these values.
64#perl -pi -e 's|.*#.*PTYMODE.*|#define PTYMODE 0620|' config.h
65#perl -pi -e 's|.*#.*PTYGROUP.*|#define PTYGROUP 5|' config.h
66
67perl -pi -e 's|.*#undef HAVE_BRAILLE.*|#define HAVE_BRAILLE 1|' config.h
68
69perl -pi -e 's|/usr/local/etc/screenrc|/etc/screenrc|' etc/etcscreenrc doc/*
70perl -pi -e 's|/local/etc/screenrc|/etc/screenrc|' doc/*
71rm -f doc/screen.info*
72
73# fails with %{?_smp_mflags}
74make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
75
76
77%install
78rm -rf $RPM_BUILD_ROOT
79
80mkdir -p $RPM_BUILD_ROOT/etc/skel
81perl -pi -e 's,/usr/local/etc/screenrc,/etc/screenrc,' etc/etcscreenrc
82
83%makeinstall DDESTDIR=$RPM_BUILD_ROOT
84
85( cd $RPM_BUILD_ROOT
86#  gzip -9nf .%{_infodir}/screen.info*
87#  strip .%{_bindir}/screen-%{version}
88
89  rm -f .%{_bindir}/screen.old .%{_bindir}/screen
90  mv .%{_bindir}/screen-%{version} .%{_bindir}/screen
91)
92
93install -c -m 0444 etc/etcscreenrc $RPM_BUILD_ROOT/etc/screenrc
94install -c -m 0644 etc/screenrc $RPM_BUILD_ROOT/etc/skel/.screenrc
95
96# Better not forget to copy the pam file around
97mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
98install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/screen
99# Remove files from the buildroot which we don't want packaged
100rm -f $RPM_BUILD_ROOT%{_infodir}/dir
101
102%clean
103rm -rf $RPM_BUILD_ROOT
104
105%post
106/sbin/install-info %{_infodir}/screen.info.* %{_infodir}/dir --entry="* screen: (screen).             Terminal multiplexer."
107
108if [ -d /tmp/screens ]; then
109    # we're not setuid root anymore
110    chmod 777 /tmp/screens
111fi
112
113%preun
114if [ $1 = 0 ]; then
115    /sbin/install-info --delete %{_infodir}/screen.info.* %{_infodir}/dir --entry="* screen: (screen).             Terminal multiplexer."
116fi
117
118%files
119%defattr(-,root,root)
120%license COPYING
121%doc NEWS* README doc/FAQ TODO doc/README.DOTSCREEN terminfo
122#%attr(755,root,root) %{_bindir}/screen
123%{_bindir}/screen
124%{_mandir}/man1/screen.*
125%{_infodir}/screen.info*
126%{_datadir}/screen
127%config(noreplace) %{_sysconfdir}/screenrc
128%config(noreplace) %{_sysconfdir}/pam.d/screen
129%config /etc/skel/.screenrc
130
131
132%changelog
133* Thu Feb 18 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.8.0-2
134- imported Patch1000 from debian.
135
136* Thu Feb 27 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.8.0-1
137- update to 4.8.0.
138- re-imported patches from rawhide.
139
140* Fri Apr 20 2018 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.6.2-1
141- update to 4.6.2
142- change License
143- sync fc28 package
144
145* Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.0.3-4
146- rebuild with VineSeed environment
147
148* Tue Apr  5 2011 IWAI, Masaharu <iwai@alib.jp> 4.0.3-3vl6
149- build on current VineSeed
150- add execvpe patch (Patch0) based upstream git
151
152* Tue Sep 30 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.0.3-2
153- spec in UTF-8
154- add Patch12 to build against glibc-2.8
155- fix typo (from --enable-color256 to --enable-colors256)
156  thanks Minematsu Hiroki-san for pointing this out
157
158* Wed Mar 26 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.0.3-1vl5
159- used %%{?_dist_release}
160
161* Mon Nov 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0.3-0vl4
162- rebuild for VineSeed
163
164* Mon Nov 20 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.0.3-0vl3
165- rebuilt without libelf-devel (ppc.rpm linked with libelf.so.0)
166
167* Thu Nov 02 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.0.3-0vl2
168- add BuildRequires: texinfo, perl
169
170* Tue Oct 31 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.0.3-0vl1
171- upstream release with security fix (build for Vine 4.0)
172
173* Sat Jul 01 2006 NAKAMURA Kenta <kenta@vinelinux.org> 4.0.2-0vl2
174- use License instead of Copyright
175
176* Sat Jun  5 2004 IWAI, Masaharu <iwai@alib.jp> 4.0.2-0vl1
177- new upstream release
178- add %%{_datadir}/screen in %%files
179- no replace configuration file: /etc/screenrc
180
181* Mon Mar 17 2003 IWAI Masaharu <iwai@alib.jp> 3.9.13-0vl2
182- eliminate %%{_bindir} from %%files section
183 
184* Thu Sep 12 2002 Yoshihiro Ota <ota@j.email.ne.jp> 3.9.13-0vl1
185- update to 3.9.13
186- add FAQ instead of a symbolic link to FAQ
187- remove unnecessary patches
188
189* Thu Nov  1 2001 Shoji Matsumoto <shom@vinelinux.org> 3.9.10-0vl1
190- update to 3.9.10 (security update)
191
192* Mon Aug 27 2001 Shoji Matsumoto <shom@vinelinux.org> 3.9.9-0vl1
193- update to 3.9.9
194- rebuild by current Seed
195- remove makeinfo patch, jbj patch
196
197* Sat Mar 10 2001 sagami@vinelinux.org
198- made minor spec fixes
199
200* Fri Mar  2 2001 Shoji Matsumoto <shom@vinelinux.org> 3.9.8-0vl1
201- update to 3.9.8
202- update 3.9.5-jbj.patch for 3.9.8
203- add hascrypt patch
204
205* Sat Dec 09 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
206- 3.9.5-1vl3
207- built with gcc-2.95.3
208- partially used rpmmacros
209
210* Tue Oct 24 2000 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp>
211- 3.9.5-1vl2
212- fixed %files section to handle compressed man page
213
214* Fri Mar 3 2000 Taro FUNAKI <taro@KU3G.org>
215- updated to 3.9.5
216
217* Sun Feb 20 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
218- 3.9.4-5vl1
219- merged missing patches from screen-3.9.4-3 on Red Hat 6.1
220
221* Wed Oct 20 1999 Bill Nottingham <notting@redhat.com>
222- you know, we weren't just patching in Unix98 pty support for fun.
223
224* Wed Aug 18 1999 Bill Nottingham <notting@redhat.com>
225- put screendir in ~
226
227* Wed Aug 18 1999 Jeff Johnson <jbj@redhat.com>
228- update to 3.9.4.
229
230* Wed Jun 16 1999 Bill Nottingham <notting@redhat.com>
231- force tty permissions/group
232
233* Sat Jun 5 1999 Dale Lovelace <dale@redhat.com>
234- permissions on /etc/skel/.screenrc to 644
235
236* Mon Apr 26 1999 Bill Nottingham <notting@redhat.com>
237- take out warning of directory permissions so root can still use screen
238
239* Wed Apr 07 1999 Bill Nottingham <notting@redhat.com>
240- take out warning of directory ownership so root can still use screen
241
242* Wed Apr 07 1999 Erik Troan <ewt@redhat.com>
243- patched in utempter support, turned off setuid bit
244
245* Fri Mar 26 1999 Erik Troan <ewt@redhat.com>
246- fixed unix98 pty support
247
248* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
249- auto rebuild in the new build environment (release 3)
250
251* Thu Mar 11 1999 Bill Nottingham <notting@redhat.com>
252- add patch for Unix98 pty support
253
254* Mon Dec 28 1998 Jeff Johnson <jbj@redhat.com>
255- update to 3.7.6.
256
257* Sun Aug 16 1998 Jeff Johnson <jbj@redhat.com>
258- build root
259
260* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
261- translations modified for de, fr, tr
262
263* Tue Oct 21 1997 Cristian Gafton <gafton@redhat.com>
264- upgraded to 3.7.4
265
266* Wed Oct 08 1997 Erik Troan <ewt@redhat.com>
267- removed glibc 1.99 specific patch
268
269* Tue Sep 23 1997 Erik Troan <ewt@redhat.com>
270- added install-info support
271
272* Mon Jul 21 1997 Erik Troan <ewt@redhat.com>
273- built against glibc
Note: See TracBrowser for help on using the repository browser.