xorgxrdp/xorgxrdp.spec

70 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package xorgxrdp
#
# Copyright (c) 2017 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: xorgxrdp
Version: 0.2.2
Release: 0
License: X11
Summary: Xorg drivers for xrdp
Url: https://github.com/neutrinolabs/xorgxrdp
Group: System/X11/Utilities
Source0: https://github.com/neutrinolabs/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/neutrinolabs/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
Source2: %{name}.keyring
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: nasm
BuildRequires: libtool
# For 42.3 and Tumbleweed, use libXfont2-devel
%if 0%{?sle_version} && 0%{?sle_version} <= 120200
BuildRequires: libXfont-devel
%else
BuildRequires: libXfont2-devel
%endif
BuildRequires: xorg-x11-server-sdk
BuildRequires: xrdp-devel
Requires: xrdp >= 0.9.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains Xorg driver modules for xrdp
%prep
%setup -q
%build
sh ./bootstrap
%configure --disable-static
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot} %{?_smp_mflags}
find %{buildroot}/%{_libdir} -name "*.la" -type f -delete -print
%files
%defattr(-,root,root)
%doc README.md COPYING
%{_libdir}/xorg/modules/drivers/xrdpdev_drv.so
%dir %{_libdir}/xorg/modules/input
%{_libdir}/xorg/modules/input/xrdpkeyb_drv.so
%{_libdir}/xorg/modules/input/xrdpmouse_drv.so
%{_libdir}/xorg/modules/libxorgxrdp.so
%dir %{_sysconfdir}/X11/xrdp
%config %{_sysconfdir}/X11/xrdp/xorg.conf
%changelog