packages UPDATE libyang dependency package name
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