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