1 # rpmbuild -ta freerdp-<...>.tar.gz
6 Summary: Remote Desktop Protocol functionality
8 Group: Applications/Communications
9 License: Apache License 2.0
10 URL: http://www.freerdp.com/
11 Source0: https://github.com/downloads/FreeRDP/FreeRDP/%{name}-%{version}.tar.gz
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
16 BuildRequires: openssl-devel
17 BuildRequires: libX11-devel
18 BuildRequires: libXext-devel
19 BuildRequires: libXinerama-devel
20 BuildRequires: libXcursor-devel
21 BuildRequires: libXdamage-devel
22 BuildRequires: libXv-devel
23 BuildRequires: libxkbfile-devel
24 BuildRequires: pulseaudio-libs-devel
25 BuildRequires: cups-devel
26 BuildRequires: alsa-lib-devel
27 BuildRequires: pcsc-lite-devel
28 BuildRequires: desktop-file-utils
31 FreeRDP is a free implementation of the Remote Desktop Protocol (RDP)
32 according to the Microsoft Open Specifications.
36 Summary: Remote Desktop Protocol client
37 Group: Applications/Communications
38 Requires: %{name}-libs = %{version}-%{release}
39 Requires: %{name}-plugins-standard = %{version}-%{release}
40 %description -n xfreerdp
41 FreeRDP is a free implementation of the Remote Desktop Protocol (RDP)
42 according to the Microsoft Open Specifications.
46 Summary: Core libraries implementing the RDP protocol
47 Group: Applications/Communications
49 libfreerdp-core can be embedded in applications.
51 libfreerdp-channels and libfreerdp-kbd might be convenient to use in X
52 applications together with libfreerdp-core.
54 libfreerdp-core can be extended with plugins handling RDP channels.
56 %package plugins-standard
57 Summary: Plugins for handling the standard RDP channels
58 Group: Applications/Communications
59 Requires: %{name}-libs = %{version}-%{release}
60 %description plugins-standard
61 A set of plugins to the channel manager implementing the standard virtual
62 channels extending RDP core functionality. For instance, sounds, clipboard
63 sync, disk/printer redirection, etc.
67 Summary: Libraries and header files for embedding and extending freerdp
68 Group: Applications/Communications
69 Requires: %{name}-libs = %{version}-%{release}
72 Header files and unversioned libraries for libfreerdp-core, libfreerdp-channels,
73 libfreerdp-locale, libfreerdp-cache, libfreerdp-codec, libfreerdp-rail,
74 libfreerdp-gdi and libfreerdp-utils.
80 cat << EOF > xfreerdp.desktop
85 Comment=Connect to RDP server and display remote desktop
87 Exec=/usr/bin/xfreerdp
89 Categories=Network;RemoteAccess;
96 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
99 -DWITH_PULSEAUDIO:BOOL=ON \
100 -DWITH_MACAUDIO:BOOL=ON \
102 -DWITH_XCURSOR:BOOL=ON \
103 -DWITH_XEXT:BOOL=ON \
104 -DWITH_XINERAMA:BOOL=ON \
105 -DWITH_XKBFILE:BOOL=ON \
107 -DWITH_ALSA:BOOL=ON \
108 -DWITH_CUNIT:BOOL=OFF \
109 -DWITH_DIRECTFB:BOOL=OFF \
110 -DWITH_FFMPEG:BOOL=OFF \
111 -DWITH_SSE2:BOOL=OFF \
118 rm -rf $RPM_BUILD_ROOT
120 make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
122 desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications xfreerdp.desktop
123 install -p -D resources/FreeRDP_Icon_256px.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
127 rm -rf $RPM_BUILD_ROOT
131 # This is no gtk application, but try to integrate nicely with GNOME if it is available
132 gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
135 %post libs -p /sbin/ldconfig
138 %postun libs -p /sbin/ldconfig
142 %defattr(-,root,root,-)
144 %{_mandir}/man1/xfreerdp.*
145 %{_datadir}/applications/xfreerdp.desktop
146 %{_datadir}/icons/hicolor/256x256/apps/%{name}.png
149 %defattr(-,root,root,-)
150 %doc LICENSE README ChangeLog
151 %{_libdir}/lib%{name}-*.so.*
152 %dir %{_libdir}/%{name}/
154 %files plugins-standard
155 %defattr(-,root,root,-)
159 %defattr(-,root,root,-)
160 %{_includedir}/%{name}/
161 %{_libdir}/lib%{name}-*.so
162 %{_libdir}/pkgconfig/%{name}.pc