Blame SPECS/freerdp.spec

135825
%global gittag 2.0.0-rc4
135825
135825
# Can be rebuilt with FFmpeg/H264 support enabled by passing "--with=ffmpeg",
135825
# "--with=x264" or "--with=openh264" to mock/rpmbuild; or by globally setting
135825
# these variables:
135825
135825
#global _with_ffmpeg 1
135825
#global _with_x264 1
135825
#global _with_openh264 1
135825
135825
# Momentarily disable GSS support
135825
# https://github.com/FreeRDP/FreeRDP/issues/4348
135825
#global _with_gss 1
135825
135825
# Disable server support in RHEL
135825
# https://bugzilla.redhat.com/show_bug.cgi?id=1639165
135825
%{!?rhel:%global _with_server 1}
135825
135825
Name:           freerdp
135825
Version:        2.0.0
135825
Release:        1.rc4%{?dist}
135825
Summary:        Free implementation of the Remote Desktop Protocol (RDP)
135825
License:        ASL 2.0
135825
URL:            http://www.freerdp.com/
135825
135825
Source0:        https://github.com/FreeRDP/FreeRDP/archive/%{gittag}/FreeRDP-%{gittag}.tar.gz
135825
Source1:        build-config.h
135825
135825
BuildRequires:  gcc
135825
BuildRequires:  gcc-c++
135825
BuildRequires:  alsa-lib-devel
135825
BuildRequires:  cmake >= 2.8
135825
BuildRequires:  cups-devel
135825
BuildRequires:  gsm-devel
135825
BuildRequires:  libjpeg-turbo-devel
135825
BuildRequires:  libX11-devel
135825
BuildRequires:  libXcursor-devel
135825
BuildRequires:  libXdamage-devel
135825
BuildRequires:  libXext-devel
135825
BuildRequires:  libXi-devel
135825
BuildRequires:  libXinerama-devel
135825
BuildRequires:  libxkbfile-devel
135825
BuildRequires:  libXrandr-devel
135825
%{?_with_server:BuildRequires:  libXtst-devel}
135825
BuildRequires:  libXv-devel
135825
%{?_with_openh264:BuildRequires:  openh264-devel}
135825
%{?_with_x264:BuildRequires:  x264-devel}
135825
%{?_with_server:BuildRequires:  pam-devel}
135825
BuildRequires:  xmlto
135825
BuildRequires:  zlib-devel
135825
135825
BuildRequires:  pkgconfig(dbus-1)
135825
BuildRequires:  pkgconfig(dbus-glib-1)
135825
BuildRequires:  pkgconfig(glib-2.0)
135825
BuildRequires:  pkgconfig(gstreamer-1.0)
135825
BuildRequires:  pkgconfig(gstreamer-base-1.0)
135825
BuildRequires:  pkgconfig(gstreamer-app-1.0)
135825
BuildRequires:  pkgconfig(gstreamer-audio-1.0)
135825
BuildRequires:  pkgconfig(gstreamer-fft-1.0)
135825
BuildRequires:  pkgconfig(gstreamer-pbutils-1.0)
135825
BuildRequires:  pkgconfig(gstreamer-video-1.0)
135825
%{?_with_gss:BuildRequires:  pkgconfig(krb5) >= 1.13}
135825
BuildRequires:  pkgconfig(libpcsclite)
135825
BuildRequires:  pkgconfig(libpulse)
135825
BuildRequires:  pkgconfig(libsystemd)
135825
BuildRequires:  pkgconfig(openssl)
135825
BuildRequires:  pkgconfig(wayland-client)
135825
BuildRequires:  pkgconfig(wayland-scanner)
135825
BuildRequires:  pkgconfig(xkbcommon)
135825
135825
%{?_with_ffmpeg:
135825
BuildRequires:  pkgconfig(libavcodec) >= 57.48.101
135825
BuildRequires:  pkgconfig(libavutil)
135825
}
135825
135825
Provides:       xfreerdp = %{version}-%{release}
135825
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
135825
Requires:       libwinpr%{?_isa} = %{version}-%{release}
135825
135825
%description
135825
The xfreerdp & wlfreerdp Remote Desktop Protocol (RDP) clients from the FreeRDP
135825
project.
135825
135825
xfreerdp & wlfreerdp can connect to RDP servers such as Microsoft Windows
135825
machines, xrdp and VirtualBox.
135825
135825
%package        libs
135825
Summary:        Core libraries implementing the RDP protocol
135825
Requires:       libwinpr%{?_isa} = %{version}-%{release}
135825
Obsoletes:      %{name}-plugins < 2.0.0
135825
Provides:       %{name}-plugins = %{version}-%{release}
135825
%description    libs
135825
libfreerdp-core can be embedded in applications.
135825
135825
libfreerdp-channels and libfreerdp-kbd might be convenient to use in X
135825
applications together with libfreerdp-core.
135825
135825
libfreerdp-core can be extended with plugins handling RDP channels.
135825
135825
%package        devel
135825
Summary:        Development files for %{name}
135825
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
135825
Requires:       pkgconfig
135825
Requires:       cmake >= 2.8
135825
135825
%description    devel
135825
The %{name}-devel package contains libraries and header files for developing
135825
applications that use %{name}-libs.
135825
135825
%{?_with_server:
135825
%package        server
135825
Summary:        Server support for %{name}
135825
Requires:       libwinpr%{?_isa} = %{version}-%{release}
135825
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
135825
135825
%description    server
135825
The %{name}-server package contains servers which can export a desktop via
135825
the RDP protocol.
135825
}
135825
135825
%package -n     libwinpr
135825
Summary:        Windows Portable Runtime
135825
Provides:       %{name}-libwinpr = %{version}-%{release}
135825
135825
%description -n libwinpr
135825
WinPR provides API compatibility for applications targeting non-Windows
135825
environments. When on Windows, the original native API is being used instead of
135825
the equivalent WinPR implementation, without having to modify the code using it.
135825
135825
%package -n     libwinpr-devel
135825
Summary:        Windows Portable Runtime development files
135825
Requires:       libwinpr%{?_isa} = %{version}-%{release}
135825
Requires:       pkgconfig
135825
Requires:       cmake >= 2.8
135825
135825
%description -n libwinpr-devel
135825
The %{name}-libwinpr-devel package contains libraries and header files for
135825
developing applications that use %{name}-libwinpr.
135825
135825
%prep
135825
%autosetup -p1 -n FreeRDP-%{gittag}
135825
135825
# Rpmlint fixes
135825
find . -name "*.h" -exec chmod 664 {} \;
135825
find . -name "*.c" -exec chmod 664 {} \;
135825
135825
%build
135825
%cmake %{?_cmake_skip_rpath} \
135825
    -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
