Package victoriametrics: 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 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | %global import_path github.com/VictoriaMetrics/VictoriaMetrics %global _unpackaged_files_terminate_build 1 Name: victoriametrics Version: 1.70.0 Release: alt1 Summary: The best long-term remote storage for Prometheus Group: Development/Other License: Apache-2.0 Url: https://victoriametrics.com/ Source0: %name-%version.tar Source2: %name.service #ExclusiveArch: %go_arches ExclusiveArch: x86_64 aarch64 BuildRequires(pre): rpm-build-golang %description VictoriaMetrics - the best long-term remote storage for Prometheus %package utils Summary: Utils for %name Group: Development/Other Provides: vmutils = %EVR Provides: vmctl = %EVR Provides: victoriametrics-vmctl = %EVR Obsoletes: victoriametrics-vmctl < 0.5.0 %description utils Utils for VictoriaMetrics: * vmagent is a tiny but brave agent, which helps you collecting metrics from various sources and storing them to VictoriaMetrics or any other Prometheus-compatible storage system that supports remote_write protocol. * vmbackup - creates VictoriaMetrics data backups * vmrestore - restores data from backups %prep %setup -q %build export BUILDDIR="$PWD/.gopath" export IMPORT_PATH="%import_path" export GOPATH="$BUILDDIR:%go_path" %golang_prepare cd .gopath/src/%import_path export VERSION=%version export COMMIT=%commit export BRANCH=altlinux export BUILDINFO_TAG=v%version %make \ victoria-metrics \ vmagent \ vmalert \ vmauth \ vmbackup \ vmrestore \ vmctl %install install -m 0755 -d %buildroot%_bindir #cp victoria-metrics-prod %buildroot%_bindir/victoria-metrics-prod cd .gopath/src/%import_path install -m 0755 bin/victoria-metrics %buildroot%_bindir/victoria-metrics install -m 0755 bin/vmagent %buildroot%_bindir/vmagent install -m 0755 bin/vmalert %buildroot%_bindir/vmalert install -m 0755 bin/vmauth %buildroot%_bindir/vmauth install -m 0755 bin/vmbackup %buildroot%_bindir/vmbackup install -m 0755 bin/vmrestore %buildroot%_bindir/vmrestore install -m 0755 bin/vmctl %buildroot%_bindir/vmctl install -m 0755 -d %buildroot%_sharedstatedir/victoria-metrics-data mkdir -p %buildroot%_unitdir install -m644 %SOURCE2 \ %buildroot%_unitdir/%name.service %pre %_sbindir/groupadd -r -f _%name 2>/dev/null ||: %_sbindir/useradd -r -g _%name -c 'Victoria Metrics Daemon' \ -s /sbin/nologin -d %_sharedstatedir/victoria-metrics-data _%name 2>/dev/null ||: %post %post_service %name %preun %preun_service %name %files %_bindir/victoria-metrics %dir %attr(0755, _%name, _%name) %_sharedstatedir/victoria-metrics-data %_unitdir/%name.service %files utils %_bindir/vm* %changelog * Sat Dec 11 2021 Alexey Shabalin <shaba@altlinux.org> 1.70.0-alt1 - new version 1.70.0 * Fri Jul 30 2021 Alexey Shabalin <shaba@altlinux.org> 1.63.0-alt1 - new version 1.63.0 * Mon Jul 12 2021 Alexey Shabalin <shaba@altlinux.org> 1.62.0-alt1 - new version 1.62.0 * Thu Jun 24 2021 Alexey Shabalin <shaba@altlinux.org> 1.61.1-alt1 - new version 1.61.1 * Sat Mar 06 2021 Alexey Shabalin <shaba@altlinux.org> 1.55.1-alt1 - new version 1.55.1 * Sat Jan 23 2021 Alexey Shabalin <shaba@altlinux.org> 1.52.0-alt1 - new version 1.52.0 * Sun Nov 15 2020 Alexey Shabalin <shaba@altlinux.org> 1.46.0-alt1 - new version 1.46.0 * Sat Sep 19 2020 Alexey Shabalin <shaba@altlinux.org> 1.41.0-alt1 - new version 1.41.0 * Mon Aug 17 2020 Alexey Shabalin <shaba@altlinux.org> 1.40.0-alt1 - new version 1.40.0 * Fri Aug 07 2020 Alexey Shabalin <shaba@altlinux.org> 1.39.3-alt1 - new version 1.39.3 * Sun May 31 2020 Alexey Shabalin <shaba@altlinux.org> 1.36.2-alt1 - 1.36.2. * Mon Apr 20 2020 Alexey Shabalin <shaba@altlinux.org> 1.34.9-alt1 - Initial build. |