diff --git a/gnome-boxes.spec b/gnome-boxes.spec index a0a84d8..d66fcd7 100644 --- a/gnome-boxes.spec +++ b/gnome-boxes.spec @@ -11,10 +11,14 @@ ExclusiveArch: x86_64 # libvirt.spec %if 0%{?fedora} %global qemu_kvm_arches %{ix86} x86_64 %{power64} s390x %{arm} aarch64 + %global distributor_name fedora + %global distributor_version %{fedora} %endif %if 0%{?rhel} >= 7 %global qemu_kvm_arches x86_64 %{power64} + %global distributor_name rhel + %global distributor_version %{rhel} %endif %ifarch %{qemu_kvm_arches} @@ -27,7 +31,7 @@ ExclusiveArch: x86_64 Name: gnome-boxes Version: 3.27.92 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A simple GNOME 3 application to access remote or virtual systems License: LGPLv2+ @@ -92,7 +96,14 @@ gnome-boxes lets you easily create, setup, access, and use: %patch0 -p1 %build -%meson +%meson \ +%if %{?distributor_name:1}%{!?distributor_name:0} + -D distributor_name=%{distributor_name} \ +%endif +%if 0%{?distributor_version} + -D distributor_version=%{distributor_version} \ +%endif + %meson_build %install @@ -120,6 +131,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.Boxes.deskt %{_datadir}/metainfo/org.gnome.Boxes.appdata.xml %changelog +* Mon Mar 12 2018 Debarshi Ray - 3.27.92-2 +- Override the user agent for Fedora and RHEL + * Mon Mar 05 2018 Kalev Lember - 3.27.92-1 - Update to 3.27.92 - Switch to the meson build system