FreeRDP/freerdp.spec

166 lines
4.4 KiB
RPMSpec
Raw Normal View History

2011-10-19 16:21:14 +04:00
# rpmbuild -ta freerdp-<...>.tar.gz
Name: freerdp
Version: 1.0.1
Release: 1%{?dist}
Summary: Remote Desktop Protocol functionality
Group: Applications/Communications
License: Apache License 2.0
URL: http://www.freerdp.com/
Source0: https://github.com/downloads/FreeRDP/FreeRDP/%{name}-%{version}.tar.gz
2011-10-19 16:21:14 +04:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: cmake
BuildRequires: xmlto
2011-10-19 16:21:14 +04:00
BuildRequires: openssl-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXinerama-devel
BuildRequires: libXcursor-devel
BuildRequires: libXdamage-devel
BuildRequires: libXv-devel
BuildRequires: libxkbfile-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: cups-devel
BuildRequires: alsa-lib-devel
BuildRequires: pcsc-lite-devel
BuildRequires: desktop-file-utils
2011-10-19 16:21:14 +04:00
%description
2011-11-14 02:30:09 +04:00
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP)
according to the Microsoft Open Specifications.
2011-10-19 16:21:14 +04:00
%package -n xfreerdp
Summary: Remote Desktop Protocol client
Group: Applications/Communications
Requires: %{name}-libs = %{version}-%{release}
Requires: %{name}-plugins-standard = %{version}-%{release}
%description -n xfreerdp
2011-11-14 02:30:09 +04:00
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP)
according to the Microsoft Open Specifications.
2011-10-19 16:21:14 +04:00
%package libs
Summary: Core libraries implementing the RDP protocol
Group: Applications/Communications
%description libs
2011-11-14 02:30:09 +04:00
libfreerdp-core can be embedded in applications.
2011-10-19 16:21:14 +04:00
2011-11-14 02:30:09 +04:00
libfreerdp-channels and libfreerdp-kbd might be convenient to use in X
applications together with libfreerdp-core.
2011-10-19 16:21:14 +04:00
2011-11-14 02:30:09 +04:00
libfreerdp-core can be extended with plugins handling RDP channels.
2011-10-19 16:21:14 +04:00
%package plugins-standard
Summary: Plugins for handling the standard RDP channels
Group: Applications/Communications
Requires: %{name}-libs = %{version}-%{release}
%description plugins-standard
2011-10-19 16:21:14 +04:00
A set of plugins to the channel manager implementing the standard virtual
2011-11-14 02:30:09 +04:00
channels extending RDP core functionality. For instance, sounds, clipboard
2011-10-19 16:21:14 +04:00
sync, disk/printer redirection, etc.
%package devel
Summary: Libraries and header files for embedding and extending freerdp
Group: Applications/Communications
Requires: %{name}-libs = %{version}-%{release}
Requires: pkgconfig
%description devel
2011-11-14 02:30:09 +04:00
Header files and unversioned libraries for libfreerdp-core, libfreerdp-channels,
2012-05-06 04:45:13 +04:00
libfreerdp-locale, libfreerdp-cache, libfreerdp-codec, libfreerdp-rail,
2011-11-14 02:30:09 +04:00
libfreerdp-gdi and libfreerdp-utils.
2011-10-19 16:21:14 +04:00
%prep
2011-10-19 16:21:14 +04:00
%setup -q
cat << EOF > xfreerdp.desktop
[Desktop Entry]
Type=Application
Name=X FreeRDP
NoDisplay=true
Comment=Connect to RDP server and display remote desktop
Icon=%{name}
Exec=/usr/bin/xfreerdp
Terminal=false
Categories=Network;RemoteAccess;
EOF
2011-10-19 16:21:14 +04:00
%build
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DWITH_CUPS:BOOL=ON \
-DWITH_PCSC:BOOL=ON \
-DWITH_PULSE:BOOL=ON \
-DWITH_MACAUDIO:BOOL=ON \
-DWITH_X11:BOOL=ON \
-DWITH_XCURSOR:BOOL=ON \
-DWITH_XEXT:BOOL=ON \
-DWITH_XINERAMA:BOOL=ON \
-DWITH_XKBFILE:BOOL=ON \
-DWITH_XV:BOOL=ON \
-DWITH_ALSA:BOOL=ON \
-DWITH_CUNIT:BOOL=OFF \
-DWITH_DIRECTFB:BOOL=OFF \
-DWITH_FFMPEG:BOOL=OFF \
-DWITH_SSE2:BOOL=OFF \
.
2011-10-19 16:21:14 +04:00
make %{?_smp_mflags}
2011-10-19 16:21:14 +04:00
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications xfreerdp.desktop
install -p -D resources/FreeRDP_Icon_256px.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
2011-10-19 16:21:14 +04:00
%clean
rm -rf $RPM_BUILD_ROOT
%post
# This is no gtk application, but try to integrate nicely with GNOME if it is available
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
2011-10-19 16:21:14 +04:00
%files -n xfreerdp
%defattr(-,root,root,-)
2011-10-19 16:21:14 +04:00
%{_bindir}/xfreerdp
%{_mandir}/man1/xfreerdp.*
%{_datadir}/applications/xfreerdp.desktop
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
2011-10-19 16:21:14 +04:00
%files libs
%defattr(-,root,root,-)
%doc LICENSE README ChangeLog
%{_libdir}/lib%{name}-*.so.*
%dir %{_libdir}/%{name}/
2011-10-19 16:21:14 +04:00
%files plugins-standard
%defattr(-,root,root,-)
%{_libdir}/%{name}/*
2011-10-19 16:21:14 +04:00
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{name}/
%{_libdir}/lib%{name}-*.so
%{_libdir}/pkgconfig/%{name}.pc
2011-10-19 16:21:14 +04:00
%changelog