From 6d360e72e25e015ff7e3048817f73e3d970d4a37 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Mon, 14 Mar 2022 18:56:35 +0300 Subject: [PATCH] Buld with gear/rpmbb instead of tricks --- .gear/rules | 1 + build.sh | 17 ----------------- kometa-std-desktop.spec | 2 +- 3 files changed, 2 insertions(+), 18 deletions(-) create mode 100644 .gear/rules delete mode 100755 build.sh diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..86ed727 --- /dev/null +++ b/.gear/rules @@ -0,0 +1 @@ +tar: . name=kometa-std-desktop-@version@ base=kometa-std-desktop-@version@ diff --git a/build.sh b/build.sh deleted file mode 100755 index 3000f46..0000000 --- a/build.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -mkdir -p ~/RPM/SOURCES -mkdir -p ~/RPM/SPECS -for i in $(ls *.spec) -do - v=$(cat $i | grep Version | cut -c 9- | sed 's/ *//g') - n=$(basename -s .spec $i) - d=$n-$v - if [ -d $n ]; then - cp -fr $n $d - tar -cvf $d.tar $d - mv -f $d.tar ~/RPM/SOURCES/ - rm -rf $d - fi - cp -f $i ~/RPM/SPECS/ - rpm -ba ~/RPM/SPECS/$i -done diff --git a/kometa-std-desktop.spec b/kometa-std-desktop.spec index 38e1c62..5ac9fbc 100644 --- a/kometa-std-desktop.spec +++ b/kometa-std-desktop.spec @@ -22,7 +22,7 @@ Default settings for applications Все изображения логотипа затираются и используются изображения логотипа Комета. %prep -%setup +%setup -n %name-%version/kometa-std-desktop %install %define skeldir "/etc/skel"