## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.3 # The tests require a running database server %bcond_with check # https://github.com/ClickHouse/clickhouse-go %global goipath github.com/ClickHouse/clickhouse-go Version: 1.5.1 %gometa %global common_description %{expand: Golang driver for ClickHouse.} %global golicenses LICENSE lib/lz4/LICENSE-lz4 %global godocs examples CONTRIBUTING.md README.md Name: %{goname} Release: %autorelease Summary: Golang driver for ClickHouse # Upstream license specification: MIT and BSD-2-Clause # lib/lz4 is under BSD, the rest is MIT License: MIT and BSD URL: %{gourl} Source0: %{gosource} # Move from github.com/cloudflare/golz4 to github.com/DataDog/golz4 Patch0: %{url}/pull/381.patch BuildRequires: golang(github.com/jmoiron/sqlx) %if %{with check} # Tests BuildRequires: golang(github.com/bkaradzic/go-lz4) BuildRequires: golang(github.com/DataDog/golz4) BuildRequires: golang(github.com/pierrec/lz4) BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) %endif %description %{common_description} %gopkg %prep %goprep %autopatch -p1 mv lib/lz4/LICENSE lib/lz4/LICENSE-lz4 %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Thu Jul 21 2022 Fedora Release Engineering 1.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering 1.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Nov 07 2021 Davide Cavalca 1.5.1-1 - Update to 1.5.1; Fixes: RHBZ#2011585 * Wed Sep 22 2021 Fabian Affolter 1.4.8-1 - Update to latest upstream release 1.4.8 (closes rhbz#1999382) * Thu Jul 22 2021 Fedora Release Engineering 1.4.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jul 06 2021 Davide Cavalca 1.4.5-1 - import #1973702