commit b0202ff3c6932626a321ffb86579197734983f734b076f81c2d14b473637f3e4 Author: Ladislav Slezák Date: Thu Jun 1 14:06:12 2023 +0000 osc copypac from project:YaST:Head:Agama package:agama-cli revision:5 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:Agama:Devel/agama-cli?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_constraints b/_constraints new file mode 100644 index 0000000..ac77aab --- /dev/null +++ b/_constraints @@ -0,0 +1,7 @@ + + + + 20 + + + diff --git a/_service b/_service new file mode 100644 index 0000000..3b24ad6 --- /dev/null +++ b/_service @@ -0,0 +1,26 @@ + + + https://github.com/openSUSE/agama.git + @PARENT_TAG@~@TAG_OFFSET@ + git + master + rust + enable + package/agama-cli.changes + + + agama/rust + zst + true + + + agama/rust + + + agama.obsinfo + agama + + + agama + + diff --git a/agama-cli.changes b/agama-cli.changes new file mode 100644 index 0000000..2719a56 --- /dev/null +++ b/agama-cli.changes @@ -0,0 +1,59 @@ +------------------------------------------------------------------- +Tue May 23 11:51:26 UTC 2023 - Martin Vidner + +- Version 2.1 + +------------------------------------------------------------------- +Mon May 22 12:29:20 UTC 2023 - Martin Vidner + +- Version 2 + +------------------------------------------------------------------- +Thu May 11 11:00:11 UTC 2023 - Imobach Gonzalez Sosa + +- Import root authentication settings when reading a Jsonnet file + (bsc#1211300, gh#openSUSE/agama#573). +- Do not export the SSH public key as an empty string when it is + not defined. + +------------------------------------------------------------------- +Fri Mar 24 14:36:36 UTC 2023 - Imobach Gonzalez Sosa + +- Version 0.2: + * Add validation for software and users settings + (gh#yast/agama-cli#48, gh#yast/agama-cli#51). + * Better error reporting when the bus is not found + (gh#yast/agama-cli#48). + * Improve the progress reporting mechanism, although it is still + a work in progress (gh#yast/agama-cli#50). + +------------------------------------------------------------------- +Wed Mar 22 09:39:29 UTC 2023 - Imobach Gonzalez Sosa + +- Add support for setting root authentication mechanisms + (gh#yast/agama-cli#47). + +------------------------------------------------------------------- +Tue Mar 21 16:06:02 UTC 2023 - Martin Vidner + +- Do not fall back to the system D-Bus (gh#yast/agama-cli#45). + +------------------------------------------------------------------- +Wed Mar 21 13:28:01 UTC 2023 - Imobach Gonzalez Sosa + +- Use JSON as the default format (gh#yast/agama-cli#46). + +------------------------------------------------------------------- +Tue Mar 21 08:55:39 UTC 2023 - Josef Reidinger + +- Fix the path of the JSON schema (gh#yast/agama-cli#44). + +------------------------------------------------------------------- +Thu Mar 16 11:56:42 UTC 2023 - Imobach Gonzalez Sosa + +- First version of the package: + * Querying and setting simple values. + * Adding elements to collections + * Handling of auto-installation profiles. + * Basic error handling +- 0.1 diff --git a/agama-cli.spec b/agama-cli.spec new file mode 100644 index 0000000..d25a1c9 --- /dev/null +++ b/agama-cli.spec @@ -0,0 +1,63 @@ +# +# spec file for package agama-cli +# +# Copyright (c) 2023 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + +Name: agama-cli +# This will be set by osc services, that will run after this. +Version: 0 +Release: 0 +Summary: Agama command line interface +# If you know the license, put it's SPDX string here. +# Alternately, you can use cargo lock2rpmprovides to help generate this. +License: GPL-2.0-only +Url: https://github.com/yast/agama-cli +Source0: agama.tar +Source1: vendor.tar.zst +# Generated by the cargo_vendor OBS service +Source2: cargo_config +BuildRequires: cargo-packaging +BuildRequires: pkgconfig(openssl) +Requires: jsonnet +Requires: lshw + +%description +Command line program to interact with the agama service. + +%prep +%autosetup -a1 -n agama +mkdir .cargo +cp %{SOURCE2} .cargo/config +# Remove exec bits to prevent an issue in fedora shebang checking. Uncomment only if required. +# find vendor -type f -name \*.rs -exec chmod -x '{}' \; + +%build +%{cargo_build} + +%install +install -D -d -m 0755 %{buildroot}%{_bindir} +install -m 0755 %{_builddir}/agama/target/release/agama %{buildroot}%{_bindir}/agama +install -D -d -m 0755 %{buildroot}%{_datadir}/agama-cli +install -m 0644 %{_builddir}/agama/agama-lib/share/profile.schema.json %{buildroot}%{_datadir}/agama-cli + +%check +%{cargo_test} + +%files +%{_bindir}/agama +%dir %{_datadir}/agama-cli +%{_datadir}/agama-cli/profile.schema.json + +%changelog diff --git a/agama.obscpio b/agama.obscpio new file mode 100644 index 0000000..6168edc --- /dev/null +++ b/agama.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1f5a44bbe2842cc99447027e5e30c203e2ae86c53694d426dcd629e2bf9faa8 +size 166923 diff --git a/agama.obsinfo b/agama.obsinfo new file mode 100644 index 0000000..cd57ab4 --- /dev/null +++ b/agama.obsinfo @@ -0,0 +1,4 @@ +name: agama +version: v2.1~0 +mtime: 1684843456 +commit: 0714759d3d29f13d8725f8e76e0bf8bc882f7ad9 diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..6fb4ff4 --- /dev/null +++ b/cargo_config @@ -0,0 +1,5 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..f16cf53 --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d38b53e2db6c8d1320d47065a8f09fb139b63e26c9270d9ecb0f6e0e1afc4318 +size 34121483