SHA256
1
0
forked from pool/freerdp
freerdp/freerdp.spec

107 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package freerdp
#
# Copyright (c) 2016 SUSE LINUX 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: freerdp
Version: 2.0.0git.a7ca42e
Release: 0
Summary: Remote Desktop Viewer Client
License: Apache-2.0
Group: Productivity/Networking/Other
Url: http://www.freerdp.com/
Source0: freerdp-2.0.0git.a7ca42e.tar.gz
BuildRequires: alsa-devel
BuildRequires: cmake
BuildRequires: cups-devel
BuildRequires: ed
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gstreamer-devel
BuildRequires: gstreamer-plugins-base-devel
BuildRequires: libopenssl-devel
BuildRequires: libpulse-devel
BuildRequires: libxkbcommon-devel
BuildRequires: pcsc-lite-devel
BuildRequires: systemd-devel
BuildRequires: xmlto
BuildRequires: xorg-x11-devel
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
FreeRDP is a client-side implementation of the Remote Desktop Protocol (RDP)
following the Microsoft Open Specifications. This package provides the client
application.
%package devel
Summary: Development Files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Provides: libfreerdp-1_0
Provides: libfreerdp-1_0-plugins
%description devel
This package contains development files necessary for developing applications
based on libfreerdp.
%prep
%setup -q -n FreeRDP-%{version}
%build
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
-DCMAKE_NO_BUILTIN_CHRPATH=ON \
-DWITH_ALSA=ON \
-DWITH_CUPS=ON \
-DWITH_FFMPEG=OFF \
-DWITH_PCSC=ON \
-DWITH_PULSEAUDIO=ON \
%ifarch %ix86 x86_64
-DWITH_SSE2=ON \
%endif
..
make %{?_smp_mflags}
%install
cd build
make install 'DESTDIR=%{buildroot}'
find %{buildroot} -name "*.a" -delete
%fdupes -s %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc LICENSE README ChangeLog
%{_bindir}/*
%{_libdir}/*.so.*
%{_mandir}/man1/xfreerdp.1%{ext_man}
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/cmake/*
%{_libdir}/pkgconfig/*
%changelog