]> git.pld-linux.org Git - packages/kbd.git/blame - kbd.spec
- updated to 2.6.1
[packages/kbd.git] / kbd.spec
CommitLineData
3e2ffac0 1# TODO:
2ab8120c 2# - probably it doesn't make sense to package ppc keymaps on x86 and vice versa
3e2ffac0 3#
c72f95ae 4Summary: Linux console utilities
37ce1c6c
ER
5Summary(ko.UTF-8): 콘솔을 설정하는 도구 (글쇠판, 가상 터미널, 그 밖에)
6Summary(pl.UTF-8): Narzędzia do obsługi konsoli
0bae4710 7Name: kbd
4a7da8ae 8Version: 2.6.1
ff593f42 9Release: 1
58c426ac 10License: GPL v2+
0bae4710 11Group: Applications/Console
ff593f42 12Source0: https://www.kernel.org/pub/linux/utils/kbd/%{name}-%{version}.tar.xz
4a7da8ae 13# Source0-md5: 986241b5d94c6bd4ed2f6d2a5ab4320b
0bae4710
AM
14Source1: %{name}.init
15Source2: %{name}.sysconfig
5767f210 16Source3: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
8b2fd6fa 17# Source3-md5: 93c72a27e4fdeba23cb62d62343e9483
9213c5a3 18Source4: lat2u-16.psf.gz
2d74ccc7 19# Source4-md5: dc90a9bcff858175beea32a9b3bebb33
9213c5a3 20Source5: lat2u.sfm.gz
2d74ccc7 21# Source5-md5: 8ac4abc169fa1236fc3e64163c043113
2a3f2e04
ER
22Source52: http://pkgs.fedoraproject.org/repo/pkgs/kbd/%{name}-latarcyrheb-16-fixed.tar.bz2/cb1e2d5ba5d4cb8b0a27367029d36a56/kbd-latarcyrheb-16-fixed.tar.bz2
23# Source52-md5: cb1e2d5ba5d4cb8b0a27367029d36a56
a23346a1 24Source6: console.sh
5bfaa920 25Source7: console.csh
b8670123
JB
26Source8: %{name}-pl1.kmap
27Source9: %{name}-mac-pl.kmap
28Source10: %{name}-pl3.map
29Source11: %{name}-pl4.map
d29ee1a0 30Source12: vlock.pamd
37e2ebf2 31Patch0: %{name}-unicode_start.patch
c01cb026 32Patch1: %{name}-tty-detect.patch
81c51a8b 33URL: http://kbd-project.org/
ff593f42 34BuildRequires: autoconf >= 2.69
19cb101d 35BuildRequires: automake >= 1:1.9
0bae4710 36BuildRequires: bison
8d32414e
JB
37#BuildRequires: check >= 0.9.4
38BuildRequires: doxygen
0bae4710 39BuildRequires: flex
de6f932a 40BuildRequires: gettext-tools >= 0.14.1
8d32414e 41BuildRequires: libtool >= 2:2
d29ee1a0 42BuildRequires: pam-devel
8d32414e 43BuildRequires: pkgconfig
bfef163f
JB
44BuildRequires: tar >= 1:1.22
45BuildRequires: xz
6a8b0796 46Requires(post,preun): /sbin/chkconfig
a51e66e5 47Requires: %{name}-libs = %{version}-%{release}
8cb80af1 48Requires: open
37d75b66 49Requires: rc-scripts >= 0.4.3.0
47eadedb 50Requires: sed
e277f7c8 51Requires: util-linux
5c385ec4
JB
52Obsoletes: console-data < 1999.08.30
53Obsoletes: console-tools < 1:0.4
54Obsoletes: console-tools-devel < 1:0.4
55Obsoletes: console-tools-static < 1:0.4
2ab8120c
ER
56Conflicts: man-pages < 1.43-5
57Conflicts: util-linux < 2.11
58BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
0bae4710 59
2ab8120c 60%define _ldatadir /lib/%{name}
0af7977a 61
0bae4710
AM
62%description
63This package contains utilities to load console fonts and keyboard
64maps. It also includes a number of different fonts and keyboard maps.
65
cc6d04c9
JR
66%description -l pl.UTF-8
67Pakiet zawiera narzędzia do ładowania fontów konsolowych oraz map
68klawiatury. Dodatkowo dołączono znaczną liczbę różnych fontów i map.
0bae4710 69
3e2ffac0
JB
70%package vlock
71Summary: Utility to lock one or more virtual consoles
72Summary(pl.UTF-8): Narzędzie do blokowania jednej lub wielu konsol wirtualnych
73Group: Applications/Console
74Requires: %{name} = %{version}-%{release}
5c385ec4
JB
75Provides: vlock
76Obsoletes: vlock < 2.3
3e2ffac0
JB
77
78%description vlock
79Utility to lock one or more virtual consoles.
80
81%description vlock -l pl.UTF-8
82Narzędzie do blokowania jednej lub wielu konsol wirtualnych.
83
8d32414e
JB
84%package libs
85Summary: libkeymap - library to manage the Linux keymaps
86Summary(pl.UTF-8): libkeymap - biblioteka do zarządzania linuksowymi przypisaniami klawiszy
87Group: Libraries
88
89%description libs
90libkeymap - library to manage the Linux keymaps.
91
92%description libs -l pl.UTF-8
93libkeymap - biblioteka do zarządzania linuksowymi przypisaniami
94klawiszy.
95
96%package devel
97Summary: Header files for libkeymap library
98Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libkeymap
99Group: Development/Libraries
100Requires: %{name}-libs = %{version}-%{release}
101
102%description devel
103Header files for libkeymap library.
104
105%description devel -l pl.UTF-8
106Pliki nagłówkowe biblioteki libkeymap.
107
108%package static
109Summary: Static libkeymap library
110Summary(pl.UTF-8): Statyczna biblioteka libkeymap
111Group: Development/Libraries
112Requires: %{name}-devel = %{version}-%{release}
113
114%description static
115Static libkeymap library.
116
117%description static -l pl.UTF-8
118Statyczna biblioteka libkeymap.
119
0bae4710 120%prep
81c51a8b 121%setup -q -a52
0bae4710 122%patch0 -p1
e2711c29 123%patch1 -p1
c01cb026 124
4a7da8ae
JB
125# force regeneration from .in (developer's system paths inside)
126%{__rm} docs/reference/libkeymap/Doxyfile
127
0bae4710 128%build
89a52ae2 129%{__gettextize}
8d32414e 130%{__libtoolize}
89a52ae2 131%{__aclocal} -I m4
2edcf0a1
JB
132%{__autoconf}
133%{__autoheader}
134%{__automake}
135%configure \
09e6eb46 136 --datadir=%{_ldatadir} \
2edcf0a1 137 --localedir=%{_datadir}/locale \
8d32414e 138 --enable-libkeymap \
3e2ffac0 139 --enable-nls \
81c51a8b 140 --enable-optional-progs \
d29ee1a0 141 --disable-silent-rules
2edcf0a1 142%{__make}
0bae4710
AM
143
144%install
145rm -rf $RPM_BUILD_ROOT
d29ee1a0 146install -d $RPM_BUILD_ROOT{/bin,/etc/{profile.d,rc.d/init.d,sysconfig,pam.d}}
0bae4710 147
5b655050 148%{__make} install \
2edcf0a1
JB
149 DESTDIR=$RPM_BUILD_ROOT \
150 gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale
0bae4710 151
d29ee1a0
AM
152install %{SOURCE11} $RPM_BUILD_ROOT/etc/pam.d/vlock
153
8d32414e 154# some binaries are needed in /bin but the rest is not
0af7977a 155for f in setfont dumpkeys kbd_mode unicode_start unicode_stop; do
ff593f42 156 %{__mv} $RPM_BUILD_ROOT%{_bindir}/$f $RPM_BUILD_ROOT/bin
0af7977a
AM
157done
158
ff593f42 159# move libraries to /lib* for utils in /bin
8d32414e 160install -d $RPM_BUILD_ROOT/%{_lib}
ff593f42
JB
161%{__mv} $RPM_BUILD_ROOT%{_libdir}/lib{kbdfile,keymap}.so.* $RPM_BUILD_ROOT/%{_lib}
162ln -sf $(basename $RPM_BUILD_ROOT/%{_lib}/libkbdfile.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libkbdfile.so
8d32414e 163ln -sf $(basename $RPM_BUILD_ROOT/%{_lib}/libkeymap.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libkeymap.so
2b133a7c
JB
164# no external dependencies in libkbdfile
165# for libkeymap .pc file exists
ff593f42 166%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{kbdfile,keymap}.la
8d32414e 167
81c51a8b
JB
168# optional-progs:
169# obsoleted by setfont
170%{__rm} $RPM_BUILD_ROOT{%{_bindir}/getunimap,%{_mandir}/man8/getunimap.8}
171# optional-progs: man pages for not installed utils from contrib
172%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{codepage,splitfont}.1
173%{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/{mk_modmap,vcstime}.8
174
4fa4612b 175install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/console
b1203f0a 176cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/console
20b19f60 177%ifarch sparc sparc64
7b7f68de 178%{__sed} -i -e 's/KEYTABLE=pl2/KEYTABLE=sunkeymap/' $RPM_BUILD_ROOT/etc/sysconfig/console
20b19f60 179%endif
65a1220f 180
b1203f0a 181cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_ldatadir}/consolefonts/lat2u-16.psfu.gz
4fa4612b 182gunzip -c %{SOURCE5} > $RPM_BUILD_ROOT%{_ldatadir}/unimaps/lat2u.uni
032728c9 183
b8670123
JB
184gzip -c %{SOURCE8} > $RPM_BUILD_ROOT%{_ldatadir}/keymaps/i386/qwerty/pl1.map.gz
185gzip -c %{SOURCE9} > $RPM_BUILD_ROOT%{_ldatadir}/keymaps/mac/all/mac-pl.map.gz
186gzip -c %{SOURCE10} > $RPM_BUILD_ROOT%{_ldatadir}/keymaps/i386/qwerty/pl3.map.gz
187gzip -c %{SOURCE11} > $RPM_BUILD_ROOT%{_ldatadir}/keymaps/i386/qwerty/pl4.map.gz
65a1220f 188
b1203f0a
ER
189cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/profile.d
190cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/profile.d
65a1220f 191
b8670123 192bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
0bae4710 193
a882a4f7 194# Greek is el, not gr
37e2ebf2
JB
195%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/gr
196%{__rm} $RPM_BUILD_ROOT%{_mandir}/{README.kbd-non-english-man-pages,kbd-keypaps_instead_keytables.patch}*
197
8d32414e
JB
198# doxygen docs
199%{__rm} -rf docs-doxy
200%{__mv} $RPM_BUILD_ROOT%{_docdir}/kbd/html docs-doxy
201
0bae4710
AM
202%find_lang %{name}
203
cd37273b
JB
204%clean
205rm -rf $RPM_BUILD_ROOT
206
0bae4710 207%post
0832beee 208/sbin/chkconfig --add console
0bae4710
AM
209
210%preun
0832beee 211if [ "$1" = "0" ]; then
212 /sbin/chkconfig --del console
213fi
0bae4710 214
c9385940
JB
215%post libs -p /sbin/ldconfig
216%postun libs -p /sbin/ldconfig
217
0bae4710
AM
218%files -f %{name}.lang
219%defattr(644,root,root,755)
2edcf0a1 220# COPYING contains copyright summary, not GPL text
ff593f42 221%doc AUTHORS COPYING CREDITS NEWS README docs/doc/kbd.FAQ.txt
bdde36de 222%attr(754,root,root) /etc/rc.d/init.d/console
47eadedb 223%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/console
37e2ebf2
JB
224%attr(755,root,root) /etc/profile.d/console.csh
225%attr(755,root,root) /etc/profile.d/console.sh
226
227%attr(755,root,root) /bin/dumpkeys
228%attr(755,root,root) /bin/kbd_mode
229%attr(755,root,root) /bin/setfont
230%attr(755,root,root) /bin/unicode_start
231%attr(755,root,root) /bin/unicode_stop
232%attr(755,root,root) %{_bindir}/chvt
81c51a8b 233%attr(755,root,root) %{_bindir}/clrunimap
37e2ebf2
JB
234%attr(755,root,root) %{_bindir}/deallocvt
235%attr(755,root,root) %{_bindir}/fgconsole
236%attr(755,root,root) %{_bindir}/getkeycodes
237%attr(755,root,root) %{_bindir}/kbdinfo
238%attr(755,root,root) %{_bindir}/kbdrate
239%attr(755,root,root) %{_bindir}/loadkeys
240%attr(755,root,root) %{_bindir}/loadunimap
241%attr(755,root,root) %{_bindir}/mapscrn
242%attr(755,root,root) %{_bindir}/openvt
81c51a8b 243%attr(755,root,root) %{_bindir}/outpsfheader
37e2ebf2
JB
244%attr(755,root,root) %{_bindir}/psfaddtable
245%attr(755,root,root) %{_bindir}/psfgettable
246%attr(755,root,root) %{_bindir}/psfstriptable
247%attr(755,root,root) %{_bindir}/psfxtable
ff593f42 248%ifarch %{ix86} %{x8664} x32
37e2ebf2 249%attr(755,root,root) %{_bindir}/resizecons
cd7a8114 250%endif
81c51a8b 251%attr(755,root,root) %{_bindir}/screendump
37e2ebf2
JB
252%attr(755,root,root) %{_bindir}/setkeycodes
253%attr(755,root,root) %{_bindir}/setleds
81c51a8b 254%attr(755,root,root) %{_bindir}/setlogcons
37e2ebf2 255%attr(755,root,root) %{_bindir}/setmetamode
81c51a8b
JB
256%attr(755,root,root) %{_bindir}/setpalette
257%attr(755,root,root) %{_bindir}/setvesablank
37e2ebf2
JB
258%attr(755,root,root) %{_bindir}/setvtrgb
259%attr(755,root,root) %{_bindir}/showconsolefont
260%attr(755,root,root) %{_bindir}/showkey
81c51a8b
JB
261%attr(755,root,root) %{_bindir}/spawn_console
262%attr(755,root,root) %{_bindir}/spawn_login
eff731dd 263%dir %{_ldatadir}
37e2ebf2
JB
264%{_ldatadir}/consolefonts
265%{_ldatadir}/consoletrans
09e6eb46
AM
266%{_ldatadir}/keymaps
267%{_ldatadir}/unimaps
9213c5a3 268
37e2ebf2
JB
269%{_mandir}/man1/chvt.1*
270%{_mandir}/man1/deallocvt.1*
271%{_mandir}/man1/dumpkeys.1*
272%{_mandir}/man1/fgconsole.1*
273%{_mandir}/man1/kbd_mode.1*
ff593f42 274%{_mandir}/man1/kbdinfo.1*
37e2ebf2
JB
275%{_mandir}/man1/loadkeys.1*
276%{_mandir}/man1/openvt.1*
277%{_mandir}/man1/psfaddtable.1*
278%{_mandir}/man1/psfgettable.1*
279%{_mandir}/man1/psfstriptable.1*
280%{_mandir}/man1/psfxtable.1*
81c51a8b 281%{_mandir}/man1/screendump.1*
37e2ebf2
JB
282%{_mandir}/man1/setleds.1*
283%{_mandir}/man1/setmetamode.1*
284%{_mandir}/man1/showkey.1*
285%{_mandir}/man1/unicode_start.1*
286%{_mandir}/man1/unicode_stop.1*
287%{_mandir}/man5/keymaps.5*
81c51a8b 288%{_mandir}/man8/clrunimap.8*
37e2ebf2
JB
289%{_mandir}/man8/getkeycodes.8*
290%{_mandir}/man8/kbdrate.8*
291%{_mandir}/man8/loadunimap.8*
292%{_mandir}/man8/mapscrn.8*
ff593f42 293%ifarch %{ix86} %{x8664} x32
37e2ebf2 294%{_mandir}/man8/resizecons.8*
8972cf90 295%endif
37e2ebf2
JB
296%{_mandir}/man8/setfont.8*
297%{_mandir}/man8/setkeycodes.8*
81c51a8b
JB
298%{_mandir}/man8/setlogcons.8*
299%{_mandir}/man8/setvesablank.8*
37e2ebf2
JB
300%{_mandir}/man8/setvtrgb.8*
301%{_mandir}/man8/showconsolefont.8*
302%lang(es) %{_mandir}/es/man[158]/*
303%lang(fi) %{_mandir}/fi/man[158]/*
304%lang(fr) %{_mandir}/fr/man[158]/*
305%lang(hu) %{_mandir}/hu/man[158]/*
306%lang(ko) %{_mandir}/ko/man[158]/*
307%lang(pl) %{_mandir}/pl/man[158]/*
3e2ffac0 308
3e2ffac0
JB
309%files vlock
310%defattr(644,root,root,755)
311%doc src/vlock/README.vlock
d29ee1a0 312%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/vlock
3e2ffac0
JB
313%attr(755,root,root) %{_bindir}/vlock
314%{_mandir}/man1/vlock.1*
8d32414e
JB
315
316%files libs
317%defattr(644,root,root,755)
ff593f42
JB
318%attr(755,root,root) /%{_lib}/libkbdfile.so.*.*.*
319%attr(755,root,root) %ghost /%{_lib}/libkbdfile.so.1
8d32414e 320%attr(755,root,root) /%{_lib}/libkeymap.so.*.*.*
ff593f42 321%attr(755,root,root) %ghost /%{_lib}/libkeymap.so.1
8d32414e
JB
322
323%files devel
324%defattr(644,root,root,755)
325%doc docs-doxy/*
ff593f42 326%attr(755,root,root) %{_libdir}/libkbdfile.so
8d32414e
JB
327%attr(755,root,root) %{_libdir}/libkeymap.so
328%{_includedir}/keymap
ff593f42 329%{_includedir}/kbdfile.h
8d32414e
JB
330%{_includedir}/keymap.h
331%{_pkgconfigdir}/libkeymap.pc
332
333%files static
334%defattr(644,root,root,755)
ff593f42 335%{_libdir}/libkbdfile.a
8d32414e 336%{_libdir}/libkeymap.a
This page took 0.119807 seconds and 4 git commands to generate.