packages UPDATE libyang dependency package name
diff --git a/packages/debian.control.in b/packages/debian.control.in
index c8f97e1..d5357c3 100644
--- a/packages/debian.control.in
+++ b/packages/debian.control.in
@@ -6,7 +6,7 @@
Homepage: @GITHUB_URL@
Package: @PACKAGE@
-Depends: libyang (>= 0.16), libssh-4 (>= 0.7.1), libssh-4 (<< 0.9.3) | libssh-4 (>> 0.9.4), ${shlibs:Depends}
+Depends: libyang@LIBYANG_DEP_SOVERSION_MAJOR@, libssh-4 (>= 0.7.1), libssh-4 (<< 0.9.3) | libssh-4 (>> 0.9.4), ${shlibs:Depends}
Section: libs
Architecture: any
Description: @PACKAGE_DESC@
diff --git a/packages/libnetconf2.spec.in b/packages/libnetconf2.spec.in
index 6bc0bf9..d75fa0a 100644
--- a/packages/libnetconf2.spec.in
+++ b/packages/libnetconf2.spec.in
@@ -20,12 +20,12 @@
%endif
%endif
-Requires: libyang >= 0.16
+Requires: libyang@LIBYANG_DEP_SOVERSION_MAJOR@
Requires: openssl
BuildRequires: cmake
BuildRequires: doxygen
-BuildRequires: libyang-devel >= 0.16
+BuildRequires: libyang-devel >= @LIBYANG_DEP_SOVERSION_MAJOR@.0
BuildRequires: gcc
BuildRequires: libcmocka-devel
BuildRequires: libssh-devel >= 0.7.1