## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 8; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.8.1 # https://github.com/hashicorp/serf/issues/568 %if 0%{?__isa_bits} != 32 %bcond_without check %endif # https://github.com/hashicorp/serf %global goipath github.com/hashicorp/serf Version: 0.10.0 %gometa %global common_description %{expand: Serf is a decentralized solution for service discovery and orchestration that is lightweight, highly available, and fault tolerant. Serf runs on Linux, Mac OS X, and Windows. An efficient and lightweight gossip protocol is used to communicate with other nodes. Serf can detect node failures and notify the rest of the cluster. An event system is built on top of Serf, letting you use Serf's gossip protocol to propagate events such as deploys, configuration changes, etc. Serf is completely masterless with no single point of failure. Here are some example use cases of Serf, though there are many others: - Discovering web servers and automatically adding them to a load balancer - Organizing many memcached or redis nodes into a cluster, perhaps with something like twemproxy or maybe just configuring an application with the address of all the nodes - Triggering web deploys using the event system built on top of Serf - Propagating changes to configuration to relevant nodes. - Updating DNS records to reflect cluster changes as they occur. - Much, much more.} %global golicenses LICENSE %global godocs CHANGELOG.md README.md Name: %{goname} Release: %autorelease Summary: Service orchestration and management tool License: MPL-2.0 URL: %{gourl} Source: %{gosource} Patch0: 0001-fix-codec.MsgpackHandle.patch %description %{common_description} %gopkg %prep %goprep %patch -P0 -p1 %generate_buildrequires %go_generate_buildrequires %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check for test in "TestSyslogFilter" \ "TestCommandRun_mDNS" \ ; do awk -i inplace '/^func.*'"$test"'/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck -d serf %endif %files %license LICENSE %doc CHANGELOG.md README.md %{_bindir}/serf %gopkgfiles %changelog ## START: Generated by rpmautospec * Sun Feb 11 2024 Maxwell G - 0.10.0-8 - Rebuild for golang 1.22.0 * Wed Jan 24 2024 Fedora Release Engineering - 0.10.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 0.10.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.10.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 0.10.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Sep 17 2022 Robert-André Mauchin - 0.10.0-2 - Disable serf/ tests - Close: rhbz#2022932 * Sat Sep 17 2022 Robert-André Mauchin - 0.10.0-1 - Update to 0.10.0 - Close: rhbz#2022932 * Wed Aug 10 2022 Maxwell G - 0.9.5-8 - Rebuild to fix FTBFS * Thu Jul 21 2022 Fedora Release Engineering - 0.9.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 0.9.5-6 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sun Jun 19 2022 Robert-André Mauchin - 0.9.5-5 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Thu Jan 20 2022 Fedora Release Engineering - 0.9.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.9.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.9.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Jan 3 10:16:07 CET 2021 Robert-André Mauchin - 0.9.5-1 - Update to 0.9.5 - Close: rhbz#1869463 * Mon Jul 27 2020 Fedora Release Engineering - 0.9.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Robert-André Mauchin - 0.9.3-1 - Update to 0.9.3 * Wed Jan 29 2020 Fedora Release Engineering - 0.8.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 0.8.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Apr 19 17:14:00 CEST 2019 Robert-André Mauchin - 0.8.3-1 - Release 0.8.3 * Fri Feb 01 2019 Fedora Release Engineering - 0.6.4-0.12.20151109gita72c045 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Oct 23 2018 Nicolas Mailhot - 0.6.4-0.11.20151109gita72c045 - redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/ * Fri Jul 13 2018 Fedora Release Engineering - 0.6.4-0.10.20151109gita72c045 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 28 2018 Jan Chaloupka - 0.6.4-0.9.20151109gita72c045 - Autogenerate some parts using the new macros * Wed Feb 07 2018 Fedora Release Engineering - 0.6.4-0.8.gita72c045 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 0.6.4-0.7.gita72c045 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.6.4-0.6.gita72c045 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.6.4-0.5.gita72c045 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jul 21 2016 Fedora Release Engineering - 0.6.4-0.4.gita72c045 - https://fedoraproject.org/wiki/Changes/golang1.7 * Mon Feb 22 2016 Fedora Release Engineering - 0.6.4-0.3.gita72c045 - https://fedoraproject.org/wiki/Changes/golang1.6 * Wed Feb 03 2016 Fedora Release Engineering - 0.6.4-0.2.gita72c045 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jan 13 2016 jchaloup - 0.6.4-0.1.gita72c045 - Bump to upstream a72c0453da2ba628a013e98bf323a76be4aa1443 related: #1250477 * Sat Sep 12 2015 jchaloup - 0-0.4.git4bd6183 - Update to spec-2.1 related: #1250477 * Mon Aug 24 2015 jchaloup - 0-0.3.git4bd6183 - Update spec file to spec-2.0 resolves: #1250477 * Thu Jul 16 2015 jchaloup - 0-0.2.git4bd6183 - Disable command test related: #1212318 * Wed Apr 15 2015 jchaloup - 0-0.1.git4bd6183 - First package for Fedora resolves: #1212318 ## END: Generated by rpmautospec