Blame SPECS/freerdp.spec

53a076
# Can be rebuilt with FFmpeg/H264 support enabled by passing "--with=ffmpeg",
53a076
# "--with=x264" or "--with=openh264" to mock/rpmbuild; or by globally setting
53a076
# these variables:
53a076
53a076
#global _with_ffmpeg 1
53a076
#global _with_x264 1
53a076
#global _with_openh264 1
53a076
53a076
# Momentarily disable GSS support
53a076
# https://github.com/FreeRDP/FreeRDP/issues/4348
53a076
#global _with_gss 1
53a076
53a076
# Disable server support in RHEL
53a076
# https://bugzilla.redhat.com/show_bug.cgi?id=1639165
53a076
%{!?rhel:%global _with_server 1}
53a076
e669e9
# Disable support for missing codecs in RHEL
e669e9
%{!?rhel:%global _with_soxr 1}
e669e9
%if 0%{?fedora} || 0%{?rhel} >= 8
e669e9
%global _with_lame 1
e669e9
%endif
e669e9
53a076
Name:           freerdp
7f4e3c
Version:        2.2.0
9a4f74
Release:        2%{?dist}
53a076
Epoch:          2
53a076
Summary:        Free implementation of the Remote Desktop Protocol (RDP)
53a076
License:        ASL 2.0
53a076
URL:            http://www.freerdp.com/
53a076
e669e9
Source0:        https://github.com/FreeRDP/FreeRDP/archive/%{version}/FreeRDP-%{version}.tar.gz
53a076
9a4f74
# https://bugzilla.redhat.com/show_bug.cgi?id=1910029
9a4f74
Patch0:         6741.patch
9a4f74
53a076
BuildRequires:  gcc
53a076
BuildRequires:  gcc-c++
53a076
BuildRequires:  alsa-lib-devel
53a076
BuildRequires:  cmake >= 2.8
53a076
BuildRequires:  cups-devel
53a076
BuildRequires:  gsm-devel
e669e9
%{?_with_lame:BuildRequires:  lame-devel}
e669e9
BuildRequires:  libicu-devel
53a076
BuildRequires:  libjpeg-turbo-devel
53a076
BuildRequires:  libX11-devel
53a076
BuildRequires:  libXcursor-devel
53a076
BuildRequires:  libXdamage-devel
53a076
BuildRequires:  libXext-devel
53a076
BuildRequires:  libXi-devel
53a076
BuildRequires:  libXinerama-devel
53a076
BuildRequires:  libxkbfile-devel
53a076
BuildRequires:  libXrandr-devel
53a076
%{?_with_server:BuildRequires:  libXtst-devel}
53a076
BuildRequires:  libXv-devel
53a076
%{?_with_openh264:BuildRequires:  openh264-devel}
53a076
%{?_with_x264:BuildRequires:  x264-devel}
53a076
%{?_with_server:BuildRequires:  pam-devel}
53a076
BuildRequires:  xmlto
53a076
BuildRequires:  zlib-devel
53a076
BuildRequires:  multilib-rpm-config
53a076
e669e9
BuildRequires:  pkgconfig(cairo)
53a076
BuildRequires:  pkgconfig(dbus-1)
53a076
BuildRequires:  pkgconfig(dbus-glib-1)
53a076
BuildRequires:  pkgconfig(glib-2.0)
53a076
BuildRequires:  pkgconfig(gstreamer-1.0)
53a076
BuildRequires:  pkgconfig(gstreamer-base-1.0)
53a076
BuildRequires:  pkgconfig(gstreamer-app-1.0)
53a076
BuildRequires:  pkgconfig(gstreamer-audio-1.0)
53a076
BuildRequires:  pkgconfig(gstreamer-fft-1.0)
53a076
BuildRequires:  pkgconfig(gstreamer-pbutils-1.0)
53a076
BuildRequires:  pkgconfig(gstreamer-video-1.0)
53a076
%{?_with_gss:BuildRequires:  pkgconfig(krb5) >= 1.13}
53a076
BuildRequires:  pkgconfig(libpcsclite)
53a076
BuildRequires:  pkgconfig(libpulse)
53a076
BuildRequires:  pkgconfig(libsystemd)
e669e9
BuildRequires:  pkgconfig(libusb-1.0)
53a076
BuildRequires:  pkgconfig(openssl)
e669e9
%{?_with_soxr:BuildRequires:  pkgconfig(soxr)}
53a076
BuildRequires:  pkgconfig(wayland-client)
53a076
BuildRequires:  pkgconfig(wayland-scanner)
53a076
BuildRequires:  pkgconfig(xkbcommon)
53a076
53a076
%{?_with_ffmpeg:
53a076
BuildRequires:  pkgconfig(libavcodec) >= 57.48.101
53a076
BuildRequires:  pkgconfig(libavutil)
53a076
}
53a076
e669e9
Provides:       xfreerdp = %{?epoch}:%{version}-%{release}
53a076
Requires:       %{name}-libs%{?_isa} = %{?epoch}:%{version}-%{release}
53a076
Requires:       libwinpr%{?_isa} = %{?epoch}:%{version}-%{release}
53a076
53a076
%description
53a076
The xfreerdp & wlfreerdp Remote Desktop Protocol (RDP) clients from the FreeRDP
53a076
project.
53a076
53a076
xfreerdp & wlfreerdp can connect to RDP servers such as Microsoft Windows
53a076
machines, xrdp and VirtualBox.
53a076
53a076
%package        libs
53a076
Summary:        Core libraries implementing the RDP protocol
53a076
Requires:       libwinpr%{?_isa} = %{?epoch}:%{version}-%{release}
53a076
Obsoletes:      %{name}-plugins < 1:1.1.0
53a076
Provides:       %{name}-plugins = %{?epoch}:%{version}-%{release}
53a076
%description    libs
53a076
libfreerdp-core can be embedded in applications.
53a076
53a076
libfreerdp-channels and libfreerdp-kbd might be convenient to use in X
53a076
applications together with libfreerdp-core.
53a076
53a076
libfreerdp-core can be extended with plugins handling RDP channels.
53a076
53a076
%package        devel
53a076
Summary:        Development files for %{name}
53a076
Requires:       %{name}-libs%{?_isa} = %{?epoch}:%{version}-%{release}
53a076
Requires:       pkgconfig
53a076
Requires:       cmake >= 2.8
53a076
53a076
%description    devel
53a076
The %{name}-devel package contains libraries and header files for developing
53a076
applications that use %{name}-libs.
53a076
53a076
%{?_with_server:
53a076
%package        server
53a076
Summary:        Server support for %{name}
53a076
Requires:       libwinpr%{?_isa} = %{?epoch}:%{version}-%{release}
53a076
Requires:       %{name}-libs%{?_isa} = %{?epoch}:%{version}-%{release}
53a076
53a076
%description    server
53a076
The %{name}-server package contains servers which can export a desktop via
53a076
the RDP protocol.
53a076
}
53a076
53a076
%package -n     libwinpr
53a076
Summary:        Windows Portable Runtime
53a076
Provides:       %{name}-libwinpr = %{?epoch}:%{version}-%{release}
e669e9
Obsoletes:      %{name}-libwinpr < 1:1.2.0
53a076
53a076
%description -n libwinpr
53a076
WinPR provides API compatibility for applications targeting non-Windows
53a076
environments. When on Windows, the original native API is being used instead of
53a076
the equivalent WinPR implementation, without having to modify the code using it.
53a076
53a076
%package -n     libwinpr-devel
53a076
Summary:        Windows Portable Runtime development files
53a076
Requires:       libwinpr%{?_isa} = %{?epoch}:%{version}-%{release}
53a076
Requires:       pkgconfig
53a076
Requires:       cmake >= 2.8
53a076
53a076
%description -n libwinpr-devel
53a076
The %{name}-libwinpr-devel package contains libraries and header files for
53a076
developing applications that use %{name}-libwinpr.
53a076
53a076
%prep
e669e9
%autosetup -p1 -n FreeRDP-%{version}
53a076
53a076
# Rpmlint fixes
53a076
find . -name "*.h" -exec chmod 664 {} \;
53a076
find . -name "*.c" -exec chmod 664 {} \;
53a076
53a076
%build
53a076
%cmake %{?_cmake_skip_rpath} \
53a076
    -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
53a076
    -DWITH_ALSA=ON \
53a076
    -DWITH_CUPS=ON \
53a076
    -DWITH_CHANNELS=ON -DBUILTIN_CHANNELS=OFF \
53a076
    -DWITH_CLIENT=ON \
53a076
    -DWITH_DIRECTFB=OFF \
53a076
    -DWITH_FFMPEG=%{?_with_ffmpeg:ON}%{?!_with_ffmpeg:OFF} \
53a076
    -DWITH_GSM=ON \
53a076
    -DWITH_GSSAPI=%{?_with_gss:ON}%{?!_with_gss:OFF} \
53a076
    -DWITH_GSTREAMER_1_0=ON -DWITH_GSTREAMER_0_10=OFF \
53a076
    -DGSTREAMER_1_0_INCLUDE_DIRS=%{_includedir}/gstreamer-1.0 \
e669e9
    -DWITH_ICU=ON \
53a076
    -DWITH_IPP=OFF \
53a076
    -DWITH_JPEG=ON \
e669e9
    -DWITH_LAME=%{?_with_lame:ON}%{?!_with_lame:OFF} \
53a076
    -DWITH_MANPAGES=ON \
53a076
    -DWITH_OPENH264=%{?_with_openh264:ON}%{?!_with_openh264:OFF} \
