1
0
forked from pool/console-setup
console-setup/console-setup.spec
Andreas Jaeger c9f10430c7 Accepting request 321791 from home:sndirsch:fate318355
package created; it's required by kbd in order to convert xkb
layouts from xkeyboard-config to console keymaps (FATE#318426)

OBS-URL: https://build.opensuse.org/request/show/321791
OBS-URL: https://build.opensuse.org/package/show/Base:System/console-setup?expand=0&rev=1
2015-08-13 14:36:46 +00:00

73 lines
2.5 KiB
RPMSpec

#
# spec file for package
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: console-setup
Version: 1.130
Release: 0
License: GPL-2.0+ and MIT and SUSE-Public-Domain
Summary: Tools for configuring the console using X Window System key maps
Url: http://packages.debian.org/cs/sid/console-setup
Group: Applications/System
Source: http://ftp.de.debian.org/debian/pool/main/c/%{name}/%{name}_%{version}.tar.xz
# Fixes installing paths to Fedora style
Patch0: console-setup-1.76-paths.patch
# Fixes FSF address, sent to upstream
Patch1: console-setup-1.76-fsf-address.patch
BuildRequires: perl
BuildRequires: perl(encoding)
Requires: kbd
# require 'xkeyboard-config' to have X Window keyboard descriptions?
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package provides the console with the same keyboard configuration
scheme that X Window System has. Besides the keyboard, the package configures
also the font on the console. It includes a rich collection of fonts and
supports several languages that would be otherwise unsupported on the console
(such as Armenian, Georgian, Lao and Thai).
%prep
%setup -q
%patch0 -p1 -b .paths
%patch1 -p1 -b .fsf-address
%build
make build-linux
%install
make prefix=$RPM_BUILD_ROOT install-linux
# we don't want another set of keyboard descriptions, we want to use descriptions from
# xkeyboard-config (require it?), so removing it
# or maybe have these from tarball it in optional subpackage?
rm -rf $RPM_BUILD_ROOT/etc/console-setup
%files
%defattr(-,root,root)
%doc README COPYRIGHT CHANGES copyright.fonts copyright.xkb Fonts/copyright
%{_bindir}/ckbcomp
%{_bindir}/setupcon
%config(noreplace) %{_sysconfdir}/default/console-setup
%config(noreplace) %{_sysconfdir}/default/keyboard
%{_datadir}/consolefonts
%{_datadir}/consoletrans
%{_mandir}/*/*
%changelog