2011-09-29 11:26:27 +00:00
#
# spec file for package freerdp
#
2013-01-28 16:36:51 +00:00
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
2011-09-29 11:26:27 +00:00
#
# 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/
#
2011-12-02 13:03:18 +00:00
2012-03-28 11:18:32 +00:00
%define libname libfreerdp-1_0
2010-11-17 12:07:09 +00:00
Name : freerdp
2013-01-28 16:36:51 +00:00
Version : 1.0.2
2011-12-01 17:22:13 +00:00
Release : 0
2012-03-28 11:18:32 +00:00
Summary : Remote Desktop Viewer Client
2012-03-27 23:52:37 +00:00
License : Apache-2.0
2010-11-17 12:07:09 +00:00
Group : Productivity/Networking/Other
2012-03-27 23:52:37 +00:00
Url : http://www.freerdp.com/
2012-03-28 11:18:32 +00:00
Source0 : https://github.com/downloads/FreeRDP/FreeRDP/%{name} -%{version} .tar.gz
2013-11-04 12:58:03 +00:00
Source1 : FindALSA.cmake
2012-04-22 18:12:52 +00:00
# PATCH-FIX-UPSTREAM freerdp-fix-FindPCSC-macro.patch https://github.com/FreeRDP/FreeRDP/issues/562 gberh@opensuse.org -- Fix the build by setting PCSC_LIBRARIES and PCSC_INCLUDE_DIRS variables explicitly which are otherwise empty
Patch1 : freerdp-fix-FindPCSC-macro.patch
2012-11-01 13:15:21 +00:00
# PATCH-FIX-UPSTREAM freerdp-fix-pulse-no-device-name.patch bnc#785437 gber@opensuse.org -- Fix a segfault in case device name is not provided
Patch4 : freerdp-handle-null-device-name.patch
2013-03-12 15:39:54 +00:00
# PATCH-FIX-UPSTREAM (wip) fix handle of kpdivide on keypad - issue #831
Patch5 : freerdp_branch-1.0.x_fix-kpdivide-issue831.patch
2012-03-27 23:52:37 +00:00
BuildRequires : cmake
2011-12-01 17:22:13 +00:00
BuildRequires : cups-devel
2011-09-29 11:26:27 +00:00
BuildRequires : ed
2012-03-27 23:52:37 +00:00
BuildRequires : xmlto
BuildRequires : xorg-x11-devel
2012-03-28 11:18:32 +00:00
BuildRequires : zlib-devel
2013-11-04 12:58:03 +00:00
BuildRequires : alsa-devel
BuildRequires : pcsc-lite-devel
BuildRequires : libpulse-devel
BuildRequires : libopenssl-devel
2012-03-28 11:18:32 +00:00
Recommends: libfreerdp-plugins
2010-11-17 12:07:09 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2010-11-17 11:33:29 +00:00
%description
2011-09-29 11:26:27 +00:00
FreeRDP is a client-side implementation of the Remote Desktop Protocol (RDP)
2012-03-28 11:18:32 +00:00
following the Microsoft Open Specifications. This package provides the client
application.
2010-11-17 11:33:29 +00:00
2012-03-28 11:18:32 +00:00
%package -n %{libname}
2010-11-17 12:07:09 +00:00
Summary : Remote Desktop Viewer Library
Group : System/Libraries
2012-03-28 11:18:32 +00:00
%description -n %{libname}
2011-09-29 11:26:27 +00:00
FreeRDP is a client-side implementation of the Remote Desktop Protocol (RDP)
2012-03-28 11:18:32 +00:00
following the Microsoft Open Specifications. This package provides the shared
library.
2011-09-29 11:26:27 +00:00
2012-03-28 11:18:32 +00:00
%package -n %{libname}-plugins
Summary : Plugins for %{libname}
Group : System/Libraries
Provides : libfreerdp-plugins = %{version}
Requires : %{libname} = %{version}
%description -n %{libname}-plugins
This package provides plugins for %{libname} .
2010-11-17 12:07:09 +00:00
2010-11-17 11:33:29 +00:00
%package devel
2011-09-29 11:26:27 +00:00
Summary : Development Files for %{name}
2010-11-17 12:07:09 +00:00
Group : Development/Libraries/C and C++
2012-03-28 11:18:32 +00:00
Requires : %{libname} = %{version}
2010-11-17 11:33:29 +00:00
%description devel
2011-09-29 11:26:27 +00:00
This package contains development files necessary for developing applications
based on libfreerdp.
2010-11-17 13:31:13 +00:00
2010-11-17 11:33:29 +00:00
%prep
2013-01-28 16:36:51 +00:00
%setup -q -n FreeRDP-%{version}
2012-04-22 18:12:52 +00:00
%patch1 -p1
2012-11-01 13:15:21 +00:00
%patch4 -p1
2013-03-12 15:39:54 +00:00
%patch5 -p1
2011-09-29 11:26:27 +00:00
# use a versioned subdirectory for plugins in order to comply with the shared
# library policy
2012-03-27 23:52:37 +00:00
ed -s CMakeLists.txt 2>/dev/null <<'EOF'
2012-03-28 11:18:32 +00:00
,s/FREERDP_PLUGIN_PATH " \ $ { C M A K E _ I N S T A L L _ P R E F I X } \ / \ $ { C M A K E _ I N S T A L L _ L I B D I R } \ / f r e e r d p " /FREERDP_PLUGIN_PATH " \ $ { C M A K E _ I N S T A L L _ P R E F I X } \ / \ $ { C M A K E _ I N S T A L L _ L I B D I R } \ / %{libname} " /
2011-09-29 11:26:27 +00:00
w
EOF
2013-11-04 12:58:03 +00:00
%if 0%{?sles_version} == 11
cp %SOURCE1 cmake/
%endif
2010-11-17 11:33:29 +00:00
%build
2012-03-27 23:52:37 +00:00
mkdir build
cd build
2013-09-12 10:57:45 +00:00
export CFLAGS=" %{optflags} - D O P E N S S L _ L O A D _ C O N F "
2012-03-28 11:18:32 +00:00
cmake \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
2012-03-29 08:54:04 +00:00
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
2012-03-28 11:18:32 +00:00
-DCMAKE_BUILD_TYPE=Release \
-DWITH_ALSA=ON \
-DWITH_PULSEAUDIO=ON \
-DWITH_PCSC=ON \
-DWITH_CUPS=ON \
-DWITH_FFMPEG=OFF \
2012-12-28 22:00:14 +00:00
%ifarch %ix86 x86_64
2012-12-27 15:28:42 +00:00
-DWITH_SSE2=ON \
2012-12-28 18:40:48 +00:00
%endif
2012-03-28 11:18:32 +00:00
..
2012-03-27 23:52:37 +00:00
make %{?_smp_mflags} VERBOSE=1
2010-11-17 11:33:29 +00:00
%install
2012-03-27 23:52:37 +00:00
cd build
2013-11-04 12:58:03 +00:00
make install 'DESTDIR=%{buildroot}'
2012-03-28 11:18:32 +00:00
# remove keymaps as we make use of libxkbfile
2013-03-12 15:39:54 +00:00
# rm -rf $RPM_BUILD_ROOT/usr/share/freerdp/keymaps/
2010-11-17 11:33:29 +00:00
2012-03-28 11:18:32 +00:00
%post -n %{libname} -p /sbin/ldconfig
2010-11-17 11:33:29 +00:00
2012-03-28 11:18:32 +00:00
%postun -n %{libname} -p /sbin/ldconfig
2010-11-17 11:33:29 +00:00
%files
%defattr (-,root,root)
2012-03-27 23:52:37 +00:00
%doc LICENSE README ChangeLog
2010-11-17 11:33:29 +00:00
%{_bindir} /xfreerdp
2010-11-17 12:07:09 +00:00
%{_datadir} /%{name}
%{_mandir} /man1/xfreerdp.1%{ext_man}
2012-03-28 11:18:32 +00:00
%files -n %{libname}
%defattr (-,root,root)
%doc LICENSE
%{_libdir} /libfreerdp-cache.so.*
%{_libdir} /libfreerdp-channels.so.*
%{_libdir} /libfreerdp-codec.so.*
%{_libdir} /libfreerdp-core.so.*
%{_libdir} /libfreerdp-gdi.so.*
%{_libdir} /libfreerdp-kbd.so.*
%{_libdir} /libfreerdp-rail.so.*
%{_libdir} /libfreerdp-utils.so.*
%files -n %{libname}-plugins
2010-11-17 12:07:09 +00:00
%defattr (-,root,root)
2012-03-27 23:52:37 +00:00
%doc LICENSE
2012-03-28 11:18:32 +00:00
%dir %{_libdir} /%{libname}
%{_libdir} /%{libname} /audin.so
%{_libdir} /%{libname} /audin_alsa.so
%{_libdir} /%{libname} /audin_pulse.so
%{_libdir} /%{libname} /cliprdr.so
%{_libdir} /%{libname} /disk.so
%{_libdir} /%{libname} /drdynvc.so
%{_libdir} /%{libname} /parallel.so
%{_libdir} /%{libname} /printer.so
%{_libdir} /%{libname} /rdpdr.so
%{_libdir} /%{libname} /rdpsnd.so
%{_libdir} /%{libname} /rdpsnd_alsa.so
%{_libdir} /%{libname} /rdpsnd_pulse.so
%{_libdir} /%{libname} /scard.so
%{_libdir} /%{libname} /serial.so
%{_libdir} /%{libname} /rail.so
%{_libdir} /%{libname} /rdpdbg.so
%{_libdir} /%{libname} /tsmf.so
%{_libdir} /%{libname} /tsmf_alsa.so
%{_libdir} /%{libname} /tsmf_pulse.so
2010-11-17 11:33:29 +00:00
%files devel
%defattr (-,root,root)
2012-03-27 23:52:37 +00:00
%dir %{_includedir} /freerdp
%dir %{_includedir} /freerdp/*
%{_includedir} /freerdp/*.h
%{_includedir} /freerdp/*/*.h
%{_libdir} /libfreerdp-*.so
2010-11-17 12:07:09 +00:00
%{_libdir} /pkgconfig/freerdp.pc
2010-11-17 11:33:29 +00:00
2011-10-18 20:31:28 +00:00
%changelog