2015-01-23 04:06:12 +03:00
|
|
|
#
|
|
|
|
# spec file for package freerdp-nightly
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 Bernhard Miklautz <bernhard.miklautz@shacknet.at>
|
|
|
|
#
|
|
|
|
# Bugs and comments https://github.com/FreeRDP/FreeRDP/issues
|
|
|
|
|
|
|
|
|
|
|
|
%define INSTALL_PREFIX /opt/freerdp-nightly/
|
2018-02-07 11:33:44 +03:00
|
|
|
|
|
|
|
# do not add provides for libs provided by this package
|
|
|
|
# or it could possibly mess with system provided packages
|
|
|
|
# which depend on freerdp libs
|
|
|
|
%global __provides_exclude_from ^%{INSTALL_PREFIX}.*$
|
|
|
|
|
|
|
|
# do not require our own libs
|
|
|
|
%global __requires_exclude ^(libfreerdp.*|libwinpr).*$
|
|
|
|
|
2015-01-23 04:06:12 +03:00
|
|
|
Name: freerdp-nightly
|
2015-11-18 01:29:07 +03:00
|
|
|
Version: 2.0
|
2015-01-23 04:06:12 +03:00
|
|
|
Release: 0
|
|
|
|
License: ASL 2.0
|
|
|
|
Summary: Free implementation of the Remote Desktop Protocol (RDP)
|
|
|
|
Url: http://www.freerdp.com
|
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2018-02-13 18:32:49 +03:00
|
|
|
Source1: source_version
|
2015-01-24 02:53:46 +03:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: cmake >= 2.8.12
|
2015-01-23 04:06:12 +03:00
|
|
|
BuildRequires: libxkbfile-devel
|
|
|
|
BuildRequires: libX11-devel
|
|
|
|
BuildRequires: libXrandr-devel
|
|
|
|
BuildRequires: libXi-devel
|
|
|
|
BuildRequires: libXrender-devel
|
|
|
|
BuildRequires: libXext-devel
|
|
|
|
BuildRequires: libXinerama-devel
|
|
|
|
BuildRequires: libXfixes-devel
|
|
|
|
BuildRequires: libXcursor-devel
|
|
|
|
BuildRequires: libXv-devel
|
|
|
|
BuildRequires: libXdamage-devel
|
|
|
|
BuildRequires: libXtst-devel
|
|
|
|
BuildRequires: cups-devel
|
|
|
|
BuildRequires: pcsc-lite-devel
|
|
|
|
BuildRequires: uuid-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: zlib-devel
|
2018-02-07 11:33:44 +03:00
|
|
|
BuildRequires: krb5-devel
|
2015-01-23 04:06:12 +03:00
|
|
|
|
2015-11-18 01:29:07 +03:00
|
|
|
# (Open)Suse
|
|
|
|
%if %{defined suse_version}
|
2015-01-23 04:06:12 +03:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: libxslt-tools
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: alsa-devel
|
|
|
|
BuildRequires: libpulse-devel
|
|
|
|
BuildRequires: libusb-1_0-devel
|
|
|
|
BuildRequires: libudev-devel
|
|
|
|
BuildRequires: dbus-1-glib-devel
|
|
|
|
BuildRequires: gstreamer-devel
|
|
|
|
BuildRequires: gstreamer-plugins-base-devel
|
|
|
|
BuildRequires: wayland-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libavutil-devel
|
2018-08-08 14:31:52 +03:00
|
|
|
BuildRequires: libavcodec-devel
|
2018-11-13 15:59:41 +03:00
|
|
|
BuildRequires: libswresample-devel
|
2015-01-23 04:06:12 +03:00
|
|
|
%endif
|
|
|
|
# fedora 21+
|
2018-02-07 11:33:44 +03:00
|
|
|
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
|
2015-01-23 04:06:12 +03:00
|
|
|
BuildRequires: docbook-style-xsl
|
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: alsa-lib-devel
|
|
|
|
BuildRequires: pulseaudio-libs-devel
|
|
|
|
BuildRequires: libusbx-devel
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
BuildRequires: dbus-glib-devel
|
|
|
|
BuildRequires: gstreamer1-devel
|
|
|
|
BuildRequires: gstreamer1-plugins-base-devel
|
|
|
|
BuildRequires: libjpeg-turbo-devel
|
|
|
|
%endif
|
|
|
|
|
2018-08-13 16:44:53 +03:00
|
|
|
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 8
|
2018-02-07 11:33:44 +03:00
|
|
|
BuildRequires: libwayland-client-devel
|
|
|
|
%endif
|
|
|
|
|
2015-01-23 04:06:12 +03:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
FreeRDP is a open and free implementation of the Remote Desktop Protocol (RDP).
|
|
|
|
This package provides nightly master builds of all components.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development Files for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains development files necessary for developing applications
|
|
|
|
based on freerdp and winpr.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-02-13 18:32:49 +03:00
|
|
|
cd %{_topdir}/BUILD
|
|
|
|
cp %{_topdir}/SOURCES/source_version freerdp-nightly-%{version}/.source_version
|
2015-01-23 04:06:12 +03:00
|
|
|
|
|
|
|
%build
|
2018-02-13 18:32:49 +03:00
|
|
|
|
2015-01-23 04:06:12 +03:00
|
|
|
%cmake -DCMAKE_SKIP_RPATH=FALSE \
|
|
|
|
-DCMAKE_SKIP_INSTALL_RPATH=FALSE \
|
|
|
|
-DWITH_PULSE=ON \
|
|
|
|
-DWITH_CHANNELS=ON \
|
2016-06-15 14:36:27 +03:00
|
|
|
-DBUILTIN_CHANNELS=ON \
|
2015-01-23 04:06:12 +03:00
|
|
|
-DWITH_CUPS=ON \
|
|
|
|
-DWITH_PCSC=ON \
|
|
|
|
-DWITH_JPEG=ON \
|
2018-08-13 15:34:06 +03:00
|
|
|
%if %{defined suse_version}
|
2018-08-08 14:31:52 +03:00
|
|
|
-DWITH_FFMPEG=ON \
|
|
|
|
-DWITH_DSP_FFMPEG=ON \
|
2018-08-13 15:34:06 +03:00
|
|
|
%endif
|
2018-08-24 14:21:27 +03:00
|
|
|
%if 0%{?fedora} < 21 || 0%{?rhel} < 8
|
2018-02-07 11:33:44 +03:00
|
|
|
-DWITH_WAYLAND=OFF \
|
|
|
|
%endif
|
|
|
|
-DWITH_GSSAPI=ON \
|
2015-01-23 04:06:12 +03:00
|
|
|
-DCHANNEL_URBDRC=ON \
|
|
|
|
-DCHANNEL_URBDRC_CLIENT=ON \
|
|
|
|
-DWITH_SERVER=ON \
|
|
|
|
-DBUILD_TESTING=OFF \
|
2017-12-22 13:42:31 +03:00
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
2015-01-23 04:06:12 +03:00
|
|
|
-DCMAKE_INSTALL_PREFIX=%{INSTALL_PREFIX} \
|
2015-01-24 02:53:46 +03:00
|
|
|
%if %{defined suse_version}
|
2018-01-24 18:56:03 +03:00
|
|
|
-DCMAKE_NO_BUILTIN_CHRPATH=ON \
|
|
|
|
%else
|
|
|
|
-DWITH_SANITIZE_ADDRESS=ON \
|
2015-01-24 02:53:46 +03:00
|
|
|
%endif
|
2015-01-23 04:06:12 +03:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=%{_lib}
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%if %{defined suse_version}
|
|
|
|
%cmake_install
|
|
|
|
%endif
|
|
|
|
|
2018-02-07 11:33:44 +03:00
|
|
|
%if %{defined fedora} || %{defined rhel}
|
2015-01-23 04:06:12 +03:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%endif
|
|
|
|
|
|
|
|
find %{buildroot} -name "*.a" -delete
|
|
|
|
export NO_BRP_CHECK_RPATH true
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2015-01-24 02:53:46 +03:00
|
|
|
%dir %{INSTALL_PREFIX}
|
|
|
|
%dir %{INSTALL_PREFIX}/%{_lib}
|
|
|
|
%dir %{INSTALL_PREFIX}/bin
|
|
|
|
%dir %{INSTALL_PREFIX}/share/
|
|
|
|
%dir %{INSTALL_PREFIX}/share/man/
|
|
|
|
%dir %{INSTALL_PREFIX}/share/man/man1
|
2016-12-01 13:10:58 +03:00
|
|
|
%dir %{INSTALL_PREFIX}/share/man/man7
|
2015-01-23 04:06:12 +03:00
|
|
|
%{INSTALL_PREFIX}/%{_lib}/*.so.*
|
|
|
|
%{INSTALL_PREFIX}/bin/
|
|
|
|
%{INSTALL_PREFIX}/share/man/man1/xfreerdp.1*
|
2017-01-16 13:34:32 +03:00
|
|
|
%{INSTALL_PREFIX}/share/man/man1/freerdp-shadow-cli.1*
|
|
|
|
%{INSTALL_PREFIX}/share/man/man1/winpr-makecert.1*
|
|
|
|
%{INSTALL_PREFIX}/share/man/man1/winpr-hash.1*
|
2016-12-01 13:10:58 +03:00
|
|
|
%{INSTALL_PREFIX}/share/man/man7/wlog.7*
|
2015-01-23 04:06:12 +03:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{INSTALL_PREFIX}/%{_lib}/*.so
|
|
|
|
%{INSTALL_PREFIX}/include/
|
|
|
|
%{INSTALL_PREFIX}/%{_lib}/pkgconfig/
|
|
|
|
%{INSTALL_PREFIX}/%{_lib}/cmake/
|
|
|
|
|
2015-01-24 02:53:46 +03:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
2015-01-23 04:06:12 +03:00
|
|
|
%changelog
|
2018-02-07 11:33:44 +03:00
|
|
|
* Wed Feb 7 2018 FreeRDP Team <team@freerdp.com> - 2.0.0-0
|
2015-11-18 01:29:07 +03:00
|
|
|
- Update version information and support for OpenSuse 42.1
|
2015-02-03 18:07:54 +03:00
|
|
|
* Tue Feb 03 2015 FreeRDP Team <team@freerdp.com> - 1.2.1-0
|
2015-02-03 15:49:05 +03:00
|
|
|
- Update version information
|
2015-02-03 18:09:01 +03:00
|
|
|
* Fri Jan 23 2015 Bernhard Miklautz <bmiklautz+freerdp@shacknet.at> - 1.2.0-0
|
|
|
|
- Initial version
|