## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; 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 %bcond_without check # https://github.com/nats-io/nats-server %global goipath github.com/nats-io/nats-server Version: 2.10.9 %gometa -f %global goname nats-server %global goaltipaths github.com/nats-io/gnatsd github.com/nats-io/nats-server/v2 %global common_description %{expand: A High Performance NATS Server written in Go and hosted by the Cloud Native Computing Foundation (CNCF).} %global golicenses LICENSE %global godocs CODE-OF-CONDUCT.md GOVERNANCE.md MAINTAINERS.md\\\ README.md TODO.md Name: %{goname} Release: %autorelease Summary: High-Performance server for NATS, the cloud native messaging system # Upstream license specification: Apache-2.0 License: Apache-2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: systemd-rpm-macros BuildRequires: help2man Requires(pre): shadow-utils %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/%{name} %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_sbindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_sbindir}/ install -m 0755 -vd %{buildroot}%{_mandir}/man1 help2man --no-discard-stderr --no-info --version-string=%{version} %{buildroot}%{_sbindir}/%{name} > %{buildroot}%{_mandir}/man1/%{name}.1 install -m 0755 -vd %{buildroot}%{_unitdir} install -m 0755 -vp util/%{name}.service %{buildroot}%{_unitdir}/ install -m 0755 -vd %{buildroot}%{_sysconfdir} install -m 0755 -vp docker/nats-server.conf %{buildroot}%{_sysconfdir}/ mkdir -p %{buildroot}%{_sharedstatedir}/%{name} %pre getent group nats >/dev/null || groupadd -r nats getent passwd nats >/dev/null || \ useradd -r -g nats -d %{_sharedstatedir}/%{name} -s /sbin/nologin \ -c "NATS Server account" nats exit 0 %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %if %{with check} %check # logger: needs access to syslog # server, test: need network # server/avl: intermittent timeout errors %gocheck -d logger -d server -d server/avl -d server/pse -d test %endif %files %license LICENSE %doc CODE-OF-CONDUCT.md GOVERNANCE.md MAINTAINERS.md README.md TODO.md %{_sbindir}/* %config(noreplace) %{_sysconfdir}/%{name}.conf %{_mandir}/man1/%{name}.1* %{_unitdir}/%{name}.service %attr(0750, nats, nats) %dir %{_sharedstatedir}/%{name} %gopkgfiles %changelog ## START: Generated by rpmautospec * Thu Jul 18 2024 Fedora Release Engineering - 2.10.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Feb 11 2024 Maxwell G - 2.10.9-4 - Rebuild for golang 1.22.0 * Thu Jan 25 2024 Fedora Release Engineering - 2.10.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 2.10.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 12 2024 Mark E. Fuller - 2.10.9-1 - update to 2.10.9, close rhbz#2257990 * Thu Dec 07 2023 Mark E. Fuller - 2.10.7-1 - update to v2.10.7, close rhbz#2253525 * Mon Dec 04 2023 Mark E. Fuller - 2.10.6-1 - update to v2.10.6, close rhbz#2246774 * Mon Nov 20 2023 Mark E. Fuller - 2.10.5-1 - update to 2.10.5, close rhbz#2246774 * Sun Oct 15 2023 Mark E. Fuller - 2.10.3-1 - update to v2.10.3, close rhbz#2244204 * Sat Oct 07 2023 Mark E. Fuller - 2.10.2-1 - update to v2.10.2, close rhbz#2242568 * Tue Sep 26 2023 Mark E. Fuller - 2.10.1-4 - disable tests which intermittently fail due to timeout * Tue Sep 26 2023 Mark E. Fuller - 2.10.1-3 - rebuild for CVE-2022-{28357,41717} * Fri Sep 22 2023 Mark E. Fuller - 2.10.1-2 - apply -f to %%gometa * Fri Sep 22 2023 Mark E. Fuller - 2.10.1-1 - v2.10.1, close rhbz#2239760 * Tue Sep 19 2023 Mark E. Fuller - 2.9.22-1 - update to v2.9.22, close rhbz#1939310 * Thu Jul 20 2023 Fedora Release Engineering - 2.1.9-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 2.1.9-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.1.9-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 2.1.9-7 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jun 18 2022 Robert-André Mauchin - 2.1.9-6 - 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 - 2.1.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 2.1.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 2.1.9-3 - Rebuilt for updated systemd-rpm-macros * Tue Jan 26 2021 Fedora Release Engineering - 2.1.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Dec 26 2020 Robert-André Mauchin - 2.1.9-1 - Update to 2.1.9 Close: rhbz#1875804 Security fix for CVE-2020-26892 Fix: rhbz#1903719 Security fix for CVE-2020-26521 Fix: rhbz#1903716 * Thu Jul 30 2020 Robert-André Mauchin - 2.1.7-3 - Add alternative import path * Tue Jul 28 2020 Fedora Release Engineering - 2.1.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 18 2020 Robert-André Mauchin - 2.1.7-1 - Update to 2.1.7 * Sat Feb 01 2020 Robert-André Mauchin - 2.1.4-1 - Update to 2.1.4 * Wed Jan 29 2020 Fedora Release Engineering - 2.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Aug 15 2019 Robert-André Mauchin - 2.0.2-1 - Initial import (#1736017) ## END: Generated by rpmautospec