53a076
    -DWITH_OPENSSL=ON \
53a076
    -DWITH_PCSC=ON \
53a076
    -DWITH_PULSE=ON \
53a076
    -DWITH_SERVER=%{?_with_server:ON}%{?!_with_server:OFF} \
53a076
    -DWITH_SERVER_INTERFACE=%{?_with_server:ON}%{?!_with_server:OFF} \
53a076
    -DWITH_SHADOW_X11=%{?_with_server:ON}%{?!_with_server:OFF} \
53a076
    -DWITH_SHADOW_MAC=%{?_with_server:ON}%{?!_with_server:OFF} \
e669e9
    -DWITH_SOXR=%{?_with_soxr:ON}%{?!_with_soxr:OFF} \
53a076
    -DWITH_WAYLAND=ON \
53a076
    -DWITH_X11=ON \
53a076
    -DWITH_X264=%{?_with_x264:ON}%{?!_with_x264:OFF} \
53a076
    -DWITH_XCURSOR=ON \
53a076
    -DWITH_XEXT=ON \
53a076
    -DWITH_XKBFILE=ON \
53a076
    -DWITH_XI=ON \
53a076
    -DWITH_XINERAMA=ON \
53a076
    -DWITH_XRENDER=ON \
53a076
    -DWITH_XTEST=%{?_with_server:ON}%{?!_with_server:OFF} \
53a076
    -DWITH_XV=ON \
53a076
    -DWITH_ZLIB=ON \
53a076
%ifarch x86_64
53a076
    -DWITH_SSE2=ON \
e669e9
    -DWITH_VAAPI=%{?_with_ffmpeg:ON}%{?!_with_ffmpeg:OFF} \
53a076
%else
53a076
    -DWITH_SSE2=OFF \
53a076
%endif
53a076
%ifarch armv7hl
53a076
    -DARM_FP_ABI=hard \
53a076
    -DWITH_NEON=OFF \
53a076
%endif
53a076
%ifarch armv7hnl
53a076
    -DARM_FP_ABI=hard \
53a076
    -DWITH_NEON=ON \
53a076
%endif
53a076
%ifarch armv5tel armv6l armv7l
53a076
    -DARM_FP_ABI=soft \
53a076
    -DWITH_NEON=OFF \
53a076
%endif
53a076
    .
53a076
e669e9
%make_build
53a076
53a076
pushd winpr/tools/makecert-cli
e669e9
%make_build
53a076
popd
53a076
53a076
%install
53a076
%make_install
53a076
%make_install COMPONENT=tools
53a076
53a076
find %{buildroot} -name "*.a" -delete
53a076
53a076
%multilib_fix_c_header --file %{_includedir}/freerdp2/freerdp/build-config.h
53a076
53a076
%files
53a076
%{_bindir}/winpr-hash
53a076
%{_bindir}/winpr-makecert
53a076
%{_bindir}/wlfreerdp
53a076
%{_bindir}/xfreerdp
e669e9
%{_mandir}/man1/winpr-hash.1*
e669e9
%{_mandir}/man1/winpr-makecert.1*
e669e9
%{_mandir}/man1/wlfreerdp.1*
e669e9
%{_mandir}/man1/xfreerdp.1*
53a076
53a076
%files libs
53a076
%license LICENSE
e669e9
%doc README.md ChangeLog
53a076
%{_libdir}/freerdp2/
53a076
%{_libdir}/libfreerdp-client2.so.*
53a076
%{?_with_server:
53a076
%{_libdir}/libfreerdp-server2.so.*
53a076
%{_libdir}/libfreerdp-shadow2.so.*
53a076
%{_libdir}/libfreerdp-shadow-subsystem2.so.*
53a076
}
53a076
%{_libdir}/libfreerdp2.so.*
53a076
%{_libdir}/libuwac0.so.*
53a076
%{_mandir}/man7/wlog.*
53a076
53a076
%files devel
53a076
%{_includedir}/freerdp2
53a076
%{_includedir}/uwac0
53a076
%{_libdir}/cmake/FreeRDP2
53a076
%{_libdir}/cmake/FreeRDP-Client2
53a076
%{?_with_server:
53a076
%{_libdir}/cmake/FreeRDP-Server2
53a076
%{_libdir}/cmake/FreeRDP-Shadow2
53a076
}
53a076
%{_libdir}/cmake/uwac0
53a076
%{_libdir}/libfreerdp-client2.so
53a076
%{?_with_server:
53a076
%{_libdir}/libfreerdp-server2.so
53a076
%{_libdir}/libfreerdp-shadow2.so
53a076
%{_libdir}/libfreerdp-shadow-subsystem2.so
53a076
}
53a076
%{_libdir}/libfreerdp2.so
53a076
%{_libdir}/libuwac0.so
53a076
%{_libdir}/pkgconfig/freerdp2.pc
53a076
%{_libdir}/pkgconfig/freerdp-client2.pc
53a076
%{?_with_server:
53a076
%{_libdir}/pkgconfig/freerdp-server2.pc
53a076
%{_libdir}/pkgconfig/freerdp-shadow2.pc
53a076
}
53a076
%{_libdir}/pkgconfig/uwac0.pc
53a076
53a076
%{?_with_server:
53a076
%files server
e669e9
%{_bindir}/freerdp-proxy
53a076
%{_bindir}/freerdp-shadow-cli
e669e9
%{_mandir}/man1/freerdp-shadow-cli.1*
53a076
}
53a076
53a076
%files -n libwinpr
53a076
%license LICENSE
e669e9
%doc README.md ChangeLog
53a076
%{_libdir}/libwinpr2.so.*
53a076
%{_libdir}/libwinpr-tools2.so.*
53a076
53a076
%files -n libwinpr-devel
53a076
%{_libdir}/cmake/WinPR2
53a076
%{_includedir}/winpr2
53a076
%{_libdir}/libwinpr2.so
53a076
%{_libdir}/libwinpr-tools2.so
53a076
%{_libdir}/pkgconfig/winpr2.pc
53a076
%{_libdir}/pkgconfig/winpr-tools2.pc
53a076
53a076
%changelog
9a4f74
* Wed Apr 28 2021 Ondrej Holy <oholy@redhat.com> - 2:2.2.0-2
9a4f74
- Fix exit codes for /help and similar options (rhbz#1910029)
9a4f74
7f4e3c
* Fri Nov 20 2020 Ondrej Holy <oholy@redhat.com> - 2:2.2.0-1
7f4e3c
- Update to 2.2.0 (rhbz#1881971)
7f4e3c
e669e9
* Mon May 25 2020 Ondrej Holy <oholy@redhat.com> - 2:2.1.1-1
e669e9
- Update to 2.1.1 (rhbz#1834287).
e669e9
e669e9
* Fri Apr 17 2020 Ondrej Holy <oholy@redhat.com> - 2:2.0.0-47.rc4
e669e9
- Fix SCARD_INSUFFICIENT_BUFFER error (rhbz#1803054)
e669e9
- Do not advertise /usb in help output (rhbz#1761144)
8b16a4
53a076
* Wed Nov 28 2018 Ondrej Holy <oholy@redhat.com> - 2:2.0.0-46.rc4
53a076
- Update to 2.0.0-rc4 (#1624340)
53a076
53a076
* Mon Oct 15 2018 Ondrej Holy <oholy@redhat.com> - 2:2.0.0-45.rc3
53a076
- Disable server support in RHEL (#1639165)
53a076
53a076
* Wed Oct 10 2018 Ondrej Holy <oholy@redhat.com> - 2:2.0.0-44.rc3
53a076
- Fix packaging issues found by rpmdiff (#1637487)
53a076
53a076
* Tue Sep 25 2018 Ondrej Holy <oholy@redhat.com> - 2:2.0.0-43.rc3
53a076
- Fix important defects found by covscan (#1602500)
53a076
53a076
* Thu Sep 06 2018 Ondrej Holy <oholy@redhat.com> - 2:2.0.0-42.rc3
53a076
- Update to 2.0.0-rc3 (#1624340)
53a076
53a076
* Mon Apr 09 2018 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-41.20180405gita9ecd6a
53a076
- Update to latest snapshot.
53a076
53a076
* Wed Mar 21 2018 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-40.20180320gitde83f4d
53a076
- Add PAM support (fixes freerdp-shadow-cli). Thanks Paolo Zeppegno.
53a076
- Update to latest snapshot.
53a076
53a076
* Thu Mar 15 2018 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-39.20180314gitf8baeb7
53a076
- Update to latest snapshot.
53a076
- Fixes connection to RDP servers with the latest Microsoft patches:
53a076
  https://github.com/FreeRDP/FreeRDP/issues/4449
53a076
53a076
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.0.0-38.20180115git8f52c7e
53a076
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
53a076
53a076
* Thu Jan 18 2018 Karsten Hopp <karsten@redhat.com> - 2.0.0-37git}
53a076
- use versioned build requirement on pkgconfig(openssl) to prevent using
53a076
  compat-openssl10-devel instead of openssl-devel
53a076
53a076
* Tue Jan 16 2018 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-36.20180115git8f52c7e
53a076
- Update to latest snapshot.
53a076
- Make GSS support optional and disable it for now (#1534094 and FreeRDP #4348,
53a076
  #1435, #4363).
53a076
53a076
* Wed Dec 20 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-35.20171220gitbfe8359
53a076
- Update to latest snapshot post 2.0.0rc1.
53a076
53a076
* Mon Sep 11 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-34.20170831git3b83526
53a076
- Update to latest snapshot.
53a076
- Trim changelog.
53a076
53a076
* Mon Aug 07 2017 Björn Esser <besser82@fedoraproject.org> - 2:2.0.0-33.20170724gitf8c9f43
53a076
- Rebuilt for AutoReq cmake-filesystem
53a076
53a076
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.0.0-32.20170724gitf8c9f43
53a076
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
53a076
53a076
* Thu Jul 27 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-31.20170724gitf8c9f43
53a076
- Update to latest snapshot, Talos security fixes.
53a076
53a076
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.0.0-30.20170710gitf580bea
53a076
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
53a076
53a076
* Wed Jul 12 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-29.20170710gitf580bea
53a076
- Update to latest snapshot.
53a076
53a076
* Mon Jun 26 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-28.20170623git9904c32
53a076
- Update to latest snapshot.
53a076
53a076
* Mon May 15 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-27.20170512gitb1df835
53a076
- Update to latest snapshot.
53a076
53a076
* Thu Apr 20 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-26.20170419gitbfcf8e7
53a076
- Update to latest 2.0 snapshot.
53a076
53a076
* Thu Apr 13 2017 Orion Poplawski <orion@cora.nwra.com> - 2:2.0.0-25.20170317git8c68761
53a076
- Install tools via make install
53a076
53a076
* Wed Mar 22 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-24.20170317git8c68761
53a076
- Update to latest snapshot.
53a076
53a076
* Mon Mar 06 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-23.20170302git210de68
53a076
- Remove shared libxfreerdp-client shared library.
53a076
53a076
* Thu Mar 02 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-22.20170302git210de68
53a076
- Move libxfreerdp-client shared object into devel subpackage.
53a076
53a076
* Thu Mar 02 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-21.20170302git210de68
53a076
- Update to latest snapshot.
53a076
- Update build requirements, tune build options.
53a076
53a076
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.0.0-20.20161228git90877f5
53a076
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
53a076
53a076
* Mon Jan 09 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-19.20161228git90877f5
53a076
- Update to latest snapshot.