-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgnome-boxes.spec
140 lines (125 loc) · 4.35 KB
/
gnome-boxes.spec
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# TODO
# - Requires: qemu is too much (pulls all arches)
Summary: A simple GNOME 3 application to access remote or virtual systems
Summary(pl.UTF-8): Prosta aplikacja GNOME 3 do dostępu do systemów zdalnych lub wirtualnych
Name: gnome-boxes
Version: 47.0
Release: 1
License: LGPL v2+
Group: X11/Applications
Source0: https://download.gnome.org/sources/gnome-boxes/47/%{name}-%{version}.tar.xz
# Source0-md5: 559cebd172058d60f83dc180c4a6dcd6
Patch0: no-cache-update.patch
URL: https://wiki.gnome.org/Apps/Boxes
BuildRequires: appstream-glib
BuildRequires: gettext-tools
BuildRequires: glib2-devel >= 1:2.50
BuildRequires: gobject-introspection-devel >= 0.10.0
BuildRequires: gtk+3-devel >= 3.22.20
BuildRequires: gtk-webkit4.1-devel >= 2.36.0
BuildRequires: libarchive-devel >= 3.0.0
BuildRequires: libhandy1-devel >= 1.5.0
BuildRequires: libosinfo-devel >= 1.10.0
BuildRequires: libportal-devel >= 0.7
BuildRequires: libportal-gtk3-devel >= 0.7
BuildRequires: libsecret-devel
BuildRequires: libsoup3-devel >= 3.0.0
BuildRequires: libusb-devel >= 1.0.9
BuildRequires: libvirt-glib-devel >= 5.0.0
BuildRequires: libxml2-devel >= 1:2.7.8
BuildRequires: meson >= 0.59.0
BuildRequires: ninja >= 1.5
BuildRequires: pkgconfig >= 1:0.22
BuildRequires: rpmbuild(macros) >= 1.736
BuildRequires: spice-gtk-devel >= 0.32
BuildRequires: tracker3-devel >= 3.0
BuildRequires: udev-glib-devel >= 1:165
BuildRequires: vte-devel >= 0.40.2
BuildRequires: vala >= 2:0.24.0.65
BuildRequires: vala-libhandy1 >= 1.5.0
BuildRequires: vala-libosinfo >= 1.10.0
BuildRequires: vala-libportal >= 0.7
BuildRequires: vala-libportal-gtk3 >= 0.7
BuildRequires: vala-libvirt-glib >= 5.0.0
BuildRequires: vala-spice-gtk >= 0.32
BuildRequires: vala-tracker3 >= 3.0
BuildRequires: vala-vte >= 0.40.2
BuildRequires: yelp-tools
Requires(post,postun): desktop-file-utils
Requires(post,postun): glib2 >= 1:2.50
Requires(post,postun): gtk-update-icon-cache
Requires: glib2 >= 1:2.50
Requires: gtk+3 >= 3.22.20
Requires: gtk-webkit4.1 >= 2.36.0
Requires: hicolor-icon-theme
Requires: libarchive >= 3.0.0
Requires: libhandy1 >= 1.5.0
Requires: libosinfo >= 1.10.0
Requires: libportal >= 0.7
Requires: libportal-gtk3 >= 0.7
Requires: libsoup3 >= 3.0.0
Requires: libusb >= 1.0.9
Requires: libvirt-glib >= 5.0.0
Requires: libvirt-utils
Requires: libxml2 >= 1:2.7.8
Requires: qemu >= 1.3
Requires: spice-gtk >= 0.32
Requires: tracker3 >= 3.0
Requires: udev-glib >= 1:165
Requires: vte >= 0.40.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# private libraries
%define _noautoprovfiles %{_libdir}/gnome-boxes
%define _noautoreq libgovf-0.1.so
%description
gnome-boxes is a simple GNOME 3 application to access remote or
virtual systems.
%description -l pl.UTF-8
gnome-boxes to prosta aplikacja GNOME 3 służąca do dostępu do
systemów zdalnych lub wirtualnych.
%prep
%setup -q
%patch -P 0 -p1
%build
%meson build \
-Ddistributor_name='pld-linux' \
-Ddistributor_version='%{pld_release}'
%ninja_build -C build
%install
rm -rf $RPM_BUILD_ROOT
%ninja_install -C build
# imported subprojects, not for external use
%{__rm} -r $RPM_BUILD_ROOT%{_includedir}/gnome-boxes/govf
%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gnome-boxes/pkgconfig
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/gnome-boxes/gir-1.0
# not supported by glibc (as of 2.39)
%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie
%find_lang %{name} --with-gnome
%clean
rm -rf $RPM_BUILD_ROOT
%post
%glib_compile_schemas
%update_icon_cache hicolor
%update_desktop_database_post
%postun
%glib_compile_schemas
%update_icon_cache hicolor
%update_desktop_database_postun
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc NEWS README.md copyright
%attr(755,root,root) %{_bindir}/gnome-boxes
%dir %{_libdir}/gnome-boxes
%attr(755,root,root) %{_libdir}/gnome-boxes/libgovf-0.1.so
%dir %{_libdir}/gnome-boxes/girepository-1.0
%{_libdir}/gnome-boxes/girepository-1.0/Govf-0.1.typelib
%attr(755,root,root) %{_libexecdir}/gnome-boxes-search-provider
%{_datadir}/dbus-1/services/org.gnome.Boxes.service
%{_datadir}/dbus-1/services/org.gnome.Boxes.SearchProvider.service
%{_datadir}/glib-2.0/schemas/org.gnome.boxes.gschema.xml
%{_datadir}/gnome-boxes
%{_datadir}/gnome-shell/search-providers/org.gnome.Boxes.SearchProvider.ini
%{_datadir}/metainfo/org.gnome.Boxes.metainfo.xml
%{_desktopdir}/org.gnome.Boxes.desktop
%{_iconsdir}/hicolor/scalable/apps/org.gnome.Boxes.svg
%{_iconsdir}/hicolor/symbolic/apps/org.gnome.Boxes-symbolic.svg