]> git.pld-linux.org Git - packages/freerdp.git/blame - freerdp.spec
cleanup missing patches, pld deps
[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
e07ea24b
AM
9BuildRequires: cmake
10BuildRequires: cups-devel
11BuildRequires: desktop-file-utils
e07ea24b
AM
12BuildRequires: openssl-devel
13BuildRequires: pcsc-lite-devel
14BuildRequires: pulseaudio-devel
15BuildRequires: xmlto
16BuildRequires: xorg-lib-libX11-devel
e5316440
ER
17BuildRequires: xorg-lib-libXcursor-devel
18BuildRequires: xorg-lib-libXdamage-devel
e07ea24b
AM
19BuildRequires: xorg-lib-libXext-devel
20BuildRequires: xorg-lib-libXinerama-devel
7d17d2a0
ER
21BuildRequires: xorg-lib-libXv-devel
22BuildRequires: xorg-lib-libxkbfile
e5316440
ER
23Requires: %{name}-libs = %{version}-%{release}
24Requires: %{name}-plugins = %{version}-%{release}
e07ea24b 25Provides: xfreerdp = %{version}-%{release}
e5316440 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
e07ea24b
AM
27
28%description
29The xfreerdp Remote Desktop Protocol (RDP) client from the FreeRDP
30project.
31
32xfreerdp can connect to RDP servers such as Microsoft Windows
33machines, xrdp and VirtualBox.
34
e07ea24b 35%package libs
e5316440
ER
36Summary: Core libraries implementing the RDP protocol
37Group: Applications/Communications
38
e07ea24b
AM
39%description libs
40libfreerdp-core can be embedded in applications.
41
42libfreerdp-channels and libfreerdp-kbd might be convenient to use in X
43applications together with libfreerdp-core.
44
45libfreerdp-core can be extended with plugins handling RDP channels.
46
e07ea24b 47%package plugins
e5316440
ER
48Summary: Plugins for handling the standard RDP channels
49Group: Applications/Communications
50Requires: %{name}-libs = %{version}-%{release}
51
e07ea24b
AM
52%description plugins
53A set of plugins to the channel manager implementing the standard
54virtual channels extending RDP core functionality. For instance,
55sounds, clipboard sync, disk/printer redirection, etc.
56
e07ea24b 57%package devel
e07ea24b 58Summary: Development files for %{name}
e07ea24b 59Group: Development/Libraries
e5316440 60Requires: %{name}-libs = %{version}-%{release}
e07ea24b
AM
61
62%description devel
63The %{name}-devel package contains libraries and header files for
64developing applications that use %{name}-libs.
65
e07ea24b 66%prep
e07ea24b 67%setup -q
e07ea24b
AM
68
69cat << EOF > xfreerdp.desktop
70[Desktop Entry]
71Type=Application
72Name=X FreeRDP
73NoDisplay=true
74Comment=Connect to RDP server and display remote desktop
75Icon=%{name}
76Exec=%{_bindir}/xfreerdp
77Terminal=false
78Categories=Network;RemoteAccess;
79EOF
80
e07ea24b 81%build
e5316440
ER
82install -d build
83cd 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
105rm -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
113desktop-file-install --dir=$RPM_BUILD_ROOT%{_desktopdir} xfreerdp.desktop
114install -p -D resources/FreeRDP_Icon_256px.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
115
e07ea24b
AM
116%clean
117rm -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
121gtk-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
This page took 0.054266 seconds and 4 git commands to generate.