## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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.6.0 %bcond_without check # https://github.com/slackhq/nebula %global goipath github.com/slackhq/nebula Version: 1.6.1 %gometa %global goname nebula %global common_description %{expand: A scalable overlay networking tool with a focus on performance, simplicity and security.} %global golicenses LICENSE %global godocs examples AUTHORS README.md CHANGELOG.md Name: %{goname} Release: %autorelease Summary: A scalable overlay networking tool with a focus on performance, simplicity and security License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: systemd-rpm-macros # Let's be sure that people do not upgrade from the "old" nebula. We can sensibly drop it by F39 Conflicts: nebula < 1.0 %description %{common_description} %gopkg %prep %goprep # https://github.com/slackhq/nebula/pull/791 sed -i 's/\(Wants=.*\)$/\1 nss-lookup.target time-sync.target/' dist/fedora/nebula.service %generate_buildrequires %go_generate_buildrequires %build export LDFLAGS="-X main.Build=%{version}-Fedora $(LDFLAGS)" 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}/ install -m 0755 -vd %{buildroot}%{_sysconfdir}/%{name} install -m 0640 -vp examples/config.yml %{buildroot}%{_sysconfdir}/%{name} install -m 0644 -vDp dist/fedora/nebula.service %{buildroot}%{_unitdir}/%{name}.service %if %{with check} %check %gocheck %endif %post %systemd_post nebula.service %preun %systemd_preun nebula.service %postun %systemd_postun_with_restart nebula.service %files %license LICENSE %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/config.yml %doc examples AUTHORS README.md CHANGELOG.md %{_bindir}/* %{_unitdir}/%{name}.service %gopkgfiles %changelog * Thu Jan 19 2023 Fedora Release Engineering 1.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Dec 26 2022 Fabio Alessandro Locati 1.6.1-3 - Backport https://github.com/slackhq/nebula/commit/3ae242fa5f1858e5b229683 ce021e8e6702cc8e7 - Add time-sync.target as wants * Sat Dec 10 2022 Fabio Alessandro Locati 1.6.1-2 - Ensure DNS is running before starting nebula * Mon Oct 10 2022 Fabio Alessandro Locati 1.6.1-1 - update to 1.6.1 * Wed Aug 10 2022 Maxwell G 1.6.0-4 - Rebuild to fix FTBFS * Fri Jul 22 2022 Fedora Release Engineering 1.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G 1.6.0-2 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sun Jul 17 2022 Fabio Alessandro Locati 1.6.0-1 - update to 1.6.0 * Thu Jun 23 2022 Maxwell G 1.5.2-5 - Rebuild to mitigate CVE-2022-21698 (rhbz#2067400). * Sat Jun 18 2022 Robert-André Mauchin 1.5.2-4 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Sat Jun 04 2022 Fabio Alessandro Locati 1.5.2-3 - add conflict with old nebula * Fri Jun 03 2022 Fabio Alessandro Locati 1.5.2-1 - first version, fixes rhbz#2091291 * Fri Jun 03 2022 Tomas Hrcka 0.2.3-32 - Unretirement request: https://pagure.io/releng/issue/10822 * Tue Jan 26 2021 Fedora Release Engineering 0.2.3-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Jan 07 2021 Tom Stellard 0.2.3-30 - Add BuildRequires: make * Tue Jul 28 2020 Fedora Release Engineering 0.2.3-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun Mar 29 2020 Fabian Affolter 0.2.3-28 - * Sat Mar 28 2020 Fabian Affolter - 0.2.3-23 - Fix FTBFS (rhbz#1799677) * Wed Jan 29 2020 Fedora Release Engineering 0.2.3-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Aug 31 2019 Fabian Affolter 0.2.3-26 - * Sat Aug 31 2019 Fabian Affolter - 0.2.3-21 - Update spec file * Thu Jul 25 2019 Fedora Release Engineering 0.2.3-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering 0.2.3-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering 0.2.3-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jul 09 2018 Igor Gnatenko 0.2.3-22 - add BuildRequires: gcc * Thu Feb 08 2018 Fedora Release Engineering 0.2.3-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering 0.2.3-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering 0.2.3-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering 0.2.3-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering 0.2.3-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 19 2015 Ralf Corsépius 0.2.3-16 - Append --stdc=gnu89 to CFLAGS (Work-around to c11/inline compatibility * Wed Jun 17 2015 Dennis Gilmore 0.2.3-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Oct 14 2014 Fabian Affolter 0.2.3-14 - * Tue Oct 14 2014 Fabian Affolter - 0.2.3-10 - Update spec file - Switch to bz2 archive * Tue Oct 14 2014 Fabian Affolter 0.2.3-13 - * Tue Oct 14 2014 Fabian Affolter - 0.2.3-10 - Update spec file * Sun Aug 17 2014 Peter Robinson 0.2.3-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Dennis Gilmore 0.2.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Apr 24 2014 Christopher Meng 0.2.3-10 - SPEC cleanup. * Sat Aug 03 2013 Dennis Gilmore 0.2.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Dennis Gilmore 0.2.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Dennis Gilmore 0.2.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Dennis Gilmore 0.2.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Jul 29 2010 Fedora Release Engineering 0.2.3-5 - dist-git conversion * Wed Nov 25 2009 Bill Nottingham 0.2.3-4 - Fix typo that causes a failure to update the common directory. (releng #2781) * Sat Jul 25 2009 Jesse Keating 0.2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Jesse Keating 0.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Jan 16 2009 Rakesh Pandit 0.2.3-1 - Updated to 0.2.3. * Sat Nov 08 2008 Rakesh Pandit 0.2.2-1 - inital package import