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 <adam@mizerski.pl>
#
# 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: kmscon
Version: 8
Release: 0
Summary: Linux KMS/DRM based virtual Console Emulator
License: MIT
Group: System/Console
Url: http://freedesktop.org/wiki/Software/kmscon
#Git-Clone: git://github.com/dvdhrm/kmscon
#DL-URL: http://people.freedesktop.org/~dvdhrm/kmscon/releases/
Source: http://www.freedesktop.org/software/kmscon/releases/%name-%version.tar.xz
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
%description
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
console.
%prep
%setup -q
%patch -P 1 -P 2 -p1
%build
##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
%install
b="%buildroot"
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/mod-unifont.so
%pre
%service_add_pre %name.service
%post
%service_add_post %name.service
%preun
%service_del_preun %name.service
%postun
%service_del_postun %name.service
%files
%defattr(-,root,root)
%_bindir/%name
%dir %_libdir/kmscon
%_libdir/kmscon/*.so
%_mandir/man1/kmscon.1*
%_unitdir/kmscon*.service
%changelog