Removing prometheus from prometheus-adapter and making separate *-docs packages (#5888)

This commit is contained in:
osamaesmailmsft 2023-07-27 15:28:15 -07:00 коммит произвёл GitHub
Родитель 674f033b6f
Коммит 0213819410
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 32 добавлений и 8 удалений

Просмотреть файл

@ -1,18 +1,24 @@
Summary: Kubernetes Custom, Resource, and External Metric APIs implemented to work with Prometheus.
Name: prometheus-adapter
Version: 0.10.0
Release: 6%{?dist}
Release: 7%{?dist}
License: Apache-2.0
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://github.com/kubernetes-sigs/prometheus-adapter
Source0: https://github.com/kubernetes-sigs/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: golang
BuildRequires: prometheus
%description
Implementation of Prometheus via Kubernetes Custom, Resource, and External Metric API.
%package docs
Summary: prometheus-adapter docs
Requires: %{name} = %{version}-%{release}
%description docs
Documentation for prometheus-adapter
%prep
%autosetup -p1
@ -28,11 +34,17 @@ make test
%files
%license LICENSE NOTICE
%doc docs CONTRIBUTING.md OWNERS SECURITY.md SECURITY_CONTACTS VERSION code-of-conduct.md
%doc README.md RELEASE.md
%{_bindir}/*
%files docs
%doc docs CONTRIBUTING.md OWNERS SECURITY.md SECURITY_CONTACTS VERSION code-of-conduct.md
%doc README.md RELEASE.md
%changelog
* Wed Jul 26 2023 Osama Esmail <osamaesmail@mirosoft.com> - 0.10.0-7
- Removing `prometheus` from BuildRequires
- Making `docs` a separate package
* Thu Jul 13 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 0.10.0-6
- Bump release to rebuild with go 1.19.11

Просмотреть файл

@ -4,8 +4,8 @@
Summary: Prometheus monitoring system and time series database
Name: prometheus
Version: 2.37.0
Release: 7%{?dist}
License: ASL 2.0
Release: 8%{?dist}
License: Apache-2.0
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://github.com/prometheus/prometheus
@ -26,6 +26,13 @@ Requires(pre): %{_bindir}/systemd-sysusers
%description
The Prometheus monitoring system and time series database
%package docs
Summary: prometheus docs
Requires: %{name} = %{version}-%{release}
%description docs
Documentation for prometheus.
%prep
%autosetup -p1
@ -108,8 +115,6 @@ fi
%files
%license LICENSE NOTICE
%doc docs CHANGELOG.md MAINTAINERS.md CODE_OF_CONDUCT.md CONTRIBUTING.md
%doc README.md RELEASE.md documentation
%dir %{_sysconfdir}/prometheus/
%dir %{_sysconfdir}/prometheus/consoles
%dir %{_sysconfdir}/prometheus/console_libraries
@ -121,7 +126,14 @@ fi
%{_sysusersdir}/prometheus.conf
%attr(0755,prometheus,prometheus) %{_sharedstatedir}/prometheus
%files docs
%doc docs CHANGELOG.md MAINTAINERS.md CODE_OF_CONDUCT.md CONTRIBUTING.md
%doc README.md RELEASE.md documentation
%changelog
* Wed Jul 26 2023 Osama Esmail <osamaesmail@microsoft.com> - 2.37.0-8
- Making docs a separate package
* Thu Jul 13 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 2.37.0-7
- Bump release to rebuild with go 1.19.11