]> git.pld-linux.org Git - packages/console-tools.git/blob - console-tools.spec
- updated gettext BR
[packages/console-tools.git] / console-tools.spec
1 Summary:        Linux console utilities
2 Summary(pl.UTF-8):      Narzędzia do obsługi konsoli
3 Name:           console-tools
4 Version:        0.3.3
5 Release:        12
6 Epoch:          1
7 License:        GPL
8 Group:          Applications/Console
9 # ftp://ftp.sourceforge.net/pub/sourceforge/lct/ - but no 0.3.3 yet
10 Source0:        %{name}-%{version}.tar.gz
11 # Source0-md5:  dcb9a6fae481b20d77174bce06cbd00f
12 Source1:        console.init
13 Source2:        console.sysconfig
14 Source3:        console.sh
15 Patch0:         %{name}-man_compat.patch
16 Patch1:         %{name}-no_bash.patch
17 Patch2:         %{name}-acm.patch
18 Patch3:         %{name}-readacm.patch
19 Patch4:         %{name}-psfgettable.patch
20 Patch5:         %{name}-resizecons.patch
21 Patch6:         %{name}-amfix.patch
22 Patch7:         %{name}-et.patch
23 Patch8:         %{name}-gcc.patch
24 URL:            http://lct.sourceforge.net/
25 BuildRequires:  autoconf
26 BuildRequires:  automake
27 BuildRequires:  gettext-tools
28 BuildRequires:  jade
29 BuildRequires:  libtool
30 BuildRequires:  sgml-tools
31 Requires(post,preun):   /sbin/chkconfig
32 Requires:       console-data
33 Requires:       localedb-src
34 Provides:       kbd
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Obsoletes:      kbd
37
38 %description
39 console-tools are utilities for handling console fonts and keyboard
40 maps. It is derived from kbd-0.99.tar.gz, with many bug-fixes and
41 enhancements. The data files are now part of a new package
42 (console-data).
43
44 %description -l pl.UTF-8
45 Console-tools to narzędzia zajmujące się fontami i mapami klawiatury
46 na konsoli. Pakiet wywodzi się z kbd-0.99.tar.gz, poprawiając wiele
47 błędów i wprowadzając rozszerzenia. Pliki danych są teraz częścią
48 nowego pakietu (console-data).
49
50 %package devel
51 Summary:        Header files
52 Summary(pl.UTF-8):      Pliki nagłówkowe
53 Group:          Development/Libraries
54 Requires:       %{name} = %{epoch}:%{version}
55
56 %description devel
57 Console-tools header files for console-tools
58
59 %description devel -l pl.UTF-8
60 Pliki nagłówkowe do console-tools.
61
62 %package static
63 Summary:        Static libraries
64 Summary(pl.UTF-8):      Biblioteki statyczne
65 Group:          Development/Libraries
66 Requires:       %{name}-devel = %{epoch}:%{version}
67
68 %description static
69 Console-tools static libraries.
70
71 %description static -l pl.UTF-8
72 Biblioteki statyczne console-tools.
73
74 %prep
75 %setup  -q
76 %patch0 -p0
77 %patch1 -p1
78 %patch2 -p1
79 %patch3 -p1
80 %patch4 -p1
81 %patch5 -p1
82 %patch6 -p1
83 %patch7 -p0
84 %patch8 -p1
85
86 %build
87 mv po/et_EE.po po/et.po
88 mv po/et_EE.gmo po/et.gmo
89 rm -f missing
90 %{__gettextize}
91 %{__libtoolize}
92 %{__aclocal}
93 %{__autoconf}
94 %{__automake}
95 %configure \
96         --enable-kbd-compat
97 %{__make}
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d,profile.d}
102
103 %{__make} install \
104         DESTDIR=$RPM_BUILD_ROOT
105
106 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/console
107 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/console
108 install %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
109
110 %find_lang %{name}
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post
116 /sbin/ldconfig
117 /sbin/chkconfig --add console
118
119 %preun
120 if [ "$1" = "0" ]; then
121         /sbin/chkconfig --del console
122 fi
123
124 %postun -p /sbin/ldconfig
125
126 %files -f %{name}.lang
127 %defattr(644,root,root,755)
128 %doc README NEWS BUGS doc/README.*
129 %doc doc/{dvorak,contrib}
130 %doc doc/*.txt
131
132 %attr(754,root,root) /etc/rc.d/init.d/console
133 %attr(755,root,root) /etc/profile.d/console.sh
134 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/console
135
136 %attr(755,root,root) %{_bindir}/*
137 %attr(755,root,root) %{_libdir}/lib*.so.*.*
138
139 %{_mandir}/man[1458]/*
140
141 %files devel
142 %defattr(644,root,root,755)
143 %doc doc/file-formats/{TMPL,cp,cpi,psf,raw,xpsf-draft*}
144 %{_includedir}/lct
145 %attr(755,root,root) %{_libdir}/*.so
146 %{_libdir}/*.la
147
148 %files static
149 %defattr(644,root,root,755)
150 %{_libdir}/lib*.a
This page took 0.070506 seconds and 3 git commands to generate.