Blame SPECS/freerdp.spec

d7ca03
Name:           freerdp
d7ca03
Version:        1.0.2
0c73ee
Release:        15%{?dist}.1
d7ca03
Summary:        Remote Desktop Protocol client
d7ca03
d7ca03
Group:          Applications/Communications
d7ca03
License:        ASL 2.0
d7ca03
URL:            http://www.freerdp.com/
d7ca03
Source0:        http://pub.freerdp.com/releases/%{name}-%{version}.tar.gz
d7ca03
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d7ca03
d7ca03
BuildRequires:  cmake
d7ca03
BuildRequires:  xmlto
d7ca03
BuildRequires:  openssl-devel
d7ca03
BuildRequires:  libX11-devel
d7ca03
BuildRequires:  libXext-devel
d7ca03
BuildRequires:  libXinerama-devel
d7ca03
BuildRequires:  libXcursor-devel
d7ca03
BuildRequires:  libXdamage-devel
d7ca03
BuildRequires:  libXv-devel
d7ca03
BuildRequires:  libxkbfile-devel
d7ca03
BuildRequires:  pulseaudio-libs-devel
d7ca03
BuildRequires:  cups-devel
d7ca03
BuildRequires:  pcsc-lite-devel
d7ca03
BuildRequires:  desktop-file-utils
d7ca03
d7ca03
Provides:       xfreerdp = %{version}-%{release}
d7ca03
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
d7ca03
Requires:       %{name}-plugins%{?_isa} = %{version}-%{release}
d7ca03
53bdd9
Patch0: 0001-xfreerdp.1.xml-Don-t-claim-to-support-multiple-conne.patch
53bdd9
Patch1: 0002-Replace-itemizedlist-s-with-variablelist-s.patch
53bdd9
ad3fed
# https://bugzilla.redhat.com/show_bug.cgi?id=1186916
8fdfec
Patch3: libfreerdp-core-fix-issue-436.patch
8fdfec
ad3fed
# https://bugzilla.redhat.com/show_bug.cgi?id=1296654
ad3fed
Patch4: fix-crashes-in-pulseaudio.patch
ad3fed
24c59a
# Fix crash if pulseaudio device isn't specified
24c59a
# https://bugzilla.redhat.com/show_bug.cgi?id=1067543
24c59a
Patch5: rdpsnd-pulse-Fix-crash-if-device-isn-t-specified.patch
24c59a
24c59a
# Fix crash if requested bitmap isn't in cache
24c59a
# https://bugzilla.redhat.com/show_bug.cgi?id=1311164
24c59a
Patch6: cover-the-case-of-servers-asking-for-cached-bitmaps-.patch
24c59a
24c59a
# Add support for wildcard certificates
24c59a
# https://bugzilla.redhat.com/show_bug.cgi?id=1275241
24c59a
Patch7: libfreerdp-core-verify-TLS-certificate-with-both-TLS.patch
24c59a
Patch8: fix-issue-530-NLA-password-asked-after-certificate-r.patch
24c59a
Patch9: 1-Add-support-for-Wildcard-Certificates-2-For-Gatewa.patch
24c59a
Patch10: Using-the-more-efficient-code-for-comparing-host-nam.patch
24c59a
Patch11: Fixed-a-possible-buffer-overflow-issue.patch
24c59a
56112c
# Prevent stucked keys on focus out and unmap events
56112c
# https://bugzilla.redhat.com/show_bug.cgi?id=1415069
56112c
Patch12: x11-release-all-pressed-keys-when-window-is-unmapped.patch
56112c
Patch13: release-keys-when-xfreerdp-is-unfocused-to-prevent-s.patch
56112c
56112c
# Fix crashes when copying images
56112c
# https://bugzilla.redhat.com/show_bug.cgi?id=1417536
56112c
Patch14: remove-unncessary-NULL-ptr-check.patch
56112c
56112c
# Enable TLS 1.1 connections and later
56112c
# https://bugzilla.redhat.com/show_bug.cgi?id=1312967
56112c
Patch15: tls-enable-tls-1.patch
56112c
56112c
# Add description for available plugins
56112c
# https://bugzilla.redhat.com/show_bug.cgi?id=1428041
56112c
Patch16: Add-description-for-available-plugins.patch
56112c
Patch20: Fix-smartcard-usage-in-manpage.patch
56112c
56112c
# Fix NTLM on big endian
56112c
# https://bugzilla.redhat.com/show_bug.cgi?id=1204742
56112c
Patch17: Fix-NTLM-on-big-endian.patch
56112c
56112c
# Fix colors on big endian
56112c
# https://bugzilla.redhat.com/show_bug.cgi?id=1308810
56112c
Patch18: Fix-colors-on-big-endian.patch
56112c
56112c
# Add FIPS mode support
56112c
# https://bugzilla.redhat.com/show_bug.cgi?id=1363811
56112c
Patch19: FIPS-mode-support.patch
56112c
0c73ee
# Fix CVE-2018-8786
0c73ee
# https://bugzilla.redhat.com/show_bug.cgi?id=1684152
0c73ee
Patch21: CVE-2018-8786.patch
0c73ee
0c73ee
# Fix CVE-2018-8787
0c73ee
# https://bugzilla.redhat.com/show_bug.cgi?id=1684156
0c73ee
Patch22: CVE-2018-8787.patch
0c73ee
0c73ee
# Fix CVE-2018-8788
0c73ee
# https://bugzilla.redhat.com/show_bug.cgi?id=1684163
0c73ee
Patch23: CVE-2018-8788.patch
0c73ee
d7ca03
%description
d7ca03
The xfreerdp Remote Desktop Protocol (RDP) client from the FreeRDP
d7ca03
project.
d7ca03
d7ca03
xfreerdp can connect to RDP servers such as Microsoft Windows
d7ca03
machines, xrdp and VirtualBox.
d7ca03
d7ca03
d7ca03
%package        libs
d7ca03
Summary:        Core libraries implementing the RDP protocol
d7ca03
Group:          Applications/Communications
d7ca03
%description    libs
d7ca03
libfreerdp-core can be embedded in applications.
d7ca03
d7ca03
libfreerdp-channels and libfreerdp-kbd might be convenient to use in X
d7ca03
applications together with libfreerdp-core.
d7ca03
d7ca03
libfreerdp-core can be extended with plugins handling RDP channels.
d7ca03
d7ca03
d7ca03
%package        plugins
d7ca03
Summary:        Plugins for handling the standard RDP channels
d7ca03
Group:          Applications/Communications
d7ca03
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
d7ca03
%description    plugins
d7ca03
A set of plugins to the channel manager implementing the standard virtual
d7ca03
channels extending RDP core functionality. For instance, sounds, clipboard
d7ca03
sync, disk/printer redirection, etc.
d7ca03
d7ca03
d7ca03
%package        devel
d7ca03
Summary:        Development files for %{name}
d7ca03
Group:          Development/Libraries
d7ca03
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
d7ca03
Requires:       pkgconfig
d7ca03
d7ca03
%description    devel
d7ca03
The %{name}-devel package contains libraries and header files for
d7ca03
developing applications that use %{name}-libs.
d7ca03
d7ca03
d7ca03
%prep
d7ca03
d7ca03
%setup -q
d7ca03
53bdd9
%patch0 -p1
53bdd9
%patch1 -p1
8fdfec
%patch3 -p1 -b .fix-invalid-dereference
ad3fed
%patch4 -p1 -b .fix-crashes-in-pulseaudio
24c59a
%patch5 -p1 -b .rdpsnd-pulse-fix-crash-if-device-isn-t-specified
24c59a
%patch6 -p1 -b .cover-the-case-of-servers-asking-for-cached-bitmaps-.patch
24c59a
%patch7 -p1 -b .libfreerdp-core-verify-TLS-certificate-with-both-TLS
24c59a
%patch8 -p1 -b .fix-issue-530-NLA-password-asked-after-certificate-r
24c59a
%patch9 -p1 -b .1-Add-support-for-Wildcard-Certificates-2-For-Gatewa
24c59a
%patch10 -p1 -b .Using-the-more-efficient-code-for-comparing-host-nam
24c59a
%patch11 -p1 -b .Fixed-a-possible-buffer-overflow-issue
56112c
%patch12 -p1 -b .x11-release-all-pressed-keys-when-window-is-unmapped
56112c
%patch13 -p1 -b .release-keys-when-xfreerdp-is-unfocused-to-prevent-s
56112c
%patch14 -p1 -b .remove-unncessary-NULL-ptr-check
56112c
%patch15 -p1 -b .tls-enable-tls-1
56112c
%patch16 -p1 -b .Add-description-for-available-plugins
56112c
%patch17 -p1 -b .Fix-NTLM-on-big-endian
56112c
%patch18 -p1 -b .Fix-colors-on-big-endian
56112c
%patch19 -p1 -b .FIPS-mode-support
56112c
%patch20 -p1 -b .Fix-smartcard-usage-in-manpage
0c73ee
%patch21 -p1 -b .CVE-2018-8786
0c73ee
%patch22 -p1 -b .CVE-2018-8787
0c73ee
%patch23 -p1 -b .CVE-2018-8788
53bdd9
d7ca03
cat << EOF > xfreerdp.desktop 
d7ca03
[Desktop Entry]
d7ca03
Type=Application
d7ca03
Name=X FreeRDP
d7ca03
NoDisplay=true
d7ca03
Comment=Connect to RDP server and display remote desktop
d7ca03
Icon=%{name}
d7ca03
Exec=/usr/bin/xfreerdp
d7ca03
Terminal=false
d7ca03
Categories=Network;RemoteAccess;
d7ca03
EOF
d7ca03
d7ca03
d7ca03
%build
d7ca03
d7ca03
%cmake \
d7ca03
        -DWITH_CUPS=ON \
d7ca03
        -DWITH_PCSC=ON \
d7ca03
        -DWITH_PULSEAUDIO=ON \
d7ca03
        -DWITH_X11=ON \
d7ca03
        -DWITH_XCURSOR=ON \
d7ca03
        -DWITH_XEXT=ON \
d7ca03
        -DWITH_XINERAMA=ON \
d7ca03
        -DWITH_XKBFILE=ON \
d7ca03
        -DWITH_XV=ON \
d7ca03
        -DWITH_ALSA=OFF \
d7ca03
        -DWITH_CUNIT=OFF \
d7ca03
        -DWITH_DIRECTFB=OFF \
d7ca03
        -DWITH_FFMPEG=OFF \
d7ca03
        -DWITH_SSE2=OFF \
d7ca03
        -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
d7ca03
        .
d7ca03
d7ca03
make %{?_smp_mflags}
d7ca03
d7ca03
d7ca03
%install
d7ca03
rm -rf $RPM_BUILD_ROOT
d7ca03
d7ca03
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
d7ca03
d7ca03
# No need for keymap files when using xkbfile
d7ca03
rm -rf $RPM_BUILD_ROOT/usr/share/freerdp
d7ca03
d7ca03
desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications xfreerdp.desktop
d7ca03
install -p -D resources/FreeRDP_Icon_256px.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
d7ca03
d7ca03
d7ca03
%clean
d7ca03
rm -rf $RPM_BUILD_ROOT
d7ca03
d7ca03
d7ca03
%post
d7ca03
# This is no gtk application, but try to integrate nicely with GNOME if it is available
d7ca03
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
d7ca03
d7ca03
d7ca03
%post libs -p /sbin/ldconfig
d7ca03
d7ca03
d7ca03
%postun libs -p /sbin/ldconfig
d7ca03
d7ca03
d7ca03
%files
d7ca03
%defattr(-,root,root,-)
d7ca03
%{_bindir}/xfreerdp
d7ca03
%{_mandir}/man1/xfreerdp.*
d7ca03
%{_datadir}/applications/xfreerdp.desktop
d7ca03
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
d7ca03
d7ca03
%files libs
d7ca03
%defattr(-,root,root,-)
d7ca03
%doc LICENSE README ChangeLog
d7ca03
%{_libdir}/lib%{name}-*.so.*
d7ca03
%dir %{_libdir}/%{name}/
d7ca03
d7ca03
%files plugins
d7ca03
%defattr(-,root,root,-)
d7ca03
%{_libdir}/%{name}/*
d7ca03
d7ca03
%files devel
d7ca03
%defattr(-,root,root,-)
d7ca03
%{_includedir}/%{name}/
d7ca03
%{_libdir}/lib%{name}-*.so
d7ca03
%{_libdir}/pkgconfig/%{name}.pc
d7ca03
d7ca03
d7ca03
%changelog
0c73ee
* Fri Mar 8 2019 Ondrej Holy <oholy@redhat.com> - 1.0.2-15.1
0c73ee
- Fix CVE-2018-8786 (#1684152)
0c73ee
- Fix CVE-2018-8787 (#1684156)
0c73ee
- Fix CVE-2018-8788 (#1684163)
0c73ee
56112c
* Wed Jan 31 2018 Ondrej Holy <oholy@redhat.com> - 1.0.2-15
56112c
- Fix smartcard usage in manpage (#1428041)
56112c
56112c
* Thu Nov 23 2017 Ondrej Holy <oholy@redhat.com> - 1.0.2-14
56112c
- Add FIPS mode support (#1363811)
56112c
56112c
* Thu Oct 5 2017 Ondrej Holy <oholy@redhat.com> - 1.0.2-13
56112c
- Fix NTLM on big endian (#1204742)
56112c
- Fix colors on big endian (#1308810)
56112c
56112c
* Thu Sep 21 2017 Ondrej Holy <oholy@redhat.com> - 1.0.2-12
56112c
- Add description for available plugins (#1428041)
56112c
56112c
* Thu Sep 7 2017 Ondrej Holy <oholy@redhat.com> - 1.0.2-11
56112c
- Use boolean types defined stdbool.h (#1404575)
56112c
- Prevent stucked keys on focus out and unmap events (#1415069)
56112c
- Fix crashes when copying images (#1417536)
56112c
- Enable TLS 1.1 connections and later (#1312967)
56112c
24c59a
* Mon Apr 18 2016 Ondrej Holy <oholy@redhat.com> - 1.0.2-10
24c59a
- Add support for wildcard certificates (#1275241)
24c59a
24c59a
* Wed Apr 6 2016 Ondrej Holy <oholy@redhat.com> - 1.0.2-9
24c59a
- Fix crash if requested bitmap isn't in cache (#1311164)
24c59a
24c59a
* Wed Apr 6 2016 Ondrej Holy <oholy@redhat.com> - 1.0.2-8
24c59a
- Fix crash if pulseaudio device isn't specified (#1067543)
24c59a
24c59a
* Fri Jan 15 2016 Ondrej Holy <oholy@redhat.com> - 1.0.2-7
ad3fed
- Fix crashes in pulseaudio
24c59a
- Resolves: #1210049
ad3fed
ad3fed
* Thu Mar 19 2015 Ondrej Holy <oholy@redhat.com> - 1.0.2-6
8fdfec
- Fix crash during CA verification caused by invalid pointer dereference
ad3fed
- Resolves: #1186916
8fdfec
53bdd9
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.0.2-5
53bdd9
- Mass rebuild 2014-01-24
53bdd9
53bdd9
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.2-4
53bdd9
- Mass rebuild 2013-12-27
53bdd9
53bdd9
* Thu Dec 19 2013 Soren Sandmann <ssp@redhat.com> - 1.0.2-3
53bdd9
- Man page fixes
53bdd9
  - Document that multiple connections don't work (988294)
53bdd9
  - Document the list of plugins (988307, 988308)
53bdd9
d7ca03
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
d7ca03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d7ca03
d7ca03
* Wed Jan 02 2013 Mads Kiilerich <mads@kiilerich.com> - 1.0.2-1
d7ca03
- freerdp-1.0.2
d7ca03
d7ca03
* Sun Sep 30 2012 Mads Kiilerich <mads@kiilerich.com> - 1.0.1-7
d7ca03
- merge f17 1.0.1-6 - Backport fix for bug 816692
d7ca03
d7ca03
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
d7ca03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d7ca03
d7ca03
* Wed Feb 29 2012 Mads Kiilerich <mads@kiilerich.com> - 1.0.1-5
d7ca03
- Use new upstream tar with standard naming
d7ca03
- Use _isa for subpackage dependencies
d7ca03
d7ca03
* Tue Feb 28 2012 Mads Kiilerich <mads@kiilerich.com> - 1.0.1-4
d7ca03
- Include patch for sending invalid extra data
d7ca03
d7ca03
* Tue Feb 28 2012 Mads Kiilerich <mads@kiilerich.com> - 1.0.1-3
d7ca03
- Install a freedesktop .desktop file and a high-res icon instead of relying on
d7ca03
  _NET_WM_ICON
d7ca03
d7ca03
* Sat Feb 25 2012 Mads Kiilerich <mads@kiilerich.com> - 1.0.1-2
d7ca03
- Explicit build requirement for xmlto - needed for EL6
d7ca03
d7ca03
* Wed Feb 22 2012 Mads Kiilerich <mads@kiilerich.com> - 1.0.1-1
d7ca03
- FreeRDP-1.0.1 - major upstream rewrite and relicensing under Apache license
d7ca03
d7ca03
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-4
d7ca03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d7ca03
d7ca03
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-3
d7ca03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d7ca03
d7ca03
* Fri Jan 28 2011 Mads Kiilerich <mads@kiilerich.com> - 0.8.2-2
d7ca03
- rebuild on rawhide because of broken dependencies
d7ca03
d7ca03
* Tue Nov 16 2010 Mads Kiilerich <mads@kiilerich.com> - 0.8.2-1
d7ca03
- freerdp-0.8.2
d7ca03
d7ca03
* Mon Nov 08 2010 Mads Kiilerich <mads@kiilerich.com> - 0.8.1-2
d7ca03
- make -devel require pkgconfig
d7ca03
- first official Fedora package
d7ca03
d7ca03
* Sun Nov 07 2010 Mads Kiilerich <mads@kiilerich.com> - 0.8.1-1
d7ca03
- freerdp-0.8.1
d7ca03
d7ca03
* Sat Sep 25 2010 Mads Kiilerich <mads@kiilerich.com> - 0.7.4-2
d7ca03
- hack the generated libtool to not set rpath on x86_64
d7ca03
- configure with alsa explicitly
d7ca03
d7ca03
* Tue Aug 24 2010 Mads Kiilerich <mads@kiilerich.com> - 0.7.4-1
d7ca03
- freerdp-0.7.4
d7ca03
- cleanup of packaging structure
d7ca03
d7ca03
* Wed Jul 28 2010 Mads Kiilerich <mads@kiilerich.com> - 0.7.3-1
d7ca03
- 0.7.3
d7ca03
- fix some minor pylint warnings
d7ca03
d7ca03
* Fri Jul 23 2010 Mads Kiilerich <mads@kiilerich.com> - 0.7.2-2
d7ca03
- 0.7.2
d7ca03
- Address many comments from cwickert:
d7ca03
- - cleanup of old formatting, alignment with spectemplate-lib.spec and
d7ca03
    cwickert spec from #616193
d7ca03
- - add alsa as build requirement
d7ca03
- - remove superfluous configure options and disable static libs
d7ca03
- - add missing rpm groups
d7ca03
d7ca03
* Sun Jun 13 2010 Mads Kiilerich <mads@kiilerich.com> - 0.7.0-1
d7ca03
- First official release, first review request