]> git.pld-linux.org Git - packages/console-tools.git/blob - console-tools.spec
- unifited using %find_lang macro to scheme:
[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 Version:        0.2.0
5 Release:        2
6 Copyright:      GPL
7 Group:          Utilities/Console
8 Group(pl):      Narzêdzia/Konsola
9 Source0:        ftp://sunsite.unc.edu/pub/Linux/system/keyboards/%{name}-%{version}.tar.gz
10 Source1:        console-init.tar.gz
11 Prereq:         /sbin/chkconfig
12 BuildPrereq:    sgml-tools
13 BuildPrereq:    jade
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. 
21 It is derived from kbd-0.94.tar.gz, with many bug-fixes and
22 enhancements. 
23 The data files are now part of a new package (console-data).
24
25 %description -l pl
26 Console-tools to narzêdzia zajmuj±ce siê fontami i mapami klawiatury 
27 na konsoli. 
28 Pakiet wywodzi siê z kbd-0.94.tar.gz, poprawiaj±c wiele b³êdów
29 i wprowadzaj±c rozszerzenia. 
30 Pliki danych s± teraz czê¶ci± nowego pakietu (console-data).
31
32 %package devel
33 Summary:        Header files
34 Summary(pl):    Pliki nag³ówkowe
35 Group:          Development
36 Group(pl):      Programowanie
37 Requires:       %{name} = %{version}
38
39 %description devel
40 Console-tools header files for console-tools
41
42 %description devel -l pl
43 Pliki nag³ówkowe do console-tools.
44
45 %package static
46 Summary:        Static libraries
47 Summary(pl):    Biblioteki statyczne
48 Group:          Libraries
49 Group(pl):      Biblioteki
50 Requires:       %{name}-devel = %{version}
51
52 %description static
53 Console-tools static libraries.
54
55 %description static -l pl
56 Biblioteki statyczne console-tools.
57
58 %prep
59 %setup -q -a1 
60
61 %build
62 %configure \
63         --enable-kbd-compat
64 make 
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68
69 make install-strip prefix=$RPM_BUILD_ROOT/usr \
70         bindir=$RPM_BUILD_ROOT/%{_bindir} \
71         mandir=$RPM_BUILD_ROOT/%{_mandir} \
72         libdir=$RPM_BUILD_ROOT/%{_libdir} \
73         includedir=$RPM_BUILD_ROOT/%{_includedir}
74
75 cp -a etc $RPM_BUILD_ROOT
76
77 for i in loadunimap mapscrn saveunimap savefont setfont; do
78         rm -f $RPM_BUILD_ROOT%{_mandir}/man8/$i.8
79         echo .so kbd-compat.8 > $RPM_BUILD_ROOT%{_mandir}/man8/$i.8
80 done
81
82 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*so.*.*
83
84 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
85         README NEWS BUGS doc/README.* doc/*.txt \
86         doc/{dvorak,file-formats,contrib}/*
87
88 %find_lang %{name}
89
90 %post
91 /sbin/chkconfig --add console
92
93 %preun
94 if [ "$1" = "0" ]; then
95         /sbin/chkconfig --del console
96 fi
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %files -f %{name}.lang
102 %defattr(644,root,root,755)
103 %doc {README,NEWS,BUGS}.gz doc/README.*
104 %doc doc/{dvorak,file-formats,contrib}
105
106 %attr(754,root,root) %config /etc/rc.d/init.d/console
107 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/console
108
109 %attr(755,root,root) /etc/profile.d/console.sh
110 %attr(755,root,root) %{_bindir}/*
111 %attr(755,root,root) %{_libdir}/lib*.so.*.*
112
113 %{_mandir}/man[1458]/*
114
115 %files devel
116 %defattr(644,root,root,755)
117 %doc doc/*.html doc/*.txt.gz
118
119 %{_includedir}/lct
120 %attr(755,root,root) %{_libdir}/*.so
121
122 %files static
123 %defattr(644,root,root)
124 %{_libdir}/lib*.a
125
126 %changelog
127 * Mon Jun 07 1999 Jan Rêkorajski <baggins@pld.org.pl>
128   [0.2.0-2]
129 - spec cleanup
130 - added find_lang macro
131
132 * Thu Apr 22 1999 Piotr Czerwiñski <pius@pld.org.pl>
133   [0.2.0-1]
134 - updated to 0.2.0,
135 - removed data files (they are now in separated package),
136 - removed console-tools-ndebug.patch,
137 - added locales,
138 - removed man group from na pages,
139 - added gzipping man pages and documentation,
140 - added Group(pl),
141 - changed Group in devel and static subpackages,
142 - added more documentation,
143 - minor changes,
144 - recompiled on rpm 3.
145
146 * Thu Sep 24 1998 Marcin 'Qrczak' Kowalczyk <qrczak@knm.org.pl>
147 - Spec generally rewritten
148 - Qrczak's fonts removed from the package (they were not a part of
149   console-tools and now are in a separate package called fonty)
150 - Added SysV-like init scripts
151 - Added pl1.kmap with diacritics under AltGr only (will be included
152   in the next version of console-tools)
153 - Added --enable-kbd-compat (wrappers emulating kbd's syntax)
154   and Provides: kbd
155
156 * Sat Jul 25 1998 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
157 - initial RPM release
This page took 0.03823 seconds and 4 git commands to generate.