Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37869744
en ru br
Репозитории ALT

Группа :: Базы Данных
Пакет: timescaledb-tune

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define import_path github.com/timescale/timescaledb-tune

Name:     timescaledb-tune
Version:  0.12.0
Release:  alt1
Summary:  is a program for tuning a TimescaleDB database
License:  Apache-2.0
Group:    Databases
Url:      https://github.com/timescale/timescaledb-tune

Source:   %name-%version.tar
Patch0:   %name-%version-alt.patch

BuildRequires(pre): rpm-build-golang
BuildRequires: golang

%description
%name is a program for tuning a TimescaleDB database to perform
its best based on the host's resources such as memory and number of CPUs.
It parses the existing `postgresql.conf` file to ensure that the TimescaleDB
extension is appropriately installed and provides recommendations for
memory, parallelism, WAL, and other settings.

%prep
%setup
%patch0 -p1

%build
export BUILDDIR="$PWD/.build"
export IMPORT_PATH="%import_path"
export GOPATH="$BUILDDIR:%go_path"
export GOFLAGS="-mod=vendor"

%golang_prepare

cd .build/src/%import_path
%golang_build ./cmd/timescaledb-tune

%install
export BUILDDIR="$PWD/.build"
export IGNORE_SOURCES=1

%golang_install

%files
%_bindir/*
%doc *.md

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin