]>
Commit | Line | Data |
---|---|---|
e07ea24b AM |
1 | Summary: Remote Desktop Protocol client |
2 | Name: freerdp | |
3 | Version: 1.0.1 | |
4 | Release: 0.1 | |
5 | License: ASL 2.0 | |
6 | Group: Applications/Communications | |
7 | URL: http://www.freerdp.com/ | |
8 | Source0: https://github.com/downloads/FreeRDP/FreeRDP/%{name}-%{version}.tar.gz | |
e07ea24b AM |
9 | BuildRequires: cmake |
10 | BuildRequires: cups-devel | |
11 | BuildRequires: desktop-file-utils | |
e07ea24b AM |
12 | BuildRequires: openssl-devel |
13 | BuildRequires: pcsc-lite-devel | |
14 | BuildRequires: pulseaudio-devel | |
15 | BuildRequires: xmlto | |
16 | BuildRequires: xorg-lib-libX11-devel | |
e5316440 ER |
17 | BuildRequires: xorg-lib-libXcursor-devel |
18 | BuildRequires: xorg-lib-libXdamage-devel | |
e07ea24b AM |
19 | BuildRequires: xorg-lib-libXext-devel |
20 | BuildRequires: xorg-lib-libXinerama-devel | |
7d17d2a0 ER |
21 | BuildRequires: xorg-lib-libXv-devel |
22 | BuildRequires: xorg-lib-libxkbfile | |
e5316440 ER |
23 | Requires: %{name}-libs = %{version}-%{release} |
24 | Requires: %{name}-plugins = %{version}-%{release} | |
e07ea24b | 25 | Provides: xfreerdp = %{version}-%{release} |
e5316440 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e07ea24b AM |
27 | |
28 | %description | |
29 | The xfreerdp Remote Desktop Protocol (RDP) client from the FreeRDP | |
30 | project. | |
31 | ||
32 | xfreerdp can connect to RDP servers such as Microsoft Windows | |
33 | machines, xrdp and VirtualBox. | |
34 | ||
e07ea24b | 35 | %package libs |
e5316440 ER |
36 | Summary: Core libraries implementing the RDP protocol |
37 | Group: Applications/Communications | |
38 | ||
e07ea24b AM |
39 | %description libs |
40 | libfreerdp-core can be embedded in applications. | |
41 | ||
42 | libfreerdp-channels and libfreerdp-kbd might be convenient to use in X | |
43 | applications together with libfreerdp-core. | |
44 | ||
45 | libfreerdp-core can be extended with plugins handling RDP channels. | |
46 | ||
e07ea24b | 47 | %package plugins |
e5316440 ER |
48 | Summary: Plugins for handling the standard RDP channels |
49 | Group: Applications/Communications | |
50 | Requires: %{name}-libs = %{version}-%{release} | |
51 | ||
e07ea24b AM |
52 | %description plugins |
53 | A set of plugins to the channel manager implementing the standard | |
54 | virtual channels extending RDP core functionality. For instance, | |
55 | sounds, clipboard sync, disk/printer redirection, etc. | |
56 | ||
e07ea24b | 57 | %package devel |
e07ea24b | 58 | Summary: Development files for %{name} |
e07ea24b | 59 | Group: Development/Libraries |
e5316440 | 60 | Requires: %{name}-libs = %{version}-%{release} |
e07ea24b AM |
61 | |
62 | %description devel | |
63 | The %{name}-devel package contains libraries and header files for | |
64 | developing applications that use %{name}-libs. | |
65 | ||
e07ea24b | 66 | %prep |
e07ea24b | 67 | %setup -q |
e07ea24b AM |
68 | |
69 | cat << EOF > xfreerdp.desktop | |
70 | [Desktop Entry] | |
71 | Type=Application | |
72 | Name=X FreeRDP | |
73 | NoDisplay=true | |
74 | Comment=Connect to RDP server and display remote desktop | |
75 | Icon=%{name} | |
76 | Exec=%{_bindir}/xfreerdp | |
77 | Terminal=false | |
78 | Categories=Network;RemoteAccess; | |
79 | EOF | |
80 | ||
e07ea24b | 81 | %build |
e5316440 ER |
82 | install -d build |
83 | cd build | |
e07ea24b | 84 | %cmake \ |
e5316440 ER |
85 | -DWITH_CUPS=ON \ |
86 | -DWITH_PCSC=ON \ | |
87 | -DWITH_PULSEAUDIO=ON \ | |
88 | -DWITH_X11=ON \ | |
89 | -DWITH_XCURSOR=ON \ | |
90 | -DWITH_XEXT=ON \ | |
91 | -DWITH_XINERAMA=ON \ | |
92 | -DWITH_XKBFILE=ON \ | |
93 | -DWITH_XV=ON \ | |
94 | -DWITH_ALSA=OFF \ | |
95 | -DWITH_CUNIT=OFF \ | |
96 | -DWITH_DIRECTFB=OFF \ | |
97 | -DWITH_FFMPEG=OFF \ | |
98 | -DWITH_SSE2=OFF \ | |
99 | -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \ | |
100 | .. | |
101 | ||
102 | %{__make} | |
e07ea24b AM |
103 | |
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
e5316440 ER |
106 | %{__make} install \ |
107 | INSTALL="install -p" \ | |
108 | DESTDIR=$RPM_BUILD_ROOT | |
e07ea24b AM |
109 | |
110 | # No need for keymap files when using xkbfile | |
e5316440 | 111 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/freerdp |
e07ea24b AM |
112 | |
113 | desktop-file-install --dir=$RPM_BUILD_ROOT%{_desktopdir} xfreerdp.desktop | |
114 | install -p -D resources/FreeRDP_Icon_256px.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps/%{name}.png | |
115 | ||
e07ea24b AM |
116 | %clean |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
e07ea24b AM |
119 | %post |
120 | # This is no gtk application, but try to integrate nicely with GNOME if it is available | |
121 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : | |
122 | ||
e5316440 ER |
123 | %post libs -p /sbin/ldconfig |
124 | %postun libs -p /sbin/ldconfig | |
e07ea24b AM |
125 | |
126 | %files | |
127 | %defattr(644,root,root,755) | |
128 | %attr(755,root,root) %{_bindir}/xfreerdp | |
129 | %{_mandir}/man1/xfreerdp.* | |
130 | %{_desktopdir}/xfreerdp.desktop | |
131 | %{_iconsdir}/hicolor/256x256/apps/%{name}.png | |
132 | ||
133 | %files libs | |
134 | %defattr(644,root,root,755) | |
135 | %doc LICENSE README ChangeLog | |
136 | %{_libdir}/lib%{name}-*.so.* | |
137 | %dir %{_libdir}/%{name}/ | |
138 | ||
139 | %files plugins | |
140 | %defattr(644,root,root,755) | |
141 | %{_libdir}/%{name}/* | |
142 | ||
143 | %files devel | |
144 | %defattr(644,root,root,755) | |
145 | %{_includedir}/%{name}/ | |
146 | %{_libdir}/lib%{name}-*.so | |
147 | %{_pkgconfigdir}/%{name}.pc |