Пакет chronograf: 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 139 | %global import_path github.com/influxdata/chronograf %global commit 2eca970c8a2158ca89575c28e673c8baa6886767 %global __find_debuginfo_files %nil %global _unpackaged_files_terminate_build 1 %set_verify_elf_method unresolved=no %add_debuginfo_skiplist %go_root %_bindir %brp_strip_none %_bindir/* Name: chronograf Version: 1.3.10.0 Release: alt1%ubt Summary: Open source framework for processing, monitoring, and alerting on time series data Group: Development/Other License: MIT URL: https://github.com/influxdata/chronograf Source0: %name-%version.tar Source100: %name.sysconfig Source101: %name.logrotate Source102: %name.init Source103: %name.service Source104: %name.tmpfiles #ExclusiveArch: %go_arches ExclusiveArch: x86_64 BuildRequires(pre): rpm-build-golang rpm-build-ubt BuildRequires: npm yarn BuildRequires: /proc %description Open source framework for processing, monitoring, and alerting on time series data. %prep %setup -q %build # Important!!! # The %%builddir/.gopath created by the hands. It contains the dependencies required for your project. # This is necessary because the gdm cannot work with the vendor directory and always tries to update # all dependencies from the external servers. So, we can't use Makefile to compile. # # $ export GOPATH="$PWD/.gopath" # $ git rm -rf -- "$GOPATH" # $ make # $ find $GOPATH -type d -name .git |xargs rm -rf -- # $ git add "$GOPATH" # ##cd ui && yarn --no-progress --no-emoji --verbose export BUILDDIR="$PWD/.gopath" export IMPORT_PATH="%import_path" export GOPATH="$BUILDDIR:%go_path:$PWD" export PATH="$PATH:$BUILDDIR/bin" export VERSION=%version export COMMIT=%commit export BRANCH=altlinux %golang_prepare pushd .gopath/src/%import_path make popd #%golang_build cmd/* #go install -ldflags "-X main.version=$VERSION -X main.commit=$COMMIT -X main.branch=$BRANCH" ./... %install export BUILDDIR="$PWD/.gopath" #export GOPATH="%go_path" export IMPORT_PATH="%import_path" export GOPATH="$BUILDDIR:%go_path:$PWD" pushd .gopath/src/%import_path go install github.com/influxdata/chronograf/cmd/chronograf popd install -p -D -m 755 $BUILDDIR/bin/chronograf %buildroot%_bindir/%name install -d -m 755 %buildroot%_datadir/%name cp -pr canned %buildroot%_datadir/%name #%golang_install #rm -rf -- %buildroot%_datadir # Setup directories install -d -m 755 %buildroot%_logdir/%name install -d -m 755 %buildroot%_sharedstatedir/%name # Install pid directory install -d -m 775 %buildroot%_runtimedir/%name # Install sysconfig install -p -D -m 640 %SOURCE100 %buildroot%_sysconfdir/sysconfig/%name # Install logrotate install -p -D -m 644 %SOURCE101 %buildroot%_logrotatedir/%name # Install sysv init scripts install -p -D -m 755 %SOURCE102 %buildroot%_initdir/%name # Install systemd unit services install -p -D -m 644 %SOURCE103 %buildroot%_unitdir/%name.service install -p -D -m 644 %SOURCE104 %buildroot%_tmpfilesdir/%name.conf %pre %_sbindir/groupadd -r -f %name 2>/dev/null ||: %_sbindir/useradd -r -g %name -G %name -c 'Chronograf Daemon' \ -s /sbin/nologin -d %_sharedstatedir/%name %name 2>/dev/null ||: %post %post_service %name %preun %preun_service %name %files %_bindir/%name %_initdir/%name %_unitdir/%name.service %_tmpfilesdir/%name.conf %config(noreplace) %_logrotatedir/%name %config(noreplace) %attr(0640, root, %name) %_sysconfdir/sysconfig/%name %dir %attr(0770, root, %name) %_logdir/%name %dir %attr(0775, root, %name) %_runtimedir/%name %dir %attr(0750, %name, %name) %_sharedstatedir/%name %_datadir/%name %changelog * Mon Oct 30 2017 Alexey Shabalin <shaba@altlinux.ru> 1.3.10.0-alt1%ubt - 1.3.10.0 * Mon Aug 28 2017 Alexey Shabalin <shaba@altlinux.ru> 1.3.7.0-alt1%ubt - 1.3.7.0 * Tue Aug 08 2017 Alexey Shabalin <shaba@altlinux.ru> 1.3.5.0-alt1%ubt - rebuild with Universal Branch Tag - fix run with sysv init script * Wed Jul 26 2017 Alexey Shabalin <shaba@altlinux.ru> 1.3.5.0-alt1 - First build for ALTLinux. |