From d84caf4a4501a692b1ca3567a2f1cb178aafc401 Mon Sep 17 00:00:00 2001 From: Jan Fooken Date: Mon, 19 Aug 2024 13:00:00 +0200 Subject: [PATCH 1/3] Add sources and move spec file --- packaging/suse/rpm/trento-checks.spec | 82 +++++++++++++++++++++++++++ trento-checks.spec | 38 ------------- 2 files changed, 82 insertions(+), 38 deletions(-) create mode 100644 packaging/suse/rpm/trento-checks.spec delete mode 100644 trento-checks.spec diff --git a/packaging/suse/rpm/trento-checks.spec b/packaging/suse/rpm/trento-checks.spec new file mode 100644 index 0000000..d6c84e0 --- /dev/null +++ b/packaging/suse/rpm/trento-checks.spec @@ -0,0 +1,82 @@ +# +# spec file for package trento-checks +# +# Copyright (c) 2024 SUSE LCC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. +# +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +Name: trento-checks +Version: 0 +Release: 0 +Summary: Checks for the Trento checks engine +License: Apache-2.0 +URL: https://github.com/trento-project/checks +Source: https://github.com/trento-project/checks/archive/refs/heads/main.tar.gz +Group: System/Monitoring +BuildArch: noarch + +%define trento_dir %{_datadir}/trento +%define trento_checks_dir %trento_dir/checks.d + +%description +%{summary} + +%prep +%autosetup -p1 n trento-checks + +%install +install -d -m 0755 %buildroot%trento_dir +install -d -m 0755 %buildroot%trento_checks_dir +install -p -m 0644 checks/* %buildroot%trento_checks_dir + +%files +%license LICENSE +%dir %trento_dir +%dir %trento_checks_dir + +%trento_checks_dir/00081D.yaml +%trento_checks_dir/0B6DB2.yaml +%trento_checks_dir/156F64.yaml +%trento_checks_dir/15F7A8.yaml +%trento_checks_dir/205AF7.yaml +%trento_checks_dir/21FCA6.yaml +%trento_checks_dir/222A57.yaml +%trento_checks_dir/24ABCB.yaml +%trento_checks_dir/32CFC6.yaml +%trento_checks_dir/33403D.yaml +%trento_checks_dir/373DB8.yaml +%trento_checks_dir/49591F.yaml +%trento_checks_dir/53D035.yaml +%trento_checks_dir/61451E.yaml +%trento_checks_dir/68626E.yaml +%trento_checks_dir/6E9B82.yaml +%trento_checks_dir/790926.yaml +%trento_checks_dir/7E0221.yaml +%trento_checks_dir/816815.yaml +%trento_checks_dir/822E47.yaml +%trento_checks_dir/845CC9.yaml +%trento_checks_dir/9FAAD0.yaml +%trento_checks_dir/9FEFB0.yaml +%trento_checks_dir/A1244C.yaml +%trento_checks_dir/B089BE.yaml +%trento_checks_dir/C3166E.yaml +%trento_checks_dir/C620DC.yaml +%trento_checks_dir/CAEFF1.yaml +%trento_checks_dir/D028B9.yaml +%trento_checks_dir/D78671.yaml +%trento_checks_dir/DA114A.yaml +%trento_checks_dir/DC5429.yaml +%trento_checks_dir/F50AF5.yaml +%trento_checks_dir/FB0E0D.yaml + +%changelog diff --git a/trento-checks.spec b/trento-checks.spec deleted file mode 100644 index 3c129b9..0000000 --- a/trento-checks.spec +++ /dev/null @@ -1,38 +0,0 @@ -# -# spec file for package trento-checks -# -# Copyright (c) 2024 SUSE LCC -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. -# -# Please submit bugfixes or comments via https://bugs.opensuse.org/ -# - -Name: trento-checks -Version: 0 -Release: 0 -Summary: Checks for the Trento checks engine -License: Apache-2.0 -URL: https://github.com/trento-project/checks -Group: System/Monitoring -BuildArch: noarch - -%description -%{summay} - -%prep -%autosetup -a1 - -%install - -%files -%license LICENSE - -%changelog From 48321e6d13cbeeb7dab54e626afb386b03de56e8 Mon Sep 17 00:00:00 2001 From: Jan Fooken Date: Mon, 19 Aug 2024 15:44:51 +0200 Subject: [PATCH 2/3] Fix the path of the unpacked directory --- packaging/suse/rpm/trento-checks.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/suse/rpm/trento-checks.spec b/packaging/suse/rpm/trento-checks.spec index d6c84e0..fbcaf08 100644 --- a/packaging/suse/rpm/trento-checks.spec +++ b/packaging/suse/rpm/trento-checks.spec @@ -32,7 +32,7 @@ BuildArch: noarch %{summary} %prep -%autosetup -p1 n trento-checks +%autosetup -p1 -n checks-main %install install -d -m 0755 %buildroot%trento_dir From 5942924274f59c0b9428aa95e2cb51204df238c3 Mon Sep 17 00:00:00 2001 From: Jan Fooken Date: Mon, 19 Aug 2024 15:46:33 +0200 Subject: [PATCH 3/3] Change checks directory to the agreed path --- packaging/suse/rpm/trento-checks.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/suse/rpm/trento-checks.spec b/packaging/suse/rpm/trento-checks.spec index fbcaf08..3d872c1 100644 --- a/packaging/suse/rpm/trento-checks.spec +++ b/packaging/suse/rpm/trento-checks.spec @@ -26,7 +26,7 @@ Group: System/Monitoring BuildArch: noarch %define trento_dir %{_datadir}/trento -%define trento_checks_dir %trento_dir/checks.d +%define trento_checks_dir %trento_dir/checks %description %{summary}