summaryrefslogtreecommitdiff
path: root/vinagre.spec
blob: 3226ba753f2b6632dd9805e7b7d101fb763de253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Name:           vinagre
Version:        3.22.0
Release:        12
Summary:        A remote desktop viewer for GNOME
License:        GPLv2+
URL:            https://wiki.gnome.org/Apps/Vinagre
Source0:        https://download.gnome.org/sources/%{name}/3.22/%{name}-%{version}.tar.xz

Patch0:         0001-handle-new-freerdp-pkgconfig-name.patch
Patch1:         0002-freerdp2-32bpp.patch

BuildRequires:  pkgconfig(avahi-gobject) pkgconfig(avahi-ui-gtk3) automake autoconf
BuildRequires:  pkgconfig(freerdp2) pkgconfig(gtk+-3.0) pkgconfig(gtk-vnc-2.0) pkgconfig(libsecret-1)
BuildRequires:  pkgconfig(libxml-2.0) pkgconfig(telepathy-glib) pkgconfig(vte-2.91) gnome-common
BuildRequires:  intltool libappstream-glib-devel itstool avahi-ui-gtk3 avahi-gobject
%ifarch %{ix86} x86_64
BuildRequires:  pkgconfig(spice-client-gtk-3.0)
%endif
Requires:       dbus telepathy-filesystem glib2 desktop-file-utils shared-mime-info

%description
This is Vinagre, a remote desktop viewer for the GNOME Desktop.

%package_help

%prep
%autosetup -n %{name}-%{version} -p1

%build
ACLOCAL_FLAGS="$ACLOCAL_FLAGS" USE_GNOME2_MACROS=1 . gnome-autogen.sh
export CFLAGS="%{optflags} -Wno-deprecated-declarations -Wno-format-nonliteral"
%configure \
%ifarch %{ix86} x86_64
           --enable-spice \
%endif
           --enable-rdp --enable-ssh --with-avahi

%make_build

%install
%make_install
%find_lang vinagre --with-gnome

%check
make check

%files -f vinagre.lang
%license COPYING AUTHORS
%{_bindir}/%{name}
%{_datadir}/GConf/gsettings/*.convert
%{_datadir}/applications/*
%{_datadir}/dbus-1/services/*
%{_datadir}/glib*/schemas/*
%{_datadir}/icons/*/*/*/*
%{_datadir}/metainfo/*
%{_datadir}/mime/*/*
%{_datadir}/telepathy/*/*
%{_datadir}/%{name}/*

%files help
%doc NEWS README
%{_datadir}/man/man1/*

%changelog
* Thu Feb 13 2020 daiqianwen <daiqianwen@huawei.com> - 3.22.0-12
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: add buildrequires

* Thu Nov 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.22.0-11
- Package init