2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-24 10:30:22 +00:00

Handle python mangling of filename consistently for rpm build

This commit is contained in:
Jarrod Johnson 2024-09-04 10:53:05 -04:00
parent ee067fa3c0
commit 7c8f85eb06
2 changed files with 12 additions and 4 deletions

View File

@ -1,12 +1,16 @@
%define name confluent_client
%define version #VERSION#
%define fversion %{lua:
sv, _ = string.gsub("#VERSION#", "[~+]", "-")
print(sv)
}
%define release 1
Summary: Client libraries and utilities for confluent
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
Source0: %{name}-%{fversion}.tar.gz
License: Apache2
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
@ -21,7 +25,7 @@ This package enables python development and command line access to
a confluent server.
%prep
%setup -n %{name}-%{lua: print(string.gsub("#VERSION#", "[~+]", "-"))}
%setup -n %{name}-%{fversion}
%build
%if "%{dist}" == ".el7"

View File

@ -1,12 +1,16 @@
%define name confluent_server
%define version #VERSION#
%define fversion %{lua:
sv, _ = string.gsub("#VERSION#", "[~+]", "-")
print(sv)
}
%define release 1
Summary: confluent systems management server
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
Source0: %{name}-%{fversion}.tar.gz
License: Apache2
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
@ -33,7 +37,7 @@ Url: https://github.com/lenovo/confluent
Server for console management and systems management aggregation
%prep
%setup -n %{name}-%{lua: print(string.gsub("#VERSION#", "[~+]", "-"))}
%setup -n %{name}-%{fversion}
%build
%if "%{dist}" == ".el7"