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