]> git.pld-linux.org Git - packages/console-tools.git/blob - console-tools.spec
By Marcin 'Qrczak' Kowalczyk <qrczak@knm.org.pl>:
[packages/console-tools.git] / console-tools.spec
1 Summary:     Linux console utilities
2 Summary(pl): Narzêdzia do obs³ugi konsoli
3 Name:        console-tools
4 %define      date 1998.08.11 
5 Version:     1
6 Release:     2
7 Copyright:   GPL
8 Group:       Utilities/Console
9 Vendor:      Yann Dirson <dirson@debian.org>
10 Source:      ftp://sunsite.unc.edu/pub/Linux/system/keyboards/console-tools-%{date}.tar.gz
11 Patch:       %{name}-ndebug.patch
12 Source1:     console-init.tar.gz
13 Prereq:      /sbin/chkconfig
14 Obsoletes:   kbd
15 Provides:    kbd
16 BuildRoot:   /tmp/%{name}-%{version}-root
17
18 %description
19 console-tools are utilities for handling console fonts and keyboard
20 maps. The package includes various fonts and keymaps.
21
22 It is derived from kbd-0.96a.tar.gz, with many bug-fixes and
23 enhancements.
24
25 %description -l pl
26 Console-tools to narzêdzia zajmuj±ce siê fontami i mapami klawiatury 
27 na konsoli. Do pakietu s± do³±czone ró¿ne fonty i mapy klawiatury.
28
29 Pakiet wywodzi siê z kbd-0.96a.tar.gz, poprawiaj±c wiele b³êdów
30 i wprowadzaj±c rozszerzenia.
31
32 %package devel
33 Summary:     Header files
34 Summary(pl): Pliki nag³ówkowe
35 Group:       Utilities/Console
36 Requires:    %{name} = %{version}
37
38 %description devel
39 Console-tools header files for console-tools
40
41 %description devel -l pl
42 Pliki nag³ówkowe do console-tools.
43
44 %package static
45 Summary:     Static libraries
46 Summary(pl): Biblioteki statyczne
47 Group:       Utilities/Console
48 Requires:    %{name}-devel = %{version}
49
50 %description static
51 Console-tools static libraries.
52
53 %description static -l pl
54 Biblioteki statyczne console-tools.
55
56 %prep
57 %setup -q -a1 -n %{name}-%{date}
58 %patch -p1
59
60 grep -v "Alt " data/keymaps/i386/qwerty/pl.kmap > \
61 data/keymaps/i386/qwerty/pl1.kmap
62
63 %build
64 CFLAGS=$RPM_OPT_FLAGS LDFLAGS=-s ./configure --enable-kbd-compat
65 make 
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 make install prefix=$RPM_BUILD_ROOT/usr
71
72 cp -a etc $RPM_BUILD_ROOT
73
74 for i in loadunimap mapscrn saveunimap savefont; do
75  rm -f $RPM_BUILD_ROOT/usr/man/man8/$i.8
76  echo .so kbd-compat.8 > $RPM_BUILD_ROOT/usr/man/man8/$i.8
77 done
78
79 %post
80 /sbin/chkconfig --add console
81
82 %preun
83 if [ $1 = 0 ]; then
84     /sbin/chkconfig --del console
85 fi
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files
91 %defattr(644, root, root, 755)
92 %doc README NEWS BUGS
93 %attr(700,root,root) %config /etc/rc.d/init.d/console
94 %config %verify(not size mtime md5) /etc/sysconfig/console
95 %attr(755,root,root) /etc/profile.d/console.sh
96 %attr(755, root, root) /usr/bin/*
97 %attr(755, root, root) /usr/lib/lib*.so.*
98 %attr(644, root,  man) /usr/man/man[1548]/*
99
100 /usr/share/consolefonts
101 /usr/share/consoletrans
102 /usr/share/keymaps
103 /usr/share/videomodes
104
105 %files devel
106 %defattr(644, root, root, 755)
107 %doc doc/*.html
108 /usr/include/lct
109
110 %attr(755, root, root) /usr/lib/*.so
111
112 %files static
113 %attr(644, root, root) /usr/lib/*.a
114
115 %changelog
116 * Thu Sep 24 1998 Marcin 'Qrczak' Kowalczyk <qrczak@knm.org.pl>
117 - Spec generally rewritten
118 - Qrczak's fonts removed from the package (they were not a part of
119   console-tools and now are in a separate package called fonty)
120 - Added SysV-like init scripts
121 - Added pl1.kmap with diacritics under AltGr only (will be included
122   in the next version of console-tools)
123 - Added --enable-kbd-compat (wrappers emulating kbd's syntax)
124   and Provides: kbd
125
126 * Sat Jul 25 1998 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
127 - initial RPM release
This page took 0.077361 seconds and 4 git commands to generate.