/[packages]/updates/5/freerdp/current/SPECS/freerdp.spec
ViewVC logotype

Contents of /updates/5/freerdp/current/SPECS/freerdp.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1187215 - (show annotations) (download)
Fri Dec 29 18:44:42 2017 UTC (6 years, 3 months ago) by luigiwalser
File size: 2164 byte(s)
add patch from debian to fix CVE-2017-283[4-9]
1 %define major 1
2 %define libname %mklibname %{name} %{major}
3 %define develname %mklibname %{name} -d
4 %define _disable_ld_no_undefined 1
5
6 Summary: A free remote desktop protocol client
7 Name: freerdp
8 Version: 1.0.2
9 %define subrel 2
10 Release: %mkrel 5
11 License: Apache
12 Group: Networking/Remote access
13 Url: http://freerdp.sourceforge.net/
14 Source0: https://github.com/FreeRDP/FreeRDP/archive/%{version}.tar.gz
15 Patch0: freerdp-1.0.2-CVE-2014-0250.patch
16 Patch1: freerdp-1.0.2-CVE-2014-0791.patch
17 Patch2: freerdp-1.0.2-CVE-2013-4118-and-CVE-2013-4119.patch
18 Patch3: freerdp-1.0.2-CVE-2017-283x.patch
19 BuildRequires: openssl-devel
20 BuildRequires: cups-devel
21 BuildRequires: pulseaudio-devel
22 BuildRequires: libxcursor-devel
23 BuildRequires: pkgconfig(xinerama)
24 BuildRequires: pkgconfig(xkbfile)
25 BuildRequires: pkgconfig(xv)
26 BuildRequires: pkgconfig(x11)
27 BuildRequires: cmake
28 BuildRequires: xmlto
29 BuildRequires: docbook-style-xsl
30
31 %description
32 FreeRDP is a fork of the rdesktop project.
33
34 %package -n %{libname}
35 Summary: Main library for %{name}
36 Group: System/Libraries
37
38 %description -n %{libname}
39 Shared libraries for %{name}.
40
41 %package -n %{develname}
42 Summary: Development files for %{name}
43 Group: Development/C++
44 Requires: %{libname} = %{version}-%{release}
45 Provides: %{name}-devel = %{version}-%{release}
46
47 %description -n %{develname}
48 Development files and headers for %{name}.
49
50 %prep
51 %setup -qn FreeRDP-%{version}
52 %apply_patches
53
54 %build
55 %cmake \
56 -DWITH_CUPS=ON \
57 -DWITH_PULSEAUDIO=ON \
58 -DWITH_X11=ON \
59 -DWITH_XCURSOR=ON \
60 -DWITH_XEXT=ON \
61 -DWITH_XINERAMA=ON \
62 -DWITH_XKBFILE=ON \
63 -DWITH_XV=ON \
64 -DWITH_ALSA=OFF \
65 -DWITH_CUNIT=OFF \
66 -DWITH_DIRECTFB=OFF \
67 -DWITH_FFMPEG=OFF \
68 -DWITH_SSE2=OFF \
69 -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib}
70 %make
71
72 %install
73 %makeinstall_std -C build
74
75 rm -rf %{buildroot}%{_libdir}/%{name}/*.la
76 rm -rf %{buildroot}%{_libdir}/*.la
77
78 %files
79 %doc ChangeLog LICENSE README
80 %{_bindir}/*
81 %{_libdir}/%{name}
82 %{_datadir}/%{name}
83 %{_mandir}/man1/xfreerdp.1.*
84
85 %files -n %{libname}
86 %{_libdir}/*.so.%{major}*
87
88 %files -n %{develname}
89 %{_libdir}/*.so
90 %{_includedir}/%{name}
91 %{_libdir}/pkgconfig/freerdp.pc

  ViewVC Help
Powered by ViewVC 1.1.30