135825
    -DWITH_ALSA=ON \
135825
    -DWITH_CUPS=ON \
135825
    -DWITH_CHANNELS=ON -DBUILTIN_CHANNELS=OFF \
135825
    -DWITH_CLIENT=ON \
135825
    -DWITH_DIRECTFB=OFF \
135825
    -DWITH_FFMPEG=%{?_with_ffmpeg:ON}%{?!_with_ffmpeg:OFF} \
135825
    -DWITH_GSM=ON \
135825
    -DWITH_GSSAPI=%{?_with_gss:ON}%{?!_with_gss:OFF} \
135825
    -DWITH_GSTREAMER_1_0=ON -DWITH_GSTREAMER_0_10=OFF \
135825
    -DGSTREAMER_1_0_INCLUDE_DIRS=%{_includedir}/gstreamer-1.0 \
135825
    -DWITH_IPP=OFF \
135825
    -DWITH_JPEG=ON \
135825
    -DWITH_MANPAGES=ON \
135825
    -DWITH_OPENH264=%{?_with_openh264:ON}%{?!_with_openh264:OFF} \
135825
    -DWITH_OPENSSL=ON \
135825
    -DWITH_PCSC=ON \
135825
    -DWITH_PULSE=ON \
135825
    -DWITH_SERVER=%{?_with_server:ON}%{?!_with_server:OFF} \
