mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-27 07:39:05 +01:00
15cf16b46f
* Update SPEC file * Add clean target to Makefile * add rpmbuild action * Add missing build dependency * Fix package name of golang for CentOS8 * Change outputs * Fix file list and build requires * Fix for file list * Also upload SRPM
55 lines
1.1 KiB
RPMSpec
55 lines
1.1 KiB
RPMSpec
Name: cc-metric-collector
|
|
Version: 0.1
|
|
Release: 1%{?dist}
|
|
Summary: Metric collection daemon from the ClusterCockpit suite
|
|
|
|
License: MIT
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: go-toolset
|
|
# for internal LIKWID installation
|
|
BuildRequires: wget perl-Data-Dumper
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
%description
|
|
Metric collection daemon from the ClusterCockpit suite
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
|
|
%build
|
|
make
|
|
|
|
|
|
%install
|
|
install -Dpm 0755 %{name} %{buildroot}%{_sbindir}/%{name}
|
|
install -Dpm 0600 config.json %{buildroot}%{_sysconfdir}/%{name}/%{name}.json
|
|
install -Dpm 644 scripts/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
|
|
install -Dpm 600 scripts/%{name}.config %{buildroot}%{_sysconfdir}/default/%{name}
|
|
|
|
|
|
%check
|
|
# go test should be here... :)
|
|
|
|
%post
|
|
%systemd_post %{name}.service
|
|
|
|
%preun
|
|
%systemd_preun %{name}.service
|
|
|
|
%files
|
|
%dir %{_sysconfdir}/%{name}
|
|
%{_sbindir}/%{name}
|
|
%{_unitdir}/%{name}.service
|
|
%{_sysconfdir}/default/%{name}
|
|
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.json
|
|
|
|
|
|
%changelog
|
|
* Mon Nov 22 2021 Thomas Gruber - 0.1
|
|
- Initial spec file
|