2011-09-29 11:26:27 +00:00
#
# spec file for package freerdp
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2011-12-02 13:03:18 +00:00
2011-09-29 11:26:27 +00:00
%define soname 0
2010-11-17 12:07:09 +00:00
Name : freerdp
Version : 0.8.2
2011-12-01 17:22:13 +00:00
Release : 0
2011-09-29 11:26:27 +00:00
Summary : Remote Desktop Viewer
2011-10-18 20:31:28 +00:00
Url : http://www.freerdp.com/
2011-09-29 11:26:27 +00:00
License : GPL-2.0+
2010-11-17 12:07:09 +00:00
Group : Productivity/Networking/Other
2011-09-29 11:26:27 +00:00
Source0 : http://sourceforge.net/projects/freerdp/files/0.8/freerdp-%{version} .tar.gz
# PATCH-FIX-OPENSUSE freerdp-remove_am_silent_rules.patch pascal.bleser@opensuse.org -- Remove the AM_SILENT_RULES tag, useless and is undefined on older dists when running autoreconf
Patch0 : freerdp-remove_am_silent_rules.patch
2011-12-01 17:22:13 +00:00
BuildRequires : automake
2011-12-02 13:03:18 +00:00
BuildRequires : libtool
2011-12-01 17:22:13 +00:00
BuildRequires : cups-devel
2011-09-29 11:26:27 +00:00
BuildRequires : ed
2011-10-18 20:31:28 +00:00
BuildRequires : pkgconfig(alsa)
2011-12-01 17:22:13 +00:00
BuildRequires : pkgconfig(openssl)
2011-09-29 11:26:27 +00:00
BuildRequires : xorg-x11-devel
2010-11-17 12:07:09 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
Requires : libfreerdp%{soname} = %{version}
2010-11-17 11:33:29 +00:00
%description
2011-09-29 11:26:27 +00:00
FreeRDP is a client-side implementation of the Remote Desktop Protocol (RDP)
following the Microsoft Open Specifications.
2010-11-17 11:33:29 +00:00
2010-11-17 12:07:09 +00:00
%package -n libfreerdp%{soname}
Summary : Remote Desktop Viewer Library
Group : System/Libraries
Provides : libfreerdpchanman%{soname} = %{version} -%{release}
Provides : libfreerdpgdi%{soname} = %{version} -%{release}
Provides : libfreerdpkbd%{soname} = %{version} -%{release}
%description -n libfreerdp%{soname}
2011-09-29 11:26:27 +00:00
FreeRDP is a client-side implementation of the Remote Desktop Protocol (RDP)
following the Microsoft Open Specifications.
This package provides the shared library as well as its plugins.
2010-11-17 12:07:09 +00:00
2010-11-17 11:33:29 +00:00
%package devel
2011-09-29 11:26:27 +00:00
Summary : Development Files for %{name}
2010-11-17 12:07:09 +00:00
Group : Development/Libraries/C and C++
Requires : libfreerdp%{soname} = %{version}
2010-11-17 11:33:29 +00:00
%description devel
2011-09-29 11:26:27 +00:00
This package contains development files necessary for developing applications
based on libfreerdp.
2010-11-17 13:31:13 +00:00
2010-11-17 11:33:29 +00:00
%prep
%setup -q
2011-09-29 11:26:27 +00:00
%patch0
# use a versioned subdirectory for plugins in order to comply with the shared
# library policy
ed -s configure.ac 2>/dev/null <<'EOF'
,s/PLUGIN_PATH='\${libdir}\/freerdp' /PLUGIN_PATH='\${libdir}\/freerdp%{soname}' /
w
EOF
2010-11-17 11:33:29 +00:00
%build
2011-09-29 11:26:27 +00:00
autoreconf -fi
2010-11-17 12:07:09 +00:00
%configure \
2011-09-29 11:26:27 +00:00
--disable-static \
2010-11-17 12:07:09 +00:00
--with-ipv6 \
--enable-smartcard \
2011-06-07 22:24:33 +00:00
--with-sound=alsa \
2010-11-17 12:07:09 +00:00
--with-crypto=openssl
2011-09-29 11:26:27 +00:00
make %{?_smp_mflags} V=1
2010-11-17 11:33:29 +00:00
%install
2011-09-29 11:26:27 +00:00
%make_install
2010-11-17 11:33:29 +00:00
2011-09-29 11:26:27 +00:00
find " %{buildroot} %{_libdir} " -name '*.la' -exec rm -f {} +
2010-11-17 11:33:29 +00:00
2010-11-17 12:07:09 +00:00
%post -n libfreerdp%{soname} -p /sbin/ldconfig
2010-11-17 11:33:29 +00:00
2011-09-29 11:26:27 +00:00
%postun -n libfreerdp%{soname} -p /sbin/ldconfig
2010-11-17 11:33:29 +00:00
%files
%defattr (-,root,root)
%doc COPYING AUTHORS doc/ipv6.txt doc/ChangeLog
%{_bindir} /xfreerdp
2010-11-17 12:07:09 +00:00
%{_datadir} /%{name}
%{_mandir} /man1/xfreerdp.1%{ext_man}
%files -n libfreerdp%{soname}
%defattr (-,root,root)
%doc COPYING
%{_libdir} /libfreerdp.so.%{soname}
%{_libdir} /libfreerdp.so.%{soname} .*
%{_libdir} /libfreerdpchanman.so.%{soname}
%{_libdir} /libfreerdpchanman.so.%{soname} .*
%{_libdir} /libfreerdpgdi.so.%{soname}
%{_libdir} /libfreerdpgdi.so.%{soname} .*
%{_libdir} /libfreerdpkbd.so.%{soname}
%{_libdir} /libfreerdpkbd.so.%{soname} .*
%dir %{_libdir} /freerdp%{soname}
%{_libdir} /freerdp%{soname} /audin.so
%{_libdir} /freerdp%{soname} /cliprdr.so
%{_libdir} /freerdp%{soname} /disk.so
%{_libdir} /freerdp%{soname} /drdynvc.so
%{_libdir} /freerdp%{soname} /parallel.so
%{_libdir} /freerdp%{soname} /pnpdr.so
%{_libdir} /freerdp%{soname} /printer.so
%{_libdir} /freerdp%{soname} /rdpdr.so
%{_libdir} /freerdp%{soname} /rdpsnd.so
%{_libdir} /freerdp%{soname} /serial.so
2010-11-17 11:33:29 +00:00
%files devel
%defattr (-,root,root)
2010-11-17 12:07:09 +00:00
%{_includedir} /freerdp
2010-11-17 11:33:29 +00:00
%{_libdir} /lib*.so
2010-11-17 12:07:09 +00:00
%{_libdir} /pkgconfig/freerdp.pc
2010-11-17 11:33:29 +00:00
2011-10-18 20:31:28 +00:00
%changelog