Package xe-guest-utilities: Specfile
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 | # spec file for package xe-guest-utilities # Name: xe-guest-utilities Version: 8.4.0 Release: alt1 Summary: Xen Virtual Machine Monitoring Scripts License: %bsd 2-Clause Group: System/Servers Url: https://github.com/xenserver/xe-guest-utilities Packager: Nikolay A. Fetisov <naf@altlinux.org> Source0: %name-%version.tar Source1: vendor.tar Patch0: %name-%version-%release.patch Source2: xe-daemon.service Patch1: xe-guest-utilities-7.30.0-alt-lsb.patch Patch2: xe-guest-utilities-7.30.0-alt-altlinux.patch Patch3: xe-guest-utilities-7.31.0-alt-Makefile.patch Patch4: xe-guest-utilities-7.33.0-alt-init.patch BuildRequires(pre): rpm-build-licenses BuildRequires(pre): rpm-build-golang %description XenServer guest utilities for unix-like operating systems. This package contains a daemon for a guest virtual machine to interact with Citrix Hypervisor and a support utility that submit the distribution version information and IP address to XenStore. %package xenstore Summary: Xen Virtual Machine scripts to interact with XenStore Group: System/Servers Requires: %name = %version-%release %description xenstore XenServer guest utilities for unix-like operating systems. This package contais Utilities for interacting with XenStore from withing a Xen virtual machine. %prep %setup %patch0 -p1 tar xf %SOURCE1 %patch1 %patch2 %patch3 %patch4 %build export GO111MODULE=auto export BUILDDIR="$PWD/build" export GOPATH="$BUILDDIR:%go_path" %make_build %install # xenstore utils: mkdir -p -- %buildroot%_bindir cp build/stage/usr/bin/* %buildroot%_bindir/ # xe-* daemon: mkdir -p -- %buildroot%_sbindir cp build/stage/usr/sbin/* %buildroot%_sbindir/ # SysVinit init file: mkdir -p -- %buildroot%_initdir mv build/stage/etc/init.d/xe-linux-distribution %buildroot%_initdir/xe-daemon sed -e 's/@BRAND_GUEST@/Xen Guest/' -i %buildroot%_initdir/xe-daemon # systemd unit file: mkdir -p -- %buildroot%_unitdir install -m 644 %SOURCE2 %buildroot%_unitdir/ # udev rule: mkdir -p -- %buildroot%_udevrulesdir mv build/stage/etc/udev/rules.d/z10_xen-vcpu-hotplug.rules %buildroot%_udevrulesdir/ %post %post_service xe-daemon %preun %preun_service xe-daemon %files %doc README.md CODEOWNERS LICENSE %_sbindir/xe-* %config %_initdir/xe-daemon %_unitdir/xe-daemon.service %_udevrulesdir/z10* %files xenstore %_bindir/xenstore* %changelog * Wed Mar 27 2024 Nikolay A. Fetisov <naf@altlinux.org> 8.4.0-alt1 - New version * Sat Oct 21 2023 Nikolay A. Fetisov <naf@altlinux.org> 8.3.1-alt1 - New version * Tue Aug 08 2023 Nikolay A. Fetisov <naf@altlinux.org> 7.33.0-alt1 - New version * Sat Dec 10 2022 Nikolay A. Fetisov <naf@altlinux.org> 7.31.0-alt1 - New version * Thu Feb 17 2022 Nikolay A. Fetisov <naf@altlinux.org> 7.30.0-alt1 - Initial build for ALT Linux Sisyphus |