freerdp/freerdp.spec

368 lines
12 KiB
RPMSpec
Raw Normal View History

2018-01-16 08:19:46 +00:00
%global commit0 8f52c7ed88f9d6db914eac9721eb6c63c8b4347d
%global date 20180115
2015-11-15 10:56:06 +00:00
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
2016-10-08 13:55:35 +00:00
# Can be rebuilt with FFmpeg/H264 support enabled by passing "--with=ffmpeg",
# "--with=x264" or "--with=openh264" to mock/rpmbuild; or by globally setting
# these variables:
2015-12-13 10:58:02 +00:00
2016-10-08 13:55:35 +00:00
#global _with_ffmpeg 1
#global _with_x264 1
#global _with_openh264 1
2015-12-13 10:58:02 +00:00
Name: freerdp
2015-11-15 10:56:06 +00:00
Version: 2.0.0
2018-01-16 08:19:46 +00:00
Release: 36%{?shortcommit0:.%{date}git%{shortcommit0}}%{?dist}
Epoch: 2
2014-06-18 07:22:04 +00:00
Summary: Free implementation of the Remote Desktop Protocol (RDP)
License: ASL 2.0
2010-11-08 22:37:46 +00:00
URL: http://www.freerdp.com/
2015-11-15 10:56:06 +00:00
Source0: https://github.com/FreeRDP/FreeRDP/archive/%{commit0}/FreeRDP-%{commit0}.tar.gz#/FreeRDP-%{shortcommit0}.tar.gz
2014-06-07 19:53:39 +00:00
Patch0: freerdp-aarch64.patch
2010-11-08 22:37:46 +00:00
2014-06-18 07:22:04 +00:00
BuildRequires: alsa-lib-devel
BuildRequires: cmake >= 2.8
BuildRequires: cups-devel
BuildRequires: gsm-devel
2010-11-08 22:37:46 +00:00
BuildRequires: openssl-devel
2014-06-18 07:22:04 +00:00
BuildRequires: libjpeg-turbo-devel
2010-11-08 22:37:46 +00:00
BuildRequires: libX11-devel
BuildRequires: libXcursor-devel
BuildRequires: libXdamage-devel
2014-06-18 07:22:04 +00:00
BuildRequires: libXext-devel
BuildRequires: libXi-devel
BuildRequires: libXinerama-devel
BuildRequires: libxkbfile-devel
2014-06-18 07:22:04 +00:00
BuildRequires: libXrandr-devel
BuildRequires: libXv-devel
%{?_with_openh264:BuildRequires: openh264-devel}
2015-12-13 10:58:02 +00:00
%{?_with_x264:BuildRequires: x264-devel}
2014-06-18 07:22:04 +00:00
BuildRequires: xmlto
BuildRequires: zlib-devel
2010-11-08 22:37:46 +00:00
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-base-1.0)
BuildRequires: pkgconfig(gstreamer-app-1.0)
BuildRequires: pkgconfig(gstreamer-audio-1.0)
BuildRequires: pkgconfig(gstreamer-fft-1.0)
BuildRequires: pkgconfig(gstreamer-pbutils-1.0)
BuildRequires: pkgconfig(gstreamer-video-1.0)
BuildRequires: pkgconfig(krb5) >= 1.13
BuildRequires: pkgconfig(libpcsclite)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-scanner)
BuildRequires: pkgconfig(xkbcommon)
%{?_with_ffmpeg:
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavutil)
}
2010-11-08 22:37:46 +00:00
Provides: xfreerdp = %{version}-%{release}
2013-09-10 11:58:50 +00:00
Requires: %{name}-libs%{?_isa} = %{?epoch}:%{version}-%{release}
Requires: libwinpr%{?_isa} = %{?epoch}:%{version}-%{release}
2010-11-08 22:37:46 +00:00
%description
2014-06-18 07:22:04 +00:00
The xfreerdp Remote Desktop Protocol (RDP) client from the FreeRDP project.
2010-11-08 22:37:46 +00:00
2014-06-18 07:22:04 +00:00
xfreerdp can connect to RDP servers such as Microsoft Windows machines, xrdp and
VirtualBox.
2010-11-08 22:37:46 +00:00
%package libs
Summary: Core libraries implementing the RDP protocol
Requires: libwinpr%{?_isa} = %{?epoch}:%{version}-%{release}
Obsoletes: %{name}-plugins < 1:1.1.0
2014-06-18 07:22:04 +00:00
Provides: %{name}-plugins = %{?epoch}:%{version}-%{release}
2010-11-08 22:37:46 +00:00
%description libs
libfreerdp-core can be embedded in applications.
2010-11-08 22:37:46 +00:00
libfreerdp-channels and libfreerdp-kbd might be convenient to use in X
applications together with libfreerdp-core.
2010-11-08 22:37:46 +00:00
libfreerdp-core can be extended with plugins handling RDP channels.
2010-11-08 22:37:46 +00:00
%package devel
Summary: Development files for %{name}
2013-09-10 11:58:50 +00:00
Requires: %{name}-libs%{?_isa} = %{?epoch}:%{version}-%{release}
2010-11-08 22:37:46 +00:00
Requires: pkgconfig
2014-06-18 07:22:04 +00:00
Requires: cmake >= 2.8
2010-11-08 22:37:46 +00:00
%description devel
2014-06-18 07:22:04 +00:00
The %{name}-devel package contains libraries and header files for developing
applications that use %{name}-libs.
2015-03-13 01:01:30 +00:00
%package server
Summary: Server support for %{name}
%description server
The %{name}-server package contains servers which can export a desktop via
the RDP protocol.
%package -n libwinpr
2014-06-18 07:22:04 +00:00
Summary: Windows Portable Runtime
Provides: %{name}-libwinpr = %{?epoch}:%{version}-%{release}
Obsoletes: %{name}-libwinpr < %{?epoch}:%{version}-%{release}
2014-06-18 07:22:04 +00:00
%description -n libwinpr
2014-06-18 07:22:04 +00:00
WinPR provides API compatibility for applications targeting non-Windows
environments. When on Windows, the original native API is being used instead of
the equivalent WinPR implementation, without having to modify the code using it.
%package -n libwinpr-devel
2014-06-18 07:22:04 +00:00
Summary: Windows Portable Runtime development files
Requires: libwinpr%{?_isa} = %{?epoch}:%{version}-%{release}
2014-06-18 07:22:04 +00:00
Requires: pkgconfig
Requires: cmake >= 2.8
2010-11-08 22:37:46 +00:00
%description -n libwinpr-devel
2014-06-18 07:22:04 +00:00
The %{name}-libwinpr-devel package contains libraries and header files for
developing applications that use %{name}-libwinpr.
2010-11-08 22:37:46 +00:00
%prep
2015-11-15 10:56:06 +00:00
%setup -qn FreeRDP-%{commit0}
2014-06-07 19:53:39 +00:00
%patch0 -p1 -b .aarch64
2010-11-08 22:37:46 +00:00
2014-06-18 07:22:04 +00:00
# Rpmlint fixes
find . -name "*.h" -exec chmod 664 {} \;
find . -name "*.c" -exec chmod 664 {} \;
2010-11-08 22:37:46 +00:00
%build
2013-12-26 01:33:04 +00:00
%cmake %{?_cmake_skip_rpath} \
2014-06-18 07:22:04 +00:00
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
-DWITH_ALSA=ON \
-DWITH_CUPS=ON \
2016-10-08 13:55:35 +00:00
-DWITH_CHANNELS=ON -DBUILTIN_CHANNELS=OFF \
-DWITH_CLIENT=ON \
2014-06-18 07:22:04 +00:00
-DWITH_DIRECTFB=OFF \
2016-10-08 13:55:35 +00:00
-DWITH_FFMPEG=%{?_with_ffmpeg:ON}%{?!_with_ffmpeg:OFF} \
2014-06-18 07:22:04 +00:00
-DWITH_GSM=ON \
-DWITH_GSSAPI=ON \
-DWITH_GSTREAMER_1_0=ON -DWITH_GSTREAMER_0_10=OFF \
-DGSTREAMER_1_0_INCLUDE_DIRS=%{_includedir}/gstreamer-1.0 \
2014-06-18 07:22:04 +00:00
-DWITH_IPP=OFF \
-DWITH_JPEG=ON \
2015-11-15 10:56:06 +00:00
-DWITH_MANPAGES=ON \
2016-10-08 13:55:35 +00:00
-DWITH_OPENH264=%{?_with_openh264:ON}%{?!_with_openh264:OFF} \
2014-06-18 07:22:04 +00:00
-DWITH_OPENSSL=ON \
-DWITH_PCSC=ON \
-DWITH_PULSE=ON \
-DWITH_SERVER=ON -DWITH_SERVER_INTERFACE=ON \
2015-11-15 10:56:06 +00:00
-DWITH_WAYLAND=ON \
2014-06-18 07:22:04 +00:00
-DWITH_X11=ON \
2016-10-08 13:55:35 +00:00
-DWITH_X264=%{?_with_x264:ON}%{?!_with_x264:OFF} \
2014-06-18 07:22:04 +00:00
-DWITH_XCURSOR=ON \
-DWITH_XEXT=ON \
-DWITH_XKBFILE=ON \
-DWITH_XI=ON \
-DWITH_XINERAMA=ON \
-DWITH_XRENDER=ON \
2016-10-08 13:55:35 +00:00
-DWITH_XTEST=OFF \
2014-06-18 07:22:04 +00:00
-DWITH_XV=ON \
-DWITH_ZLIB=ON \
2013-09-01 19:14:39 +00:00
%ifarch x86_64
2014-06-18 07:22:04 +00:00
-DWITH_SSE2=ON \
%else
-DWITH_SSE2=OFF \
2013-09-01 19:14:39 +00:00
%endif
%ifarch armv7hl
2014-06-18 07:22:04 +00:00
-DARM_FP_ABI=hard \
-DWITH_NEON=OFF \
%endif
%ifarch armv7hnl
2014-06-18 07:22:04 +00:00
-DARM_FP_ABI=hard \
-DWITH_NEON=ON \
%endif
%ifarch armv5tel armv6l armv7l
2014-06-18 07:22:04 +00:00
-DARM_FP_ABI=soft \
-DWITH_NEON=OFF \
%endif
2014-06-18 07:22:04 +00:00
.
2010-11-08 22:37:46 +00:00
make %{?_smp_mflags}
2016-05-20 15:31:06 +00:00
pushd winpr/tools/makecert-cli
make %{?_smp_mflags}
popd
2010-11-08 22:37:46 +00:00
%install
%make_install
2017-04-13 15:39:19 +00:00
%make_install COMPONENT=tools
2015-11-15 16:26:18 +00:00
find %{buildroot} -name "*.a" -delete
2010-11-08 22:37:46 +00:00
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%post -n libwinpr -p /sbin/ldconfig
2010-11-08 22:37:46 +00:00
%postun -n libwinpr -p /sbin/ldconfig
2013-09-03 22:37:46 +00:00
2010-11-08 22:37:46 +00:00
%files
%{_bindir}/winpr-hash
2015-12-13 10:42:41 +00:00
%{_bindir}/winpr-makecert
2015-11-15 10:56:06 +00:00
%{_bindir}/wlfreerdp
2010-11-08 22:37:46 +00:00
%{_bindir}/xfreerdp
%{_mandir}/man1/winpr-hash.1.*
%{_mandir}/man1/winpr-makecert.1.*
%{_mandir}/man1/wlfreerdp.1.*
%{_mandir}/man1/xfreerdp.1.*
2010-11-08 22:37:46 +00:00
%files libs
2015-11-15 10:56:06 +00:00
%license LICENSE
%doc README ChangeLog
%{_libdir}/freerdp2/
%{_libdir}/libfreerdp-client2.so.*
%{_libdir}/libfreerdp-server2.so.*
%{_libdir}/libfreerdp-shadow2.so.*
%{_libdir}/libfreerdp-shadow-subsystem2.so.*
%{_libdir}/libfreerdp2.so.*
%{_libdir}/libuwac0.so.*
2016-12-03 10:10:12 +00:00
%{_mandir}/man7/wlog.*
2010-11-08 22:37:46 +00:00
%files devel
%{_includedir}/freerdp2
%{_includedir}/uwac0
%{_libdir}/cmake/FreeRDP2
%{_libdir}/cmake/FreeRDP-Client2
%{_libdir}/cmake/FreeRDP-Server2
%{_libdir}/cmake/FreeRDP-Shadow2
%{_libdir}/cmake/uwac0
%{_libdir}/libfreerdp-client2.so
%{_libdir}/libfreerdp-server2.so
%{_libdir}/libfreerdp-shadow2.so
%{_libdir}/libfreerdp-shadow-subsystem2.so
%{_libdir}/libfreerdp2.so
%{_libdir}/libuwac0.so
%{_libdir}/pkgconfig/freerdp2.pc
%{_libdir}/pkgconfig/freerdp-client2.pc
%{_libdir}/pkgconfig/freerdp-server2.pc
%{_libdir}/pkgconfig/freerdp-shadow2.pc
%{_libdir}/pkgconfig/uwac0.pc
2010-11-08 22:37:46 +00:00
2015-03-13 01:01:30 +00:00
%files server
%{_bindir}/freerdp-shadow-cli
%{_mandir}/man1/freerdp-shadow-cli.1.*
2015-03-13 01:01:30 +00:00
%files -n libwinpr
2015-11-15 10:56:06 +00:00
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc README ChangeLog
%{_libdir}/libwinpr2.so.*
%{_libdir}/libwinpr-tools2.so.*
2014-06-18 07:22:04 +00:00
%files -n libwinpr-devel
%{_libdir}/cmake/WinPR2
%{_includedir}/winpr2
%{_libdir}/libwinpr2.so
%{_libdir}/libwinpr-tools2.so
%{_libdir}/pkgconfig/winpr2.pc
%{_libdir}/pkgconfig/winpr-tools2.pc
2010-11-08 22:37:46 +00:00
%changelog
2018-01-16 08:19:46 +00:00
* Tue Jan 16 2018 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-36.20180115git8f52c7e
- Update to latest snapshot.
* Wed Dec 20 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-35.20171220gitbfe8359
- Update to latest snapshot post 2.0.0rc1.
2017-09-11 13:16:09 +00:00
* Mon Sep 11 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-34.20170831git3b83526
- Update to latest snapshot.
- Trim changelog.
2017-08-07 08:30:17 +00:00
* Mon Aug 07 2017 Björn Esser <besser82@fedoraproject.org> - 2:2.0.0-33.20170724gitf8c9f43
- Rebuilt for AutoReq cmake-filesystem
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.0.0-32.20170724gitf8c9f43
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-31.20170724gitf8c9f43
- Update to latest snapshot, Talos security fixes.
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.0.0-30.20170710gitf580bea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-07-12 14:44:26 +00:00
* Wed Jul 12 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-29.20170710gitf580bea
- Update to latest snapshot.
2017-06-26 09:17:00 +00:00
* Mon Jun 26 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-28.20170623git9904c32
- Update to latest snapshot.
2017-05-15 10:04:47 +00:00
* Mon May 15 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-27.20170512gitb1df835
- Update to latest snapshot.
2017-04-20 06:29:27 +00:00
* Thu Apr 20 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-26.20170419gitbfcf8e7
- Update to latest 2.0 snapshot.
2017-04-13 15:39:19 +00:00
* Thu Apr 13 2017 Orion Poplawski <orion@cora.nwra.com> - 2:2.0.0-25.20170317git8c68761
- Install tools via make install
2017-03-22 10:37:19 +00:00
* Wed Mar 22 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-24.20170317git8c68761
- Update to latest snapshot.
* Mon Mar 06 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-23.20170302git210de68
- Remove shared libxfreerdp-client shared library.
* Thu Mar 02 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-22.20170302git210de68
- Move libxfreerdp-client shared object into devel subpackage.
* Thu Mar 02 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-21.20170302git210de68
- Update to latest snapshot.
- Update build requirements, tune build options.
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.0.0-20.20161228git90877f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2017-01-09 08:22:31 +00:00
* Mon Jan 09 2017 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-19.20161228git90877f5
- Update to latest snapshot.
2016-12-03 09:33:54 +00:00
* Sat Dec 03 2016 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-18.20161202gitd72ff5d
- Update to latest snapshot.
2016-11-04 10:05:33 +00:00
* Fri Nov 04 2016 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-17.20161103gitea24c1f
- Update to latest snapshot.
2016-10-20 13:31:40 +00:00
* Thu Oct 20 2016 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-16.20161020gita6f4117
- Update to latest snapshot.
2016-10-14 09:23:49 +00:00
* Fri Oct 14 2016 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-15.20161014git9adc132
- Update to latest snapshot.
2016-10-08 13:55:35 +00:00
* Sat Oct 08 2016 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-14.20161006git267dea9
- Update build options.
2016-10-08 13:26:49 +00:00
* Sat Oct 08 2016 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-13.20160909git267dea9
- Update to latest snapshot.
2016-09-20 12:10:09 +00:00
* Tue Sep 20 2016 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-12.20160909git1855e36
- Update to latest snapshot, update release to follow packaging guidelines.
2016-08-12 07:20:43 +00:00
* Fri Aug 12 2016 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-11.git.5b2455f
- Update to latest snapshot.
2016-06-21 09:29:26 +00:00
* Tue Jun 21 2016 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-10.git.e86f7c2
- Update to latest sources.
2016-06-07 12:59:07 +00:00
* Tue Jun 07 2016 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-9.git.aa15327
- Update to latest sources.
2016-05-24 15:26:47 +00:00
* Tue May 24 2016 David Woodhouse <dwmw2@infradead.org> - 2:2.0.0-8.git.53de4b8
- Update to latest sources
2016-05-20 15:31:06 +00:00
* Fri May 20 2016 David Woodhouse <dwmw2@infradead.org> - 2:2.0.0-7.git.aeabb95
- Update to latest sources, adjust set of exported libraries.
* Thu Apr 21 2016 Simone Caronni <negativo17@gmail.com> - 2:2.0.0-6.git.ca2d015
- Update to latest sources, adjust path of libraries.
- Add OpenH264 conditional.
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2:2.0.0-5.git.b02943a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild