diff --git a/_service b/_service
index dc300d3..323172e 100644
--- a/_service
+++ b/_service
@@ -4,7 +4,7 @@
@PARENT_TAG@
v(.*)
git
- v2.1
+ v2.2
rust
enable
package/agama-cli.changes
diff --git a/agama-cli.changes b/agama-cli.changes
index 2719a56..4d71c60 100644
--- a/agama-cli.changes
+++ b/agama-cli.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Thu Jun 1 08:14:14 UTC 2023 - Imobach Gonzalez Sosa
+
+- Add a localization D-Bus service (gh#openSUSE/agama#533).
+- Add a network D-Bus service (gh#openSUSE/agama#571).
+
-------------------------------------------------------------------
Tue May 23 11:51:26 UTC 2023 - Martin Vidner
diff --git a/agama-cli.spec b/agama-cli.spec
index ed84208..bb291c9 100644
--- a/agama-cli.spec
+++ b/agama-cli.spec
@@ -18,25 +18,41 @@
Name: agama-cli
# This will be set by osc services, that will run after this.
-Version: 2.1+0
+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
+URL: https://github.com/opensuse/agama
Source0: agama.tar
Source1: vendor.tar.zst
# Generated by the cargo_vendor OBS service
Source2: cargo_config
BuildRequires: cargo-packaging
BuildRequires: pkgconfig(openssl)
+# used in tests for dbus service
+BuildRequires: python-langtable-data
+BuildRequires: dbus-1-common
Requires: jsonnet
Requires: lshw
%description
Command line program to interact with the agama service.
+%package -n agama-dbus-server
+# This will be set by osc services, that will run after this.
+Version: 0
+Release: 0
+Summary: Agama Rust D-Bus service
+License: GPL-2.0-only
+URL: https://github.com/opensuse/agama
+Requires: dbus-1-common
+Requires: python-langtable-data
+
+%description -n agama-dbus-server
+DBus service for agama project. It provides so far localization service.
+
%prep
%autosetup -a1 -n agama
mkdir .cargo
@@ -50,8 +66,11 @@ cp %{SOURCE2} .cargo/config
%install
install -D -d -m 0755 %{buildroot}%{_bindir}
install -m 0755 %{_builddir}/agama/target/release/agama %{buildroot}%{_bindir}/agama
+install -m 0755 %{_builddir}/agama/target/release/agama-dbus-server %{buildroot}%{_bindir}/agama-dbus-server
install -D -d -m 0755 %{buildroot}%{_datadir}/agama-cli
install -m 0644 %{_builddir}/agama/agama-lib/share/profile.schema.json %{buildroot}%{_datadir}/agama-cli
+install --directory %{buildroot}%{_datadir}/dbus-1/agama-services
+install -m 0644 --target-directory=%{buildroot}%{_datadir}/dbus-1/agama-services %{_builddir}/agama/share/*.service
%check
%{cargo_test}
@@ -61,4 +80,8 @@ install -m 0644 %{_builddir}/agama/agama-lib/share/profile.schema.json %{buildro
%dir %{_datadir}/agama-cli
%{_datadir}/agama-cli/profile.schema.json
+%files -n agama-dbus-server
+%{_bindir}/agama-dbus-server
+%{_datadir}/dbus-1/agama-services
+
%changelog
diff --git a/agama.obscpio b/agama.obscpio
index 6168edc..6c12d1a 100644
--- a/agama.obscpio
+++ b/agama.obscpio
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e1f5a44bbe2842cc99447027e5e30c203e2ae86c53694d426dcd629e2bf9faa8
-size 166923
+oid sha256:27f19c2a80eeac841deee10440606cdfbe07f3e3687ca5f51848332a8e88a486
+size 332299
diff --git a/agama.obsinfo b/agama.obsinfo
index 3a46ccd..585c44b 100644
--- a/agama.obsinfo
+++ b/agama.obsinfo
@@ -1,4 +1,4 @@
name: agama
-version: 2.1+0
-mtime: 1684843456
-commit: 0714759d3d29f13d8725f8e76e0bf8bc882f7ad9
+version: 2.2
+mtime: 1687531248
+commit: 0fde6ba3a56be0b28a0100e8492e362564fe2ec2
diff --git a/vendor.tar.zst b/vendor.tar.zst
index e858539..e2cf269 100644
--- a/vendor.tar.zst
+++ b/vendor.tar.zst
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:d1e9bae20ffc7c6011456e8d9f228dfd8dfb33c477213a29c78ced41c4ef29d9
-size 34152745
+oid sha256:44e77533bb8d6574a59e85e1936a20fb47dafcbad9f06aee196d1e9b51426e44
+size 35507723