2011-09-29 11:26:27 +00:00
|
|
|
#
|
|
|
|
# spec file for package freerdp
|
|
|
|
#
|
2017-01-19 09:47:28 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-09-29 11:26:27 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
|
2016-05-18 05:01:12 +00:00
|
|
|
%define sover 2
|
2016-05-17 19:32:01 +00:00
|
|
|
|
2010-11-17 12:07:09 +00:00
|
|
|
Name: freerdp
|
2017-06-12 14:14:04 +00:00
|
|
|
Version: 2.0.0~git.1497095982.1dbd2d28d
|
2011-12-01 17:22:13 +00:00
|
|
|
Release: 0
|
2012-03-28 11:18:32 +00:00
|
|
|
Summary: Remote Desktop Viewer Client
|
2012-03-27 23:52:37 +00:00
|
|
|
License: Apache-2.0
|
2010-11-17 12:07:09 +00:00
|
|
|
Group: Productivity/Networking/Other
|
2012-03-27 23:52:37 +00:00
|
|
|
Url: http://www.freerdp.com/
|
2017-06-12 14:14:04 +00:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2014-06-13 05:12:21 +00:00
|
|
|
BuildRequires: alsa-devel
|
2012-03-27 23:52:37 +00:00
|
|
|
BuildRequires: cmake
|
2011-12-01 17:22:13 +00:00
|
|
|
BuildRequires: cups-devel
|
2011-09-29 11:26:27 +00:00
|
|
|
BuildRequires: ed
|
2016-05-11 19:36:51 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gstreamer-devel
|
|
|
|
BuildRequires: gstreamer-plugins-base-devel
|
2014-06-13 05:12:21 +00:00
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libpulse-devel
|
2016-05-11 19:36:51 +00:00
|
|
|
BuildRequires: libxkbcommon-devel
|
2014-06-13 05:12:21 +00:00
|
|
|
BuildRequires: pcsc-lite-devel
|
2016-05-11 19:36:51 +00:00
|
|
|
BuildRequires: systemd-devel
|
2012-03-27 23:52:37 +00:00
|
|
|
BuildRequires: xmlto
|
|
|
|
BuildRequires: xorg-x11-devel
|
2012-03-28 11:18:32 +00:00
|
|
|
BuildRequires: zlib-devel
|
2010-11-17 12:07:09 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-11-17 11:33:29 +00:00
|
|
|
|
2016-05-18 05:01:12 +00:00
|
|
|
%define libname lib%{name}%{sover}
|
|
|
|
|
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)
|
2012-03-28 11:18:32 +00:00
|
|
|
following the Microsoft Open Specifications. This package provides the client
|
|
|
|
application.
|
2010-11-17 11:33:29 +00:00
|
|
|
|
2016-05-17 19:32:01 +00:00
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Remote Desktop Viewer Library
|
|
|
|
Group: System/Libraries
|
2016-05-18 05:01:12 +00:00
|
|
|
Obsoletes: libfreerdp-1_0-plugins
|
2016-05-17 19:32:01 +00:00
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
FreeRDP is a client-side implementation of the Remote Desktop Protocol (RDP)
|
|
|
|
following the Microsoft Open Specifications. This package provides the shared
|
|
|
|
library.
|
|
|
|
|
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++
|
2016-05-17 19:32:01 +00:00
|
|
|
Requires: %{libname} = %{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
|
2016-05-17 19:32:01 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
2010-11-17 11:33:29 +00:00
|
|
|
|
|
|
|
%build
|
2016-05-18 09:06:49 +00:00
|
|
|
find . -type f -name "*.c" -exec perl -i -pe 's{__(DATE|TIME)__}{""}g' "{}" "+"
|
2017-06-11 16:35:57 +00:00
|
|
|
export LDFLAGS="-pie"
|
|
|
|
export CFLAGS="%optflags -fPIE -pie"
|
2016-05-11 19:36:51 +00:00
|
|
|
%cmake \
|
2012-03-28 11:18:32 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
2012-03-29 08:54:04 +00:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
|
2016-05-17 19:32:01 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2012-03-28 11:18:32 +00:00
|
|
|
-DWITH_ALSA=ON \
|
2016-05-11 19:36:51 +00:00
|
|
|
-DWITH_PULSEAUDIO=ON \
|
2016-05-17 19:32:01 +00:00
|
|
|
-DWITH_PCSC=ON \
|
|
|
|
-DWITH_CUPS=ON \
|
|
|
|
-DCMAKE_NO_BUILTIN_CHRPATH=ON \
|
2012-12-28 22:00:14 +00:00
|
|
|
%ifarch %ix86 x86_64
|
2012-12-27 15:28:42 +00:00
|
|
|
-DWITH_SSE2=ON \
|
2012-12-28 18:40:48 +00:00
|
|
|
%endif
|
2012-03-28 11:18:32 +00:00
|
|
|
..
|
2016-05-17 19:32:01 +00:00
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
2010-11-17 11:33:29 +00:00
|
|
|
|
|
|
|
%install
|
2012-03-27 23:52:37 +00:00
|
|
|
cd build
|
2013-11-04 12:58:03 +00:00
|
|
|
make install 'DESTDIR=%{buildroot}'
|
2016-05-11 19:36:51 +00:00
|
|
|
find %{buildroot} -name "*.a" -delete
|
|
|
|
%fdupes -s %{buildroot}
|
2010-11-17 11:33:29 +00:00
|
|
|
|
2016-05-17 19:32:01 +00:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
2010-11-17 11:33:29 +00:00
|
|
|
|
2016-05-17 19:32:01 +00:00
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2010-11-17 11:33:29 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-03-27 23:52:37 +00:00
|
|
|
%doc LICENSE README ChangeLog
|
2016-05-17 19:32:01 +00:00
|
|
|
%{_bindir}/winpr-hash
|
|
|
|
%{_bindir}/winpr-makecert
|
|
|
|
%{_bindir}/xfreerdp
|
2010-11-17 12:07:09 +00:00
|
|
|
%{_mandir}/man1/xfreerdp.1%{ext_man}
|
2017-06-12 14:14:04 +00:00
|
|
|
%{_mandir}/man1/winpr-hash.1%{ext_man}
|
|
|
|
%{_mandir}/man1/winpr-makecert.1%{ext_man}
|
|
|
|
%{_mandir}/man7/wlog.7%{?ext_man}
|
2010-11-17 12:07:09 +00:00
|
|
|
|
2016-05-17 19:32:01 +00:00
|
|
|
%files -n %{libname}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE
|
2017-06-12 14:14:04 +00:00
|
|
|
%{_libdir}/libfreerdp-client2.so.*
|
|
|
|
%{_libdir}/libfreerdp2.so.*
|
|
|
|
%{_libdir}/libwinpr2.so.*
|
|
|
|
%{_libdir}/libwinpr-tools2.so.*
|
2016-05-17 19:32:01 +00:00
|
|
|
|
2010-11-17 11:33:29 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2016-05-17 19:32:01 +00:00
|
|
|
%doc LICENSE
|
|
|
|
%{_includedir}/freerdp2
|
|
|
|
%{_includedir}/winpr2
|
|
|
|
%{_libdir}/cmake/FreeRDP2
|
|
|
|
%{_libdir}/cmake/FreeRDP-Client2
|
|
|
|
%{_libdir}/cmake/WinPR2
|
2017-06-12 14:14:04 +00:00
|
|
|
%{_libdir}/libfreerdp-client2.so
|
|
|
|
%{_libdir}/libfreerdp2.so
|
|
|
|
%{_libdir}/libwinpr2.so
|
|
|
|
%{_libdir}/libwinpr-tools2.so
|
2016-05-17 19:32:01 +00:00
|
|
|
%{_libdir}/pkgconfig/freerdp2.pc
|
|
|
|
%{_libdir}/pkgconfig/freerdp-client2.pc
|
|
|
|
%{_libdir}/pkgconfig/winpr2.pc
|
|
|
|
%{_libdir}/pkgconfig/winpr-tools2.pc
|
2010-11-17 11:33:29 +00:00
|
|
|
|
2011-10-18 20:31:28 +00:00
|
|
|
%changelog
|