]> git.pld-linux.org Git - packages/console-tools.git/blob - console-tools.spec
- "s-/usr/lib/-%{_libdir}-"
[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:        1
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 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
63 ./configure %{_target} \
64         --enable-kbd-compat
65 make 
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 make install-strip prefix=$RPM_BUILD_ROOT/usr
71
72 cp -a etc $RPM_BUILD_ROOT
73
74 for i in loadunimap mapscrn saveunimap savefont setfont; do
75         rm -f $RPM_BUILD_ROOT%{_mandir}/man8/$i.8
76         echo .so kbd-compat.8 > $RPM_BUILD_ROOT%{_mandir}/man8/$i.8
77 done
78
79 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*so.*.*
80
81 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
82         README NEWS BUGS doc/README.* doc/*.txt \
83         doc/{dvorak,file-formats,contrib}/*
84
85 %post
86 /sbin/chkconfig --add console
87
88 %preun
89 if [ "$1" = "0" ]; then
90         /sbin/chkconfig --del console
91 fi
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %files
97 %defattr(644,root,root,755)
98 %doc {README,NEWS,BUGS}.gz doc/README.*
99 %doc doc/{dvorak,file-formats,contrib}
100
101 %attr(754,root,root) %config /etc/rc.d/init.d/console
102 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/console
103
104 %attr(755,root,root) /etc/profile.d/console.sh
105 %attr(755,root,root) /usr/bin/*
106 %attr(755,root,root) %{_libdir}/lib*.so.*.*
107
108 %lang(fr) /usr/share/locale/fr/LC_MESSAGES/console-tools.mo
109 %lang(ga) /usr/share/locale/ga/LC_MESSAGES/console-tools.mo
110
111 %{_mandir}/man[1458]/*
112
113 %files devel
114 %defattr(644,root,root,755)
115 %doc doc/*.html doc/*.txt.gz
116
117 /usr/include/lct
118 %attr(755,root,root) %{_libdir}/*.so
119
120 %files static
121 %defattr(644,root,root)
122 %{_libdir}/lib*.a
123
124 %changelog
125 * Thu Apr 22 1999 Piotr Czerwiñski <pius@pld.org.pl>
126   [0.2.0-1]
127 - updated to 0.2.0,
128 - removed data files (they are now in separated package),
129 - removed console-tools-ndebug.patch,
130 - added locales,
131 - removed man group from na pages,
132 - added gzipping man pages and documentation,
133 - added Group(pl),
134 - changed Group in devel and static subpackages,
135 - added more documentation,
136 - minor changes,
137 - recompiled on rpm 3.
138
139 * Thu Sep 24 1998 Marcin 'Qrczak' Kowalczyk <qrczak@knm.org.pl>
140 - Spec generally rewritten
141 - Qrczak's fonts removed from the package (they were not a part of
142   console-tools and now are in a separate package called fonty)
143 - Added SysV-like init scripts
144 - Added pl1.kmap with diacritics under AltGr only (will be included
145   in the next version of console-tools)
146 - Added --enable-kbd-compat (wrappers emulating kbd's syntax)
147   and Provides: kbd
148
149 * Sat Jul 25 1998 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
150 - initial RPM release
This page took 0.089484 seconds and 3 git commands to generate.