summaryrefslogtreecommitdiffstats
path: root/redis-timeseries.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-07-24 16:26:04 +0200
committerRemi Collet <remi@php.net>2025-07-24 16:26:04 +0200
commit225387adbb4ad9888acd29aec7f99a90124d10ea (patch)
treee67ef79dcad91a0b99138807222005850707949f /redis-timeseries.spec
initial package
Diffstat (limited to 'redis-timeseries.spec')
-rw-r--r--redis-timeseries.spec97
1 files changed, 97 insertions, 0 deletions
diff --git a/redis-timeseries.spec b/redis-timeseries.spec
new file mode 100644
index 0000000..908a1dc
--- /dev/null
+++ b/redis-timeseries.spec
@@ -0,0 +1,97 @@
+# remirepo/fedora spec file for redis-timeseries
+#
+# SPDX-FileCopyrightText: Copyright 2025 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+#
+# Please, preserve the changelog entries
+#
+
+%global cfgname timeseries.conf
+%global libname redistimeseries.so
+# Github forge
+%global gh_vend RedisTimeSeries
+%global gh_proj RedisTimeSeries
+%global forgeurl https://github.com/%{gh_vend}/%{gh_proj}
+#global commit afe5de4ce52bb2b80af565a6f297bf330a65d0d8
+%global tag v%{version}
+# for EL-8 to avoid TAG usage
+%global archivename %{gh_proj}-%{version}
+
+Name: redis-timeseries
+Version: 8.0.1
+Release: 1%{?dist}
+Summary: Time series as native data type
+# Starting with Redis 8, RedisTimeSeries is licensed under your choice of:
+# (i) Redis Source Available License 2.0 (RSALv2);
+# (ii) the Server Side Public License v1 (SSPLv1); or
+# (iii) the GNU Affero General Public License version 3 (AGPLv3).
+License: AGPL-3.0-only
+URL: %{forgeurl}
+Source0: %{name}-%{version}.tgz
+# get full git snapshot with submodules
+Source1: makesrc.sh
+
+BuildRequires: redis-devel
+BuildRequires: make
+BuildRequires: cmake
+BuildRequires: automake
+BuildRequires: autoconf
+BuildRequires: libtool
+BuildRequires: gcc
+BuildRequires: gcc-c++
+BuildRequires: python3
+BuildRequires: python3-pip
+BuildRequires: openssl-devel
+BuildRequires: jq
+
+Provides: bundled(LibMR)
+Provides: bundled(hiredis)
+Provides: bundled(libevent)
+Provides: bundled(RedisModulesSDK)
+Provides: bundled(cpu_features)
+Provides: bundled(fast_double_parser)
+Provides: bundled(readies)
+
+Requires: redis(modules_abi)%{?_isa} = %{redis_modules_abi}
+Requires: (redis >= 8.0 with redis < 8.1)
+Supplements: redis
+
+
+%description
+RedisTimeSeries can hold multiple time series. Each time series is accessible
+via a single Redis key (similar to any other Redis data structure).
+
+
+%prep
+%setup -q -n %{gh_proj}-%{version}
+
+: Configuration file
+cat << EOF | tee %{cfgname}
+# %{gh_proj}
+loadmodule %{redis_modules_dir}/%{libname}
+EOF
+
+
+
+%build
+%global make_flags DEBUG="" VERBOSE=1 LDFLAGS="%{?__global_ldflags}" CFLAGS+="%{optflags} -fPIC"
+make %{?_smp_mflags} %{make_flags} build
+
+
+%install
+install -Dpm755 bin/linux-*-release/%{libname} %{buildroot}%{redis_modules_dir}/%{libname}
+install -Dpm640 %{cfgname} %{buildroot}%{redis_modules_cfg}/%{cfgname}
+
+
+%files
+%license LICENSE.txt
+%license licenses/AGPLv3.txt
+%doc *.md
+%attr(0640, redis, root) %config(noreplace) %{redis_modules_cfg}/%{cfgname}
+%{redis_modules_dir}/%{libname}
+
+
+%changelog
+* Thu Jul 24 2025 Remi Collet <remi@remirepo.net> - 8.0.1-1
+- initial package