]>
Commit | Line | Data |
---|---|---|
f374e7e8 | 1 | Summary: Linux console utilities |
933a76da | 2 | Summary(pl.UTF-8): Narzędzia do obsługi konsoli |
f374e7e8 | 3 | Name: console-tools |
f665d669 | 4 | Version: 0.3.3 |
1dd3b171 | 5 | Release: 12 |
4fd3754e | 6 | Epoch: 1 |
f1ff75c6 | 7 | License: GPL |
4fd3754e | 8 | Group: Applications/Console |
5048ccc9 JB |
9 | # ftp://ftp.sourceforge.net/pub/sourceforge/lct/ - but no 0.3.3 yet |
10 | Source0: %{name}-%{version}.tar.gz | |
c85927ab | 11 | # Source0-md5: dcb9a6fae481b20d77174bce06cbd00f |
d1868e10 | 12 | Source1: console.init |
13 | Source2: console.sysconfig | |
f84a7779 | 14 | Source3: console.sh |
4fd3754e JB |
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 | |
1f79e67f | 22 | Patch7: %{name}-et.patch |
1dd3b171 | 23 | Patch8: %{name}-gcc.patch |
5048ccc9 | 24 | URL: http://lct.sourceforge.net/ |
4fd3754e JB |
25 | BuildRequires: autoconf |
26 | BuildRequires: automake | |
3d99fd8b | 27 | BuildRequires: gettext-tools |
5048ccc9 JB |
28 | BuildRequires: jade |
29 | BuildRequires: libtool | |
30 | BuildRequires: sgml-tools | |
31 | Requires(post,preun): /sbin/chkconfig | |
847b0f6c | 32 | Requires: console-data |
f84a7779 | 33 | Requires: localedb-src |
f374e7e8 | 34 | Provides: kbd |
55ac940a | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
5ea8f6ff | 36 | Obsoletes: kbd |
fd0a4716 | 37 | |
38 | %description | |
0dc147e8 | 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). | |
fd0a4716 | 43 | |
3a9c9c6c JR |
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ą | |
0dc147e8 | 48 | nowego pakietu (console-data). |
fd0a4716 | 49 | |
50 | %package devel | |
bfd7a18b | 51 | Summary: Header files |
933a76da | 52 | Summary(pl.UTF-8): Pliki nagłówkowe |
f1ff75c6 | 53 | Group: Development/Libraries |
4bb0e1fd | 54 | Requires: %{name} = %{epoch}:%{version} |
fd0a4716 | 55 | |
56 | %description devel | |
57 | Console-tools header files for console-tools | |
58 | ||
3a9c9c6c JR |
59 | %description devel -l pl.UTF-8 |
60 | Pliki nagłówkowe do console-tools. | |
fd0a4716 | 61 | |
62 | %package static | |
bfd7a18b | 63 | Summary: Static libraries |
933a76da | 64 | Summary(pl.UTF-8): Biblioteki statyczne |
f1ff75c6 | 65 | Group: Development/Libraries |
4bb0e1fd | 66 | Requires: %{name}-devel = %{epoch}:%{version} |
fd0a4716 | 67 | |
68 | %description static | |
69 | Console-tools static libraries. | |
70 | ||
3a9c9c6c | 71 | %description static -l pl.UTF-8 |
fd0a4716 | 72 | Biblioteki statyczne console-tools. |
73 | ||
74 | %prep | |
ec2c551b | 75 | %setup -q |
f63e8348 | 76 | %patch0 -p0 |
77 | %patch1 -p1 | |
62ddd2b0 AM |
78 | %patch2 -p1 |
79 | %patch3 -p1 | |
80 | %patch4 -p1 | |
81 | %patch5 -p1 | |
4fd3754e | 82 | %patch6 -p1 |
1f79e67f | 83 | %patch7 -p0 |
1dd3b171 | 84 | %patch8 -p1 |
fd0a4716 | 85 | |
86 | %build | |
1f79e67f | 87 | mv po/et_EE.po po/et.po |
88 | mv po/et_EE.gmo po/et.gmo | |
4fd3754e | 89 | rm -f missing |
555fb9d1 | 90 | %{__gettextize} |
f912d65d | 91 | %{__libtoolize} |
9895b363 | 92 | %{__aclocal} |
0732186c | 93 | %{__autoconf} |
94 | %{__automake} | |
0932ebea | 95 | %configure \ |
f374e7e8 | 96 | --enable-kbd-compat |
62271911 | 97 | %{__make} |
fd0a4716 | 98 | |
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
50bb31ec | 101 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d,profile.d} |
fd0a4716 | 102 | |
5ea8f6ff PG |
103 | %{__make} install \ |
104 | DESTDIR=$RPM_BUILD_ROOT | |
fd0a4716 | 105 | |
d1868e10 | 106 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/console |
107 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/console | |
f84a7779 | 108 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d |
fd0a4716 | 109 | |
0932ebea JR |
110 | %find_lang %{name} |
111 | ||
4fd3754e JB |
112 | %clean |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
fd0a4716 | 115 | %post |
f08b8492 | 116 | /sbin/ldconfig |
4fd3754e | 117 | /sbin/chkconfig --add console |
fd0a4716 | 118 | |
119 | %preun | |
96eabc77 | 120 | if [ "$1" = "0" ]; then |
121 | /sbin/chkconfig --del console | |
122 | fi | |
fd0a4716 | 123 | |
f08b8492 | 124 | %postun -p /sbin/ldconfig |
125 | ||
ee37a75d | 126 | %files -f %{name}.lang |
f374e7e8 | 127 | %defattr(644,root,root,755) |
5048ccc9 | 128 | %doc README NEWS BUGS doc/README.* |
2ecab53e | 129 | %doc doc/{dvorak,contrib} |
5048ccc9 | 130 | %doc doc/*.txt |
f374e7e8 | 131 | |
a7351057 | 132 | %attr(754,root,root) /etc/rc.d/init.d/console |
f84a7779 | 133 | %attr(755,root,root) /etc/profile.d/console.sh |
82f78279 | 134 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/console |
f374e7e8 | 135 | |
de1f2e91 | 136 | %attr(755,root,root) %{_bindir}/* |
cd1a2242 | 137 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
f374e7e8 | 138 | |
ed982fac | 139 | %{_mandir}/man[1458]/* |
fd0a4716 | 140 | |
141 | %files devel | |
f374e7e8 | 142 | %defattr(644,root,root,755) |
5048ccc9 | 143 | %doc doc/file-formats/{TMPL,cp,cpi,psf,raw,xpsf-draft*} |
7a5a29c0 | 144 | %{_includedir}/lct |
cd1a2242 | 145 | %attr(755,root,root) %{_libdir}/*.so |
24db94ec | 146 | %{_libdir}/*.la |
fd0a4716 | 147 | |
148 | %files static | |
0dc147e8 | 149 | %defattr(644,root,root,755) |
150 | %{_libdir}/lib*.a |