From d525bf96f496efa09eebe79d284e61c9ce570b69 Mon Sep 17 00:00:00 2001 From: Mergen Imeev Date: Mon, 4 May 2026 10:36:12 +0300 Subject: [PATCH] Prepare rpm/cv.spec for RPM building This patch prepares the rpm/cv.spec for use when building RPM package. --- CMakeLists.txt | 2 +- rpm/cv.spec | 36 +++++++++++++++++++++++++++++++ rpm/tarantool-ckit.spec | 47 ----------------------------------------- 3 files changed, 37 insertions(+), 48 deletions(-) create mode 100644 rpm/cv.spec delete mode 100644 rpm/tarantool-ckit.spec diff --git a/CMakeLists.txt b/CMakeLists.txt index 2844c56..d872128 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) +cmake_minimum_required(VERSION 3.5 FATAL_ERROR) # Forbid in-source builds to avoid .so files # polluting the source tree and confusing LUA_CPATH. diff --git a/rpm/cv.spec b/rpm/cv.spec new file mode 100644 index 0000000..cd7ea07 --- /dev/null +++ b/rpm/cv.spec @@ -0,0 +1,36 @@ +Name: cv +Version: 1.0.0 +Release: 1%{?dist} +Summary: Fast OpenAPI 3.1 Compatible Schema Validator for Tarantool +Group: Applications/Databases +License: BSD +URL: https://github.com/tarantool/c-validator +Source0: %{name}-%{version}.tar.gz +BuildRequires: cmake >= 3.5 +BuildRequires: gcc >= 13.2.1 +BuildRequires: tarantool-devel >= 3.7.0 +Requires: tarantool >= 3.7.0 + +%description +Fast OpenAPI 3.1 Compatible Schema Validator for Tarantool. + +%prep +%setup -q -n %{name}-%{version} + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%files +%{_libdir}/tarantool/*/ +%{_datadir}/tarantool/*/ +%doc README.md +%{!?_licensedir:%global license %doc} +%license LICENSE AUTHORS + +%changelog +* Mon May 4 2026 Mergen Imeev 1.0.0-1 +- Initial version of the RPM spec diff --git a/rpm/tarantool-ckit.spec b/rpm/tarantool-ckit.spec deleted file mode 100644 index 9bf97af..0000000 --- a/rpm/tarantool-ckit.spec +++ /dev/null @@ -1,47 +0,0 @@ -Name: tarantool-ckit -Version: 2.0.0 -Release: 1%{?dist} -Summary: C module template for Tarantool -Group: Applications/Databases -License: BSD -URL: https://github.com/tarantool/modulekit -Source0: ckit-%{version}.tar.gz -BuildRequires: cmake >= 2.8 -BuildRequires: gcc >= 4.5 -BuildRequires: tarantool-devel >= 1.6.8.0 -BuildRequires: msgpuck-devel >= 1.0.0 -BuildRequires: /usr/bin/prove -Requires: tarantool >= 1.6.8.0 - -%description -This package provides C module template for Tarantool. - -%prep -%setup -q -n %{name}-%{version} - -%build -%cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -make %{?_smp_mflags} - -%check -make %{?_smp_mflags} check - -%install -%make_install - -%files -%{_libdir}/tarantool/*/ -%{_datarootdir}/tarantool/*/ -%doc README.md -%{!?_licensedir:%global license %doc} -%license LICENSE AUTHORS - -%changelog -* Mon Feb 27 2017 Roman Tsisyk 2.0.0-1 -- Split package into luakit and ckit. - -* Wed Feb 17 2016 Roman Tsisyk 1.0.1-1 -- Fix to comply Fedora Package Guidelines - -* Wed Sep 16 2015 Roman Tsisyk 1.0.0-1 -- Initial version of the RPM spec