135825
    -DWITH_SERVER_INTERFACE=%{?_with_server:ON}%{?!_with_server:OFF} \
135825
    -DWITH_SHADOW_X11=%{?_with_server:ON}%{?!_with_server:OFF} \
135825
    -DWITH_SHADOW_MAC=%{?_with_server:ON}%{?!_with_server:OFF} \
135825
    -DWITH_WAYLAND=ON \
135825
    -DWITH_X11=ON \
135825
    -DWITH_X264=%{?_with_x264:ON}%{?!_with_x264:OFF} \
135825
    -DWITH_XCURSOR=ON \
135825
    -DWITH_XEXT=ON \
135825
    -DWITH_XKBFILE=ON \
135825
    -DWITH_XI=ON \
135825
    -DWITH_XINERAMA=ON \
135825
    -DWITH_XRENDER=ON \
135825
    -DWITH_XTEST=%{?_with_server:ON}%{?!_with_server:OFF} \
135825
    -DWITH_XV=ON \
135825
    -DWITH_ZLIB=ON \
135825
%ifarch x86_64
135825
    -DWITH_SSE2=ON \
135825
%else
135825
    -DWITH_SSE2=OFF \
135825
%endif
135825
%ifarch armv7hl
135825
    -DARM_FP_ABI=hard \
135825
    -DWITH_NEON=OFF \
135825
%endif
135825
%ifarch armv7hnl
135825
    -DARM_FP_ABI=hard \
135825
    -DWITH_NEON=ON \
135825
%endif
135825
%ifarch armv5tel armv6l armv7l
135825
    -DARM_FP_ABI=soft \
135825
    -DWITH_NEON=OFF \
135825
%endif
135825
    .
