From 94dda4ad281caac73447be7a1a479bfeb49f6454 Mon Sep 17 00:00:00 2001
From: Dmitry Kibirev <kdy@picodata.io>
Date: Wed, 7 Dec 2022 11:02:52 +0300
Subject: [PATCH] fix: add package to altlinux repo rename dependency tarantool
 to tarantool-picodata

---
 .gitlab-ci.yml    | 14 ++++++++------
 rpm/picodata.spec |  7 +++++--
 2 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 21194bb11b..916d215a49 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -312,16 +312,18 @@ deploy-job:
     - ssh -o stricthostkeychecking=no ansible@94.26.239.246 "reprepro -b /data/nginx/www/packrepo/tarantool-picodata/debian/ -C main includedeb bullseye ~/.deb/debian/picodata*bullseye*deb; rm ~/.deb/debian/picodata*bullseye*deb"
     - echo "debian packets successfully deployed."
     - echo
-    # Altlinux p10
-    - echo "Deploying altlinux-p10 packet..."
-    - scp -o stricthostkeychecking=no build/picodata*.p10.*rpm ansible@94.26.239.246:/data/nginx/www/packrepo/tarantool-picodata/altlinux/p10/
-    - echo "altlinux-p10 packet successfully deployed."
-    - echo
     # Altlinux p9
+    - ssh -o stricthostkeychecking=no ansible@94.26.239.246 "mkdir -p /tmp/altlinux/"
     - echo "Deploying altlinux-p9 packet..."
-    - scp -o stricthostkeychecking=no build/picodata*.p9.*rpm ansible@94.26.239.246:/data/nginx/www/packrepo/tarantool-picodata/altlinux/p9/
+    - scp -o stricthostkeychecking=no build/picodata*.p9.*rpm ansible@94.26.239.246:/tmp/altlinux/
     - echo "altlinux-p9 packet successfully deployed."
     - echo
+    # Altlinux p10
+    - echo "Deploying altlinux-p10 packet..."
+    - scp -o stricthostkeychecking=no build/picodata*.p10.*rpm ansible@94.26.239.246:/tmp/altlinux/
+    - echo "altlinux-p10 packet successfully deployed."
+    - ssh -o stricthostkeychecking=no ansible@94.26.239.246 "/usr/local/bin/repogen.sh"
+    - echo
   dependencies:
     - pack-ubuntu
     - pack-debian
diff --git a/rpm/picodata.spec b/rpm/picodata.spec
index b3c5542d01..b495590757 100644
--- a/rpm/picodata.spec
+++ b/rpm/picodata.spec
@@ -20,8 +20,8 @@ BuildRequires: cmake3
 %if 0%{?rhel} == 8
 BuildRequires: libstdc++-static
 %endif
-
-Requires: tarantool > 2.8
+   
+Requires: tarantool-picodata
 
 %description
 Picodata is a high performance in-memory NoSQL database and Rust
@@ -66,6 +66,9 @@ make build
 %endif
 
 %changelog
+* Mon Dec  5 2022 <kdy@picodata.io> - 22.07.0%{?dist}
+   - Replace tarantool to tarantool-picodata
+
 * Fri Jul  8 2022 <kdy@picodata.io> - 22.07.0%{?dist}
    - Added Picodata product
 
-- 
GitLab