|
|
@ -24,6 +24,22 @@
|
|
|
|
%bcond_with run_build_tests
|
|
|
|
%bcond_with run_build_tests
|
|
|
|
%bcond_without include_unit_test
|
|
|
|
%bcond_without include_unit_test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# set following to the result of `git describe --abbrev=128 $commit`
|
|
|
|
|
|
|
|
# This will be used to fill booth_ver, booth_numcomm and booth_sha1.
|
|
|
|
|
|
|
|
# It is important to keep abbrev to get full length sha1! When updating source use
|
|
|
|
|
|
|
|
# `spectool -g booth.spec` to download source.
|
|
|
|
|
|
|
|
%global git_describe_str v1.0-283-g9d4029aa14323a7f3b496215d25e40bd14f33632
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Set this to 1 when rebasing (changing git_describe_str) and increase otherwise
|
|
|
|
|
|
|
|
%global release 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Run shell script to parse git_describe str into version, numcomm and sha1 hash
|
|
|
|
|
|
|
|
%global booth_ver %(s=%{git_describe_str}; vver=${s%%%%-*}; echo ${vver:1})
|
|
|
|
|
|
|
|
%global booth_numcomm %(s=%{git_describe_str}; t=${s#*-}; echo ${t%%%%-*})
|
|
|
|
|
|
|
|
%global booth_sha1 %(s=%{git_describe_str}; t=${s##*-}; echo ${t:1})
|
|
|
|
|
|
|
|
%global booth_short_sha1 %(s=%{booth_sha1}; echo ${s:0:7})
|
|
|
|
|
|
|
|
%global booth_archive_name %{name}-%{booth_ver}-%{booth_numcomm}-%{booth_short_sha1}
|
|
|
|
|
|
|
|
|
|
|
|
## User and group to use for nonprivileged services (should be in sync with pacemaker)
|
|
|
|
## User and group to use for nonprivileged services (should be in sync with pacemaker)
|
|
|
|
%global uname hacluster
|
|
|
|
%global uname hacluster
|
|
|
|
%global gname haclient
|
|
|
|
%global gname haclient
|
|
|
@ -40,12 +56,12 @@
|
|
|
|
%global test_path %{_datadir}/booth/tests
|
|
|
|
%global test_path %{_datadir}/booth/tests
|
|
|
|
|
|
|
|
|
|
|
|
Name: booth
|
|
|
|
Name: booth
|
|
|
|
Version: 1.1
|
|
|
|
Version: %{booth_ver}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: %{booth_numcomm}.%{release}.%{booth_short_sha1}.git%{?dist}
|
|
|
|
Summary: Ticket Manager for Multi-site Clusters
|
|
|
|
Summary: Ticket Manager for Multi-site Clusters
|
|
|
|
License: GPLv2+
|
|
|
|
License: GPLv2+
|
|
|
|
Url: https://github.com/%{github_owner}/%{name}
|
|
|
|
Url: https://github.com/%{github_owner}/%{name}
|
|
|
|
Source0: https://github.com/%{github_owner}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://github.com/%{github_owner}/%{name}/archive/%{booth_short_sha1}/%{booth_archive_name}.tar.gz
|
|
|
|
Patch0: rhel-specific-0001-config-Add-enable-authfile-option.patch
|
|
|
|
Patch0: rhel-specific-0001-config-Add-enable-authfile-option.patch
|
|
|
|
|
|
|
|
|
|
|
|
# direct build process dependencies
|
|
|
|
# direct build process dependencies
|
|
|
@ -177,7 +193,7 @@ Automated tests for running Booth, ticket manager for multi-site clusters.
|
|
|
|
# BUILD #
|
|
|
|
# BUILD #
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{name}-%{version} -S git_am
|
|
|
|
%autosetup -n %{name}-%{booth_sha1} -S git_am
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
./autogen.sh
|
|
|
|
./autogen.sh
|
|
|
@ -295,13 +311,6 @@ VERBOSE=1 make check
|
|
|
|
%{_usr}/lib/ocf/resource.d/booth/sharedrsc
|
|
|
|
%{_usr}/lib/ocf/resource.d/booth/sharedrsc
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Nov 23 2023 Jan Friesse <jfriesse@redhat.com> - 1.1-1
|
|
|
|
|
|
|
|
- Resolves: RHEL-15265
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- New upstream release (RHEL-15265)
|
|
|
|
|
|
|
|
- Upstream releases should now be released regularly, so convert spec
|
|
|
|
|
|
|
|
to use them instead of git snapshots (RHEL-15265)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 21 2022 Jan Friesse <jfriesse@redhat.com> - 1.0-283.1.9d4029a.git
|
|
|
|
* Mon Nov 21 2022 Jan Friesse <jfriesse@redhat.com> - 1.0-283.1.9d4029a.git
|
|
|
|
- Resolves: rhbz#2135865
|
|
|
|
- Resolves: rhbz#2135865
|
|
|
|
|
|
|
|
|
|
|
|