netdata-repo.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. %{?rhel:%global centos_ver %rhel}
  2. Name: netdata-repo
  3. Version: 2
  4. Release: 3
  5. Summary: Netdata stable repositories configuration.
  6. Group: System Environment/Base
  7. License: GPLv2
  8. Source0: netdata.repo.fedora
  9. Source1: netdata-edge.repo.fedora
  10. Source2: netdata.repo.suse
  11. Source3: netdata-edge.repo.suse
  12. Source4: netdata.repo.centos
  13. Source5: netdata-edge.repo.centos
  14. Source6: netdata.repo.ol
  15. Source7: netdata-edge.repo.ol
  16. Source8: netdata.repo.al
  17. Source9: netdata-edge.repo.al
  18. Source10: netdata.repo.al2023
  19. Source11: netdata-edge.repo.al2023
  20. BuildArch: noarch
  21. %if 0%{?centos_ver} && 0%{?centos_ver} < 8
  22. Requires: yum-plugin-priorities
  23. %endif
  24. %if 0%{?centos_ver} && 0%{!?amazon_linux:1} && 0%{!?oraclelinux:1}
  25. Requires: epel-release
  26. %endif
  27. # Overlapping file installs
  28. Conflicts: netdata-repo-edge
  29. %description
  30. This package contains the official Netdata package repository configuration for stable versions of Netdata.
  31. %prep
  32. %setup -q -c -T
  33. %if 0%{?fedora}
  34. install -pm 644 %{SOURCE0} ./netdata.repo
  35. install -pm 644 %{SOURCE1} ./netdata-edge.repo
  36. %endif
  37. %if 0%{?suse_version}
  38. install -pm 644 %{SOURCE2} ./netdata.repo
  39. install -pm 644 %{SOURCE3} ./netdata-edge.repo
  40. %endif
  41. %if 0%{?centos_ver}
  42. install -pm 644 %{SOURCE4} ./netdata.repo
  43. install -pm 644 %{SOURCE5} ./netdata-edge.repo
  44. %endif
  45. %if 0%{?oraclelinux}
  46. install -pm 644 %{SOURCE6} ./netdata.repo
  47. install -pm 644 %{SOURCE7} ./netdata-edge.repo
  48. %endif
  49. %if 0%{?amzn2}
  50. install -pm 644 %{SOURCE8} ./netdata.repo
  51. install -pm 644 %{SOURCE9} ./netdata-edge.repo
  52. %endif
  53. %if 0%{?amzn2023}
  54. install -pm 644 %{SOURCE10} ./netdata.repo
  55. install -pm 644 %{SOURCE11} ./netdata-edge.repo
  56. %endif
  57. %build
  58. true
  59. %install
  60. rm -rf $RPM_BUILD_ROOT
  61. %if 0%{?suse_version}
  62. install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/zypp/repos.d
  63. install -pm 644 netdata.repo $RPM_BUILD_ROOT%{_sysconfdir}/zypp/repos.d
  64. install -pm 644 netdata-edge.repo $RPM_BUILD_ROOT%{_sysconfdir}/zypp/repos.d
  65. %else
  66. install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
  67. install -pm 644 netdata.repo $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
  68. install -pm 644 netdata-edge.repo $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
  69. %endif
  70. %clean
  71. rm -rf $RPM_BUILD_ROOT
  72. %files
  73. %if 0%{?suse_version}
  74. %attr(644,root,root) /etc/zypp/repos.d/netdata.repo
  75. %else
  76. %attr(644,root,root) /etc/yum.repos.d/netdata.repo
  77. %endif
  78. %package edge
  79. Summary: Netdata nightly repositories configuration.
  80. Group: System Environment/Base
  81. # Overlapping file installs
  82. Conflicts: netdata-repo
  83. %description edge
  84. This package contains the official Netdata package repository configuration for nightly versions of Netdata.
  85. %files edge
  86. %if 0%{?suse_version}
  87. %attr(644,root,root) /etc/zypp/repos.d/netdata-edge.repo
  88. %else
  89. %attr(644,root,root) /etc/yum.repos.d/netdata-edge.repo
  90. %endif
  91. %changelog
  92. * Wed Apr 10 2024 Paul Szymanski <mail@pszy.de> 2-3
  93. - Fix repo specification for Amazon Linux 2023.
  94. * Mon Nov 13 2023 Austin Hemmelgarn <austin@netdata.cloud> 2-2
  95. - Add EPEL requirement for RHEL packages.
  96. * Wed Dec 7 2022 Austin Hemmelgarn <austin@netdata.cloud> 2-1
  97. - Switch to new hosting at repo.netdata.cloud.
  98. * Mon Jun 6 2022 Austin Hemmelgarn <austin@netdata.cloud> 1-2
  99. - Bump release to keep in sync with DEB package.
  100. * Mon Jun 14 2021 Austin Hemmelgarn <austin@netdata.cloud> 1-1
  101. - Initial revision