135825
135825
make %{?_smp_mflags}
135825
135825
pushd winpr/tools/makecert-cli
135825
make %{?_smp_mflags}
135825
popd
135825
135825
%install
135825
%make_install
135825
%make_install COMPONENT=tools
135825
135825
find %{buildroot} -name "*.a" -delete
135825
135825
# build-config.h is not multilib clean and multilib-rpm-config is not available
135825
mv $RPM_BUILD_ROOT/%{_includedir}/freerdp2/freerdp/build-config.h $RPM_BUILD_ROOT/%{_includedir}/freerdp2/freerdp/build-config-`getconf LONG_BIT`.h
135825
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_includedir}/freerdp2/freerdp/
135825
135825
%post libs -p /sbin/ldconfig
135825
135825
%postun libs -p /sbin/ldconfig
135825
135825
%post -n libwinpr -p /sbin/ldconfig
135825
135825
%postun -n libwinpr -p /sbin/ldconfig
135825
135825
%files
135825
%{_bindir}/winpr-hash
135825
%{_bindir}/winpr-makecert
135825
%{_bindir}/wlfreerdp
135825
%{_bindir}/xfreerdp
135825
%{_mandir}/man1/winpr-hash.1.*
135825
%{_mandir}/man1/winpr-makecert.1.*
135825
%{_mandir}/man1/wlfreerdp.1.*
135825
%{_mandir}/man1/xfreerdp.1.*
135825
135825
%files libs
135825
%license LICENSE
135825
%doc README ChangeLog
135825
%{_libdir}/freerdp2/
135825
%{_libdir}/libfreerdp-client2.so.*
135825
%{?_with_server:
135825
%{_libdir}/libfreerdp-server2.so.*
135825
%{_libdir}/libfreerdp-shadow2.so.*
135825
%{_libdir}/libfreerdp-shadow-subsystem2.so.*
135825
}
135825
%{_libdir}/libfreerdp2.so.*
135825
%{_libdir}/libuwac0.so.*
135825
%{_mandir}/man7/wlog.*
135825
135825
%files devel
135825
%{_includedir}/freerdp2
135825
%{_includedir}/uwac0
135825
%{_libdir}/cmake/FreeRDP2
135825
%{_libdir}/cmake/FreeRDP-Client2
135825
%{?_with_server:
135825
%{_libdir}/cmake/FreeRDP-Server2
135825
%{_libdir}/cmake/FreeRDP-Shadow2
135825
}
135825
%{_libdir}/cmake/uwac0
135825
%{_libdir}/libfreerdp-client2.so
135825
%{?_with_server:
135825
%{_libdir}/libfreerdp-server2.so
135825
%{_libdir}/libfreerdp-shadow2.so
135825
%{_libdir}/libfreerdp-shadow-subsystem2.so
135825
}
135825
%{_libdir}/libfreerdp2.so
135825
%{_libdir}/libuwac0.so
135825
%{_libdir}/pkgconfig/freerdp2.pc
135825
%{_libdir}/pkgconfig/freerdp-client2.pc
135825
%{?_with_server:
135825
%{_libdir}/pkgconfig/freerdp-server2.pc
135825
%{_libdir}/pkgconfig/freerdp-shadow2.pc
135825
}
135825
%{_libdir}/pkgconfig/uwac0.pc
135825
135825
%{?_with_server:
135825
%files server
135825
%{_bindir}/freerdp-shadow-cli
135825
%{_mandir}/man1/freerdp-shadow-cli.1.*
135825
}
135825
135825
%files -n libwinpr
135825
%{!?_licensedir:%global license %%doc}
135825
%license LICENSE
135825
%doc README ChangeLog
135825
%{_libdir}/libwinpr2.so.*
135825
%{_libdir}/libwinpr-tools2.so.*
135825
135825
%files -n libwinpr-devel
135825
%{_libdir}/cmake/WinPR2
135825
%{_includedir}/winpr2
135825
%{_libdir}/libwinpr2.so
135825
%{_libdir}/libwinpr-tools2.so
135825
%{_libdir}/pkgconfig/winpr2.pc
135825
%{_libdir}/pkgconfig/winpr-tools2.pc
135825
135825
%changelog
135825
* Wed Feb 20 2019 Ondrej Holy <oholy@redhat.com> - 2.0.0-1.rc4
135825
- Update to 2.0.0-rc4 (#1291254)
135825
135825
* Wed Jan 31 2018 Ondrej Holy <oholy@redhat.com> - 1.0.2-15
135825
- Fix smartcard usage in manpage (#1428041)
135825
135825
* Thu Nov 23 2017 Ondrej Holy <oholy@redhat.com> - 1.0.2-14
135825
- Add FIPS mode support (#1363811)
135825
135825
* Thu Oct 5 2017 Ondrej Holy <oholy@redhat.com> - 1.0.2-13
135825
- Fix NTLM on big endian (#1204742)
135825
- Fix colors on big endian (#1308810)
135825
135825
* Thu Sep 21 2017 Ondrej Holy <oholy@redhat.com> - 1.0.2-12
135825
- Add description for available plugins (#1428041)
135825
135825
* Thu Sep 7 2017 Ondrej Holy <oholy@redhat.com> - 1.0.2-11
135825
- Use boolean types defined stdbool.h (#1404575)
135825
- Prevent stucked keys on focus out and unmap events (#1415069)
135825
- Fix crashes when copying images (#1417536)
135825
- Enable TLS 1.1 connections and later (#1312967)
135825
135825
* Mon Apr 18 2016 Ondrej Holy <oholy@redhat.com> - 1.0.2-10
135825
- Add support for wildcard certificates (#1275241)
135825
135825
* Wed Apr 6 2016 Ondrej Holy <oholy@redhat.com> - 1.0.2-9
135825
- Fix crash if requested bitmap isn't in cache (#1311164)
135825
135825
* Wed Apr 6 2016 Ondrej Holy <oholy@redhat.com> - 1.0.2-8
135825
- Fix crash if pulseaudio device isn't specified (#1067543)
135825
135825
* Fri Jan 15 2016 Ondrej Holy <oholy@redhat.com> - 1.0.2-7
135825
- Fix crashes in pulseaudio
135825
- Resolves: #1210049
135825
135825
* Thu Mar 19 2015 Ondrej Holy <oholy@redhat.com> - 1.0.2-6
135825
- Fix crash during CA verification caused by invalid pointer dereference
135825
- Resolves: #1186916
135825
135825
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.0.2-5
135825
- Mass rebuild 2014-01-24
135825
135825
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.2-4
135825
- Mass rebuild 2013-12-27
135825
135825
* Thu Dec 19 2013 Soren Sandmann <ssp@redhat.com> - 1.0.2-3
135825
- Man page fixes
135825
  - Document that multiple connections don't work (988294)
135825
  - Document the list of plugins (988307, 988308)
135825
135825
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
135825
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
135825
135825
* Wed Jan 02 2013 Mads Kiilerich <mads@kiilerich.com> - 1.0.2-1
135825
- freerdp-1.0.2
135825
135825
* Sun Sep 30 2012 Mads Kiilerich <mads@kiilerich.com> - 1.0.1-7
135825
- merge f17 1.0.1-6 - Backport fix for bug 816692
135825
135825
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
135825
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
135825
135825
* Wed Feb 29 2012 Mads Kiilerich <mads@kiilerich.com> - 1.0.1-5
135825
- Use new upstream tar with standard naming
135825
- Use _isa for subpackage dependencies
135825
135825
* Tue Feb 28 2012 Mads Kiilerich <mads@kiilerich.com> - 1.0.1-4
135825
- Include patch for sending invalid extra data
135825
135825
* Tue Feb 28 2012 Mads Kiilerich <mads@kiilerich.com> - 1.0.1-3
135825
- Install a freedesktop .desktop file and a high-res icon instead of relying on
135825
  _NET_WM_ICON
135825
135825
* Sat Feb 25 2012 Mads Kiilerich <mads@kiilerich.com> - 1.0.1-2
135825
- Explicit build requirement for xmlto - needed for EL6
135825
135825
* Wed Feb 22 2012 Mads Kiilerich <mads@kiilerich.com> - 1.0.1-1
135825
- FreeRDP-1.0.1 - major upstream rewrite and relicensing under Apache license
135825
135825
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-4
135825
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
135825
135825
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-3
135825
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
135825
135825
* Fri Jan 28 2011 Mads Kiilerich <mads@kiilerich.com> - 0.8.2-2
135825
- rebuild on rawhide because of broken dependencies
135825
135825
* Tue Nov 16 2010 Mads Kiilerich <mads@kiilerich.com> - 0.8.2-1
135825
- freerdp-0.8.2
135825
135825
* Mon Nov 08 2010 Mads Kiilerich <mads@kiilerich.com> - 0.8.1-2
135825
- make -devel require pkgconfig
135825
- first official Fedora package
135825
135825
* Sun Nov 07 2010 Mads Kiilerich <mads@kiilerich.com> - 0.8.1-1
135825
- freerdp-0.8.1
135825
135825
* Sat Sep 25 2010 Mads Kiilerich <mads@kiilerich.com> - 0.7.4-2
135825
- hack the generated libtool to not set rpath on x86_64
135825
- configure with alsa explicitly
135825
135825
* Tue Aug 24 2010 Mads Kiilerich <mads@kiilerich.com> - 0.7.4-1
135825
- freerdp-0.7.4
135825
- cleanup of packaging structure
135825
135825
* Wed Jul 28 2010 Mads Kiilerich <mads@kiilerich.com> - 0.7.3-1
135825
- 0.7.3
135825
- fix some minor pylint warnings
135825
135825
* Fri Jul 23 2010 Mads Kiilerich <mads@kiilerich.com> - 0.7.2-2
135825
- 0.7.2
135825
- Address many comments from cwickert:
135825
- - cleanup of old formatting, alignment with spectemplate-lib.spec and
135825
    cwickert spec from #616193
135825
- - add alsa as build requirement
135825
- - remove superfluous configure options and disable static libs
135825
- - add missing rpm groups
135825
135825
* Sun Jun 13 2010 Mads Kiilerich <mads@kiilerich.com> - 0.7.0-1
135825
- First official release, first review request