2020-06-01 16:11:06 -04:00
|
|
|
#TARBALL: https://www.kernel.org/pub/linux/utils/kbd/kbd-2.2.0.tar.xz
|
|
|
|
#MD5SUM: d1d7ae0b5fb875dc082731e09cd0c8bc;SOURCES/kbd-2.2.0.tar.xz
|
|
|
|
#TARBALL: http://www.linuxfromscratch.org/patches/lfs/9.1/kbd-2.2.0-backspace-1.patch
|
|
|
|
#MD5SUM: f75cca16a38da6caa7d52151f7136895;SOURCES/kbd-2.2.0-backspace-1.patch
|
2019-05-24 08:27:40 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
Summary: The Kbd package contains key-table files, console fonts, and keyboard utilities.
|
|
|
|
Name: kbd
|
2020-06-01 16:11:06 -04:00
|
|
|
Version: 2.2.0
|
2019-05-24 08:27:40 -04:00
|
|
|
Release: 1
|
|
|
|
License: Other
|
|
|
|
URL: Any
|
|
|
|
Group: LFS/Base
|
2020-06-01 16:11:06 -04:00
|
|
|
Source0: https://www.kernel.org/pub/linux/utils/%{name}/%{name}-%{version}.tar.xz
|
|
|
|
Patch0: http://www.linuxfromscratch.org/patches/lfs/9.1/kbd-2.2.0-backspace-1.patch
|
2019-05-24 08:27:40 -04:00
|
|
|
Requires: filesystem
|
|
|
|
%description
|
|
|
|
The Kbd package contains key-table files, console fonts, and keyboard utilities.
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{NAME}-%{VERSION}
|
|
|
|
%patch0 -p1
|
|
|
|
sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/g' configure
|
|
|
|
sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in
|
|
|
|
%build
|
|
|
|
PKG_CONFIG_PATH=/tools/lib/pkgconfig \
|
|
|
|
./configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--disable-vlock
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
install -vdm 755 %{buildroot}%{_docdir}/%{NAME}-%{VERSION}
|
|
|
|
cp -R -v docs/doc/* %{buildroot}%{_docdir}/%{NAME}-%{VERSION}
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Copy license/copying file
|
|
|
|
install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Create file list
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
2020-06-01 16:11:06 -04:00
|
|
|
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
|
|
|
|
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
|
|
|
|
sed -i '/man\/man/d' filelist.list
|
|
|
|
sed -i '/\/usr\/share\/info/d' filelist.list
|
2019-05-24 08:27:40 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
2020-06-01 16:11:06 -04:00
|
|
|
%files -f filelist.list
|
2019-05-24 08:27:40 -04:00
|
|
|
%defattr(-,root,root)
|
2019-05-25 21:36:26 -04:00
|
|
|
# %%{_infodir}/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
%{_mandir}/man8/*
|
2019-05-24 08:27:40 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
%changelog
|
2020-06-01 16:11:06 -04:00
|
|
|
* Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 2.2.0-1
|
2019-05-24 08:27:40 -04:00
|
|
|
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 2.0.4-1
|
|
|
|
- Initial build. First version
|