netdata-repo.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. %{?rhel:%global centos_ver %rhel}
  2. Name: netdata-repo
  3. Version: 2
  4. Release: 1
  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. BuildArch: noarch
  17. %if 0%{?centos_ver} && 0%{?centos_ver} < 8
  18. Requires: yum-plugin-priorities
  19. %endif
  20. # Overlapping file installs
  21. Conflicts: netdata-repo-edge
  22. %description
  23. This package contains the official Netdata package repository configuration for stable versions of Netdata.
  24. %prep
  25. %setup -q -c -T
  26. %if 0%{?fedora}
  27. install -pm 644 %{SOURCE0} ./netdata.repo
  28. install -pm 644 %{SOURCE1} ./netdata-edge.repo
  29. %endif
  30. %if 0%{?suse_version}
  31. install -pm 644 %{SOURCE2} ./netdata.repo
  32. install -pm 644 %{SOURCE3} ./netdata-edge.repo
  33. %endif
  34. %if 0%{?centos_ver}
  35. install -pm 644 %{SOURCE4} ./netdata.repo
  36. install -pm 644 %{SOURCE5} ./netdata-edge.repo
  37. %endif
  38. %if 0%{?oraclelinux}
  39. install -pm 644 %{SOURCE6} ./netdata.repo
  40. install -pm 644 %{SOURCE7} ./netdata-edge.repo
  41. %endif
  42. %build
  43. true
  44. %install
  45. rm -rf $RPM_BUILD_ROOT
  46. %if 0%{?suse_version}
  47. install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/zypp/repos.d
  48. install -pm 644 netdata.repo $RPM_BUILD_ROOT%{_sysconfdir}/zypp/repos.d
  49. install -pm 644 netdata-edge.repo $RPM_BUILD_ROOT%{_sysconfdir}/zypp/repos.d
  50. %else
  51. install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
  52. install -pm 644 netdata.repo $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
  53. install -pm 644 netdata-edge.repo $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
  54. %endif
  55. %clean
  56. rm -rf $RPM_BUILD_ROOT
  57. %files
  58. %if 0%{?suse_version}
  59. %attr(644,root,root) /etc/zypp/repos.d/netdata.repo
  60. %else
  61. %attr(644,root,root) /etc/yum.repos.d/netdata.repo
  62. %endif
  63. %package edge
  64. Summary: Netdata nightly repositories configuration.
  65. Group: System Environment/Base
  66. # Overlapping file installs
  67. Conflicts: netdata-repo
  68. %description edge
  69. This package contains the official Netdata package repository configuration for nightly versions of Netdata.
  70. %files edge
  71. %if 0%{?suse_version}
  72. %attr(644,root,root) /etc/zypp/repos.d/netdata-edge.repo
  73. %else
  74. %attr(644,root,root) /etc/yum.repos.d/netdata-edge.repo
  75. %endif
  76. %changelog
  77. * Wed Dec 7 2022 Austin Hemmelgarn <austin@netdata.cloud> 2-1
  78. - Switch to new hosting at repo.netdata.cloud.
  79. * Mon Jun 6 2022 Austin Hemmelgarn <austin@netdata.cloud> 1-2
  80. - Bump release to keep in sync with DEB package.
  81. * Mon Jun 14 2021 Austin Hemmelgarn <austin@netdata.cloud> 1-1
  82. - Initial revision