2011-09-29 11:26:27 +00:00
#
# spec file for package freerdp
#
2012-03-27 23:52:37 +00:00
# Copyright (c) 2012 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
2012-03-27 23:52:37 +00:00
Version : 1.0.1
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
2012-03-30 22:26:34 +00:00
# PATCH-FIX-UPSTREAM freerdp-fix-bitmap-cache.patch zawertun@gmail.com -- Fix a problem with the bitmap cache resulting in garbled images (backported from upstream git)
Patch0 : freerdp-fix-bitmap-cache.patch
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-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
2011-10-18 20:31:28 +00:00
BuildRequires : pkgconfig(alsa)
2012-03-27 23:52:37 +00:00
BuildRequires : pkgconfig(libpcsclite)
BuildRequires : pkgconfig(libpulse)
2011-12-01 17:22:13 +00:00
BuildRequires : pkgconfig(openssl)
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
%setup -q
2012-03-30 22:15:18 +00:00
%patch0 -p1
2012-04-22 18:12:52 +00:00
%patch1 -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
2010-11-17 11:33:29 +00:00
%build
2012-03-27 23:52:37 +00:00
mkdir build
cd build
export CFLAGS=" %{optflags} "
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 \
-DWITH_SSE2=OFF \
..
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
2011-09-29 11:26:27 +00:00
%make_install
2012-03-28 11:18:32 +00:00
# remove keymaps as we make use of libxkbfile
2012-03-27 23:52:37 +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