# # spec file for package freerdp # # Copyright (c) 2012 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/ # %define soname 1 Name: freerdp Version: 1.0.1 Release: 0 Summary: Remote Desktop Viewer License: Apache-2.0 Group: Productivity/Networking/Other Url: http://www.freerdp.com/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: cups-devel BuildRequires: ed BuildRequires: xmlto BuildRequires: xorg-x11-devel BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(libpcsclite) BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(openssl) BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: libfreerdp%{soname} = %{version} %description FreeRDP is a client-side implementation of the Remote Desktop Protocol (RDP) following the Microsoft Open Specifications. %package -n libfreerdp%{soname} Summary: Remote Desktop Viewer Library Group: System/Libraries Provides: libfreerdpchanman%{soname} = %{version}-%{release} Provides: libfreerdpgdi%{soname} = %{version}-%{release} Provides: libfreerdpkbd%{soname} = %{version}-%{release} %description -n libfreerdp%{soname} FreeRDP is a client-side implementation of the Remote Desktop Protocol (RDP) following the Microsoft Open Specifications. This package provides the shared library as well as its plugins. %package devel Summary: Development Files for %{name} Group: Development/Libraries/C and C++ Requires: libfreerdp%{soname} = %{version} %description devel This package contains development files necessary for developing applications based on libfreerdp. %prep %setup -q # use a versioned subdirectory for plugins in order to comply with the shared # library policy ed -s CMakeLists.txt 2>/dev/null <<'EOF' ,s/FREERDP_PLUGIN_PATH "\${CMAKE_INSTALL_PREFIX}\/\${CMAKE_INSTALL_LIBDIR}\/freerdp"/FREERDP_PLUGIN_PATH "\${CMAKE_INSTALL_PREFIX}\/\${CMAKE_INSTALL_LIBDIR}\/freerdp%{soname}"/ w EOF %build mkdir build cd build export CFLAGS="%{optflags}" cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_INSTALL_LIBDIR=%{_lib} \ -DCMAKE_BUILD_TYPE=Release \ -DWITH_PULSEAUDIO=ON \ -DWITH_PCSC=ON \ -DWITH_CUPS=ON \ -DWITH_FFMPEG=OFF \ -DWITH_SSE2=OFF \ .. make %{?_smp_mflags} VERBOSE=1 %install cd build %make_install cd .. rm -rf $RPM_BUILD_ROOT/usr/share/freerdp/keymaps/ %post -n libfreerdp%{soname} -p /sbin/ldconfig %postun -n libfreerdp%{soname} -p /sbin/ldconfig %files %defattr(-,root,root) %doc LICENSE README ChangeLog %{_bindir}/xfreerdp %{_datadir}/%{name} %{_mandir}/man1/xfreerdp.1%{ext_man} %files -n libfreerdp%{soname} %defattr(-,root,root) %doc LICENSE %{_libdir}/libfreerdp-cache.so.%{soname}.* %{_libdir}/libfreerdp-channels.so.%{soname}.* %{_libdir}/libfreerdp-codec.so.%{soname}.* %{_libdir}/libfreerdp-core.so.%{soname}.* %{_libdir}/libfreerdp-gdi.so.%{soname}.* %{_libdir}/libfreerdp-kbd.so.%{soname}.* %{_libdir}/libfreerdp-rail.so.%{soname}.* %{_libdir}/libfreerdp-utils.so.%{soname}.* %dir %{_libdir}/freerdp%{soname} %{_libdir}/freerdp%{soname}/audin.so %{_libdir}/freerdp%{soname}/audin_alsa.so %{_libdir}/freerdp%{soname}/audin_pulse.so %{_libdir}/freerdp%{soname}/cliprdr.so %{_libdir}/freerdp%{soname}/disk.so %{_libdir}/freerdp%{soname}/drdynvc.so %{_libdir}/freerdp%{soname}/parallel.so %{_libdir}/freerdp%{soname}/printer.so %{_libdir}/freerdp%{soname}/rdpdr.so %{_libdir}/freerdp%{soname}/rdpsnd.so %{_libdir}/freerdp%{soname}/rdpsnd_alsa.so %{_libdir}/freerdp%{soname}/rdpsnd_pulse.so %{_libdir}/freerdp%{soname}/scard.so %{_libdir}/freerdp%{soname}/serial.so %{_libdir}/freerdp%{soname}/rail.so %{_libdir}/freerdp%{soname}/rdpdbg.so %{_libdir}/freerdp%{soname}/tsmf.so %{_libdir}/freerdp%{soname}/tsmf_alsa.so %{_libdir}/freerdp%{soname}/tsmf_pulse.so %files devel %defattr(-,root,root) %dir %{_includedir}/freerdp %dir %{_includedir}/freerdp/* %{_includedir}/freerdp/*.h %{_includedir}/freerdp/*/*.h %{_libdir}/libfreerdp-*.so %{_libdir}/pkgconfig/freerdp.pc %changelog