]>
Commit | Line | Data |
---|---|---|
3e2ffac0 JB |
1 | # NOTE: kbd's vlock is a fork of vlock v1.x |
2 | # comparing with vlock v2.x it has NLS, but no plugins support | |
3 | # TODO: | |
4 | # - pam file for vlock | |
2ab8120c | 5 | # - probably it doesn't make sense to package ppc keymaps on x86 and vice versa |
3e2ffac0 JB |
6 | # |
7 | # Conditional build: | |
8 | %bcond_without vlock # don't build vlock | |
9 | # | |
c72f95ae | 10 | Summary: Linux console utilities |
37ce1c6c ER |
11 | Summary(ko.UTF-8): 콘솔을 설정하는 도구 (글쇠판, 가상 터미널, 그 밖에) |
12 | Summary(pl.UTF-8): Narzędzia do obsługi konsoli | |
0bae4710 | 13 | Name: kbd |
3e2ffac0 | 14 | Version: 1.15.5 |
a15bcd38 | 15 | Release: 2 |
58c426ac | 16 | License: GPL v2+ |
0bae4710 | 17 | Group: Applications/Console |
2edcf0a1 | 18 | Source0: ftp://ftp.altlinux.org/pub/people/legion/kbd/%{name}-%{version}.tar.gz |
3e2ffac0 | 19 | # Source0-md5: 34c71feead8ab9c01ec638acea8cd877 |
0bae4710 AM |
20 | Source1: %{name}.init |
21 | Source2: %{name}.sysconfig | |
5767f210 | 22 | Source3: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 |
8b2fd6fa | 23 | # Source3-md5: 93c72a27e4fdeba23cb62d62343e9483 |
9213c5a3 | 24 | Source4: lat2u-16.psf.gz |
2d74ccc7 | 25 | # Source4-md5: dc90a9bcff858175beea32a9b3bebb33 |
9213c5a3 | 26 | Source5: lat2u.sfm.gz |
2d74ccc7 | 27 | # Source5-md5: 8ac4abc169fa1236fc3e64163c043113 |
2a3f2e04 ER |
28 | Source51: http://pkgs.fedoraproject.org/repo/pkgs/kbd/%{name}-latsun-fonts.tar.bz2/050e1e454e9c01e22f198303d649efb8/kbd-latsun-fonts.tar.bz2 |
29 | # Source51-md5: 050e1e454e9c01e22f198303d649efb8 | |
30 | Source52: http://pkgs.fedoraproject.org/repo/pkgs/kbd/%{name}-latarcyrheb-16-fixed.tar.bz2/cb1e2d5ba5d4cb8b0a27367029d36a56/kbd-latarcyrheb-16-fixed.tar.bz2 | |
31 | # Source52-md5: cb1e2d5ba5d4cb8b0a27367029d36a56 | |
a23346a1 | 32 | Source6: console.sh |
5bfaa920 | 33 | Source7: console.csh |
b8670123 JB |
34 | Source8: %{name}-pl1.kmap |
35 | Source9: %{name}-mac-pl.kmap | |
36 | Source10: %{name}-pl3.map | |
37 | Source11: %{name}-pl4.map | |
b1203f0a | 38 | Source12: console.upstart |
37e2ebf2 JB |
39 | Patch0: %{name}-unicode_start.patch |
40 | Patch1: %{name}-ngettext.patch | |
41 | Patch2: %{name}-tty-detect.patch | |
a675f5de | 42 | URL: http://www.win.tue.nl/~aeb/linux/ |
2edcf0a1 | 43 | BuildRequires: autoconf >= 2.60 |
19cb101d | 44 | BuildRequires: automake >= 1:1.9 |
0bae4710 AM |
45 | BuildRequires: bison |
46 | BuildRequires: flex | |
19cb101d | 47 | BuildRequires: gettext-devel >= 0.14.1 |
3e2ffac0 | 48 | %{?with_vlock:BuildRequires: pam-devel} |
6a8b0796 | 49 | Requires(post,preun): /sbin/chkconfig |
8cb80af1 | 50 | Requires: open |
37d75b66 | 51 | Requires: rc-scripts >= 0.4.3.0 |
47eadedb | 52 | Requires: sed |
e277f7c8 | 53 | Requires: util-linux |
00779927 | 54 | Obsoletes: console-data |
55 | Obsoletes: console-tools | |
56 | Obsoletes: console-tools-devel | |
57 | Obsoletes: console-tools-static | |
2ab8120c ER |
58 | Conflicts: man-pages < 1.43-5 |
59 | Conflicts: util-linux < 2.11 | |
60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
0bae4710 | 61 | |
2ab8120c | 62 | %define _ldatadir /lib/%{name} |
0af7977a | 63 | |
0bae4710 AM |
64 | %description |
65 | This package contains utilities to load console fonts and keyboard | |
66 | maps. It also includes a number of different fonts and keyboard maps. | |
67 | ||
cc6d04c9 JR |
68 | %description -l pl.UTF-8 |
69 | Pakiet zawiera narzędzia do ładowania fontów konsolowych oraz map | |
70 | klawiatury. Dodatkowo dołączono znaczną liczbę różnych fontów i map. | |
0bae4710 | 71 | |
3e2ffac0 JB |
72 | %package vlock |
73 | Summary: Utility to lock one or more virtual consoles | |
74 | Summary(pl.UTF-8): Narzędzie do blokowania jednej lub wielu konsol wirtualnych | |
75 | Group: Applications/Console | |
76 | Requires: %{name} = %{version}-%{release} | |
3e2ffac0 JB |
77 | |
78 | %description vlock | |
79 | Utility to lock one or more virtual consoles. | |
80 | ||
81 | %description vlock -l pl.UTF-8 | |
82 | Narzędzie do blokowania jednej lub wielu konsol wirtualnych. | |
83 | ||
0bae4710 | 84 | %prep |
2a3f2e04 | 85 | %setup -q -a51 -a52 |
0bae4710 | 86 | %patch0 -p1 |
e2711c29 | 87 | %patch1 -p1 |
88 | %patch2 -p1 | |
0bae4710 AM |
89 | |
90 | %build | |
89a52ae2 AM |
91 | %{__gettextize} |
92 | %{__aclocal} -I m4 | |
2edcf0a1 JB |
93 | %{__autoconf} |
94 | %{__autoheader} | |
95 | %{__automake} | |
96 | %configure \ | |
09e6eb46 | 97 | --datadir=%{_ldatadir} \ |
2edcf0a1 | 98 | --localedir=%{_datadir}/locale \ |
3e2ffac0 JB |
99 | --enable-nls \ |
100 | --disable-silent-rules \ | |
101 | %{!?with_vlock:--disable-vlock} | |
2edcf0a1 | 102 | %{__make} |
0bae4710 AM |
103 | |
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
b1203f0a | 106 | install -d $RPM_BUILD_ROOT{/bin,/etc/{profile.d,rc.d/init.d,sysconfig,init}} |
0bae4710 | 107 | |
5b655050 | 108 | %{__make} install \ |
2edcf0a1 JB |
109 | DESTDIR=$RPM_BUILD_ROOT \ |
110 | gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale | |
0bae4710 | 111 | |
476998cc | 112 | # some binaries are needed in /bin but rest is not |
0af7977a | 113 | for f in setfont dumpkeys kbd_mode unicode_start unicode_stop; do |
f98eb279 | 114 | mv $RPM_BUILD_ROOT%{_bindir}/$f $RPM_BUILD_ROOT/bin |
0af7977a AM |
115 | done |
116 | ||
4fa4612b | 117 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/console |
b1203f0a ER |
118 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/console |
119 | cp -p %{SOURCE12} $RPM_BUILD_ROOT/etc/init/console.conf | |
20b19f60 | 120 | %ifarch sparc sparc64 |
7b7f68de | 121 | %{__sed} -i -e 's/KEYTABLE=pl2/KEYTABLE=sunkeymap/' $RPM_BUILD_ROOT/etc/sysconfig/console |
20b19f60 | 122 | %endif |
65a1220f | 123 | |
b1203f0a | 124 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_ldatadir}/consolefonts/lat2u-16.psfu.gz |
4fa4612b | 125 | gunzip -c %{SOURCE5} > $RPM_BUILD_ROOT%{_ldatadir}/unimaps/lat2u.uni |
032728c9 | 126 | |
b8670123 JB |
127 | gzip -c %{SOURCE8} > $RPM_BUILD_ROOT%{_ldatadir}/keymaps/i386/qwerty/pl1.map.gz |
128 | gzip -c %{SOURCE9} > $RPM_BUILD_ROOT%{_ldatadir}/keymaps/mac/all/mac-pl.map.gz | |
129 | gzip -c %{SOURCE10} > $RPM_BUILD_ROOT%{_ldatadir}/keymaps/i386/qwerty/pl3.map.gz | |
130 | gzip -c %{SOURCE11} > $RPM_BUILD_ROOT%{_ldatadir}/keymaps/i386/qwerty/pl4.map.gz | |
65a1220f | 131 | |
b1203f0a ER |
132 | cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/profile.d |
133 | cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/profile.d | |
65a1220f | 134 | |
b8670123 | 135 | bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
0bae4710 | 136 | |
a882a4f7 | 137 | # Greek is el, not gr |
37e2ebf2 JB |
138 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/gr |
139 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/{README.kbd-non-english-man-pages,kbd-keypaps_instead_keytables.patch}* | |
140 | ||
0bae4710 AM |
141 | %find_lang %{name} |
142 | ||
cd37273b JB |
143 | %clean |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
0bae4710 | 146 | %post |
0832beee | 147 | /sbin/chkconfig --add console |
0bae4710 AM |
148 | |
149 | %preun | |
0832beee | 150 | if [ "$1" = "0" ]; then |
151 | /sbin/chkconfig --del console | |
152 | fi | |
0bae4710 | 153 | |
0bae4710 AM |
154 | %files -f %{name}.lang |
155 | %defattr(644,root,root,755) | |
2edcf0a1 JB |
156 | # COPYING contains copyright summary, not GPL text |
157 | %doc AUTHORS COPYING ChangeLog README doc/*.txt | |
bdde36de | 158 | %attr(754,root,root) /etc/rc.d/init.d/console |
47eadedb | 159 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/console |
b1203f0a | 160 | %config(noreplace) %verify(not md5 mtime size) /etc/init/console.conf |
37e2ebf2 JB |
161 | %attr(755,root,root) /etc/profile.d/console.csh |
162 | %attr(755,root,root) /etc/profile.d/console.sh | |
163 | ||
164 | %attr(755,root,root) /bin/dumpkeys | |
165 | %attr(755,root,root) /bin/kbd_mode | |
166 | %attr(755,root,root) /bin/setfont | |
167 | %attr(755,root,root) /bin/unicode_start | |
168 | %attr(755,root,root) /bin/unicode_stop | |
169 | %attr(755,root,root) %{_bindir}/chvt | |
170 | %attr(755,root,root) %{_bindir}/deallocvt | |
171 | %attr(755,root,root) %{_bindir}/fgconsole | |
172 | %attr(755,root,root) %{_bindir}/getkeycodes | |
173 | %attr(755,root,root) %{_bindir}/kbdinfo | |
174 | %attr(755,root,root) %{_bindir}/kbdrate | |
175 | %attr(755,root,root) %{_bindir}/loadkeys | |
176 | %attr(755,root,root) %{_bindir}/loadunimap | |
177 | %attr(755,root,root) %{_bindir}/mapscrn | |
178 | %attr(755,root,root) %{_bindir}/openvt | |
179 | %attr(755,root,root) %{_bindir}/psfaddtable | |
180 | %attr(755,root,root) %{_bindir}/psfgettable | |
181 | %attr(755,root,root) %{_bindir}/psfstriptable | |
182 | %attr(755,root,root) %{_bindir}/psfxtable | |
7b7f68de | 183 | %ifarch %{ix86} %{x8664} |
37e2ebf2 | 184 | %attr(755,root,root) %{_bindir}/resizecons |
cd7a8114 | 185 | %endif |
37e2ebf2 JB |
186 | %attr(755,root,root) %{_bindir}/setkeycodes |
187 | %attr(755,root,root) %{_bindir}/setleds | |
188 | %attr(755,root,root) %{_bindir}/setmetamode | |
189 | %attr(755,root,root) %{_bindir}/setvtrgb | |
190 | %attr(755,root,root) %{_bindir}/showconsolefont | |
191 | %attr(755,root,root) %{_bindir}/showkey | |
eff731dd | 192 | %dir %{_ldatadir} |
37e2ebf2 JB |
193 | %{_ldatadir}/consolefonts |
194 | %{_ldatadir}/consoletrans | |
09e6eb46 AM |
195 | %{_ldatadir}/keymaps |
196 | %{_ldatadir}/unimaps | |
9213c5a3 | 197 | |
37e2ebf2 JB |
198 | %{_mandir}/man1/chvt.1* |
199 | %{_mandir}/man1/deallocvt.1* | |
200 | %{_mandir}/man1/dumpkeys.1* | |
201 | %{_mandir}/man1/fgconsole.1* | |
202 | %{_mandir}/man1/kbd_mode.1* | |
203 | %{_mandir}/man1/loadkeys.1* | |
204 | %{_mandir}/man1/openvt.1* | |
205 | %{_mandir}/man1/psfaddtable.1* | |
206 | %{_mandir}/man1/psfgettable.1* | |
207 | %{_mandir}/man1/psfstriptable.1* | |
208 | %{_mandir}/man1/psfxtable.1* | |
209 | %{_mandir}/man1/setleds.1* | |
210 | %{_mandir}/man1/setmetamode.1* | |
211 | %{_mandir}/man1/showkey.1* | |
212 | %{_mandir}/man1/unicode_start.1* | |
213 | %{_mandir}/man1/unicode_stop.1* | |
214 | %{_mandir}/man5/keymaps.5* | |
215 | %{_mandir}/man8/getkeycodes.8* | |
216 | %{_mandir}/man8/kbdrate.8* | |
217 | %{_mandir}/man8/loadunimap.8* | |
218 | %{_mandir}/man8/mapscrn.8* | |
7b7f68de | 219 | %ifarch %{ix86} %{x8664} |
37e2ebf2 | 220 | %{_mandir}/man8/resizecons.8* |
8972cf90 | 221 | %endif |
37e2ebf2 JB |
222 | %{_mandir}/man8/setfont.8* |
223 | %{_mandir}/man8/setkeycodes.8* | |
224 | %{_mandir}/man8/setvtrgb.8* | |
225 | %{_mandir}/man8/showconsolefont.8* | |
226 | %lang(es) %{_mandir}/es/man[158]/* | |
227 | %lang(fi) %{_mandir}/fi/man[158]/* | |
228 | %lang(fr) %{_mandir}/fr/man[158]/* | |
229 | %lang(hu) %{_mandir}/hu/man[158]/* | |
230 | %lang(ko) %{_mandir}/ko/man[158]/* | |
231 | %lang(pl) %{_mandir}/pl/man[158]/* | |
3e2ffac0 JB |
232 | |
233 | %if %{with vlock} | |
234 | %files vlock | |
235 | %defattr(644,root,root,755) | |
236 | %doc src/vlock/README.vlock | |
237 | %attr(755,root,root) %{_bindir}/vlock | |
238 | %{_mandir}/man1/vlock.1* | |
239 | %endif |