# Parts for vendored dependencies generated by go2rpm 1.17.1 # Disable tests %bcond_with check # https://github.com/influxdata/influxdb %global goipath github.com/influxdata/influxdb %global influx_usr influxdb %global influx_grp influxdb %global influx_db_dir %{_sharedstatedir}/influxdb Version: 1.8.10 %gometa -L -f # Keep in sync Version and main_commit %global main_commit d3be25b251256755d622792ec91826c5670c6106 %global main_branch %(x=%{version}; [[ $x =~ ([0-9]+\.[0-9]+).* ]] && echo "${BASH_REMATCH[1]}") %gometa -L -f Name: golang-github-influxdata-influxdb Release: 5%{?dist} Summary: Scalable datastore for metrics, events, and real-time analytics License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND EPL-1.0 AND ISC AND MIT AND MIT-0 AND MPL-2.0 URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml # It is version from v1.8.4 which does not wait on startup # for http endpoint readdiness. # Fixes https://github.com/influxdata/influxdb/issues/22576 Source3: influxdb.service # Upstream post 1.8.10 patch Patch: https://github.com/influxdata/influxdb/commit/d3be25b251256755d622792ec91826c5670c6106.patch#/golang-github-influxdata-influxdb-fix22754.patch BuildRequires: /usr/bin/git BuildRequires: /usr/bin/bzr BuildRequires: /usr/bin/xmlto BuildRequires: /usr/bin/asciidoc BuildRequires: systemd # influxd-systemd-start.sh requires it Requires: /usr/bin/curl Requires(pre): shadow-utils Obsoletes: golang-github-influxdb-influxdb <= 0.9.5.1 %{?systemd_requires} BuildRequires: go-vendor-tools %description InfluxDB is an open source time series database with no external dependencies. It's useful for recording metrics, events, and performing analytics. Features: - Built-in HTTP API so you don't have to write any server side code to get up and running. - Data can be tagged, allowing very flexible querying. - SQL-like query language. - Simple to install and manage, and fast to get data in and out. - It aims to answer queries in real-time. That means every data point is indexed as it comes in and is immediately available in queries that should return in < 100ms. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on export GO_LDFLAGS="${LDFLAGS} -X main.version=%{version} -X main.branch=%{main_branch} -X main.commit=%{main_commit} " for cmd in influx_stress influxd influx_inspect influx influx_tools; do echo building ${cmd} %gobuild -o %{gobuilddir}/bin/$cmd %{goipath}/cmd/$cmd done # compile manuals %make_build -C man build %install %go_vendor_license_install -c %{S:2} # install manuals %make_install -C man DESTDIR=%{buildroot}%{_prefix} # install binaries install -p -m 0755 -d %{buildroot}%{_bindir} install -p -m 0755 _build/bin/* %{buildroot}%{_bindir}/ # install configuration file install -p -m 0644 -D etc/config.sample.toml %{buildroot}%{_sysconfdir}/influxdb/influxdb.conf # install service file install -p -m 0644 -D %{SOURCE3} %{buildroot}%{_unitdir}/influxdb.service # db home directory install -d -m 0755 -d %{buildroot}%{influx_db_dir} install -d -m 0755 %{buildroot}%{_sysusersdir}/ cat > %{buildroot}%{_sysusersdir}/%{influx_usr}.conf < - 1.8.10-5 - Switch to vendored dependencies to (finally) archive sources. - Add more files to %%doc. * Wed Feb 05 2025 Damian Wrobel - 1.8.10-4 - Rebuild for new Fedora - Provide a sysusers.d file to get user() and group() provides * Tue Oct 29 2024 Damian Wrobel - 1.8.10-3 - Rebuild for new Fedora * Wed Feb 28 2024 Damian Wrobel - 1.8.10-2 - Rebuild for new Fedora * Fri Mar 31 2023 Damian Wrobel - 1.8.10-1 - Update to version 1.8.10 * Fri Sep 24 2021 Damian Wrobel - 1.8.9-3 - Add influxdb.service from 1.8.4 which does not wait on startup * Thu Sep 23 2021 Damian Wrobel - 1.8.9-2 - Add missing Requires curl - Add installation of influxd-systemd-start.sh helper script * Thu Sep 23 2021 Damian Wrobel - 1.8.9-1 - Update to the latest stable version * Tue Mar 02 2021 Damian Wrobel - 1.8.4-2 - Remove BR dep (fix build on >=f33) * Fri Feb 26 2021 Damian Wrobel - 1.8.4-1 - Update to the latest stable version * Mon Dec 21 2020 Damian Wrobel - 1.8.3-1 - Update to the latest stable version * Tue Sep 01 2020 Damian Wrobel - 1.8.2-2 - Fix building on >=f33 * Sun Aug 23 2020 Damian Wrobel - 1.8.2-1 - Update to the latest stable version * Fri Feb 07 2020 Damian Wrobel - 1.7.9-3 - Disable tests on arm platform. * Fri Feb 07 2020 Damian Wrobel - 1.7.9-2 - Stop using forgesetup. * Tue Feb 04 2020 Damian Wrobel - 1.7.9-1 - Update to the latest stable version * Fri Aug 23 2019 Damian Wrobel - 1.7.7-3 - specify main.version * Fri Aug 23 2019 Damian Wrobel - 1.7.7-2 - Update to the latest stable version * Mon Jan 07 2019 Damian Wrobel - 1.7.2-4 - rebuilt * Sun Jan 06 2019 Damian Wrobel - 1.7.2-3 - rebuilt * Sun Jan 06 2019 Damian Wrobel - 1.7.2-2 - rebuilt * Sun Jan 06 2019 Damian Wrobel - 1.7.2-1 - First package for Fedora