Blame SPECS/freerdp.spec

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