File kmscon.spec of Package kmscon

# spec file for package kmscon
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Adam Mizerski <>
# 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

Name:           kmscon
Version:        8
Release:        0
Summary:        Linux KMS/DRM based virtual Console Emulator
License:        MIT
Group:          System/Console

#Git-Clone:	git://
Patch1:         kmscon-no-date-time.patch
Patch2:         kmscon-x-linking.patch
BuildRequires:  autoconf >= 2.68
BuildRequires:  automake >= 1.11
BuildRequires:  docbook-xsl-stylesheets
BuildRequires:  libtool >= 2.2
BuildRequires:  libtsm-devel = 3
BuildRequires:  pax-utils
BuildRequires:  pkgconfig
BuildRequires:  xsltproc
BuildRequires:  xz
BuildRequires:  pkgconfig(egl)
BuildRequires:  pkgconfig(gbm)
BuildRequires:  pkgconfig(glesv2)
BuildRequires:  pkgconfig(libdrm)
BuildRequires:  pkgconfig(libsystemd-daemon)
BuildRequires:  pkgconfig(libsystemd-login)
BuildRequires:  pkgconfig(libudev) >= 172
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(pangoft2)
BuildRequires:  pkgconfig(pixman-1)
BuildRequires:  pkgconfig(xkbcommon)
# O/P added for 13.1
Obsoletes:      %name-service < %version-%release
Provides:       %name-service < %version-%release

Kmscon is a simple terminal emulator based on linux kernel mode setting (KMS).
It is an attempt to replace the in-kernel VT implementation with a userspace

%setup -q
%patch -P 1 -P 2 -p1

##echo "#define BUILD_GIT_HEAD \"unknown-revision\"" > src/githead.h
mkdir -p m4
autoreconf -fiv
%configure --enable-debug --disable-static
make V=1 # %{?_smp_mflags} V=1

make install DESTDIR="$b"
mkdir -p "$b/%_unitdir"
install -pm0644 docs/*.service "$b/%_unitdir/"
find "$b" -type f -name "*.la" -print -delete
scanelf -X -e %{buildroot}%_libdir/kmscon/

%service_add_pre %name.service

%service_add_post %name.service

%service_del_preun %name.service

%service_del_postun %name.service

%dir %_libdir/kmscon

openSUSE Build Service is sponsored by