package BUGFIX bad dependencies
diff --git a/packages/debian.control.in b/packages/debian.control.in
index 22d807a..da6588b 100644
--- a/packages/debian.control.in
+++ b/packages/debian.control.in
@@ -31,25 +31,25 @@
Description: Bindings of libyang library to C++ language.
Package: libyang-cpp@PACKAGE_PART_NAME@-dev
-Depends: libpcre3-dev, @PACKAGE_NAME@ (=@LIBYANG_VERSION@)
+Depends: libpcre3-dev, libyang-cpp@PACKAGE_PART_NAME@ (=@LIBYANG_VERSION@)
Section: libdevel
Architecture: any
Description: Headers of bindings to c++ language libyang library.
Package: libyang-cpp@PACKAGE_PART_NAME@-dbg
-Depends: @PACKAGE_NAME@ (=@LIBYANG_VERSION@)
+Depends: libyang-cpp@PACKAGE_PART_NAME@ (=@LIBYANG_VERSION@)
Section: debug
Architecture: any
Description: Debug symbols of c++ bidings of libyang library.
Package: python3-yang@PACKAGE_PART_NAME@
-Depends: @PACKAGE_NAME@ (=@LIBYANG_VERSION@)
+Depends: @PACKAGE_NAME@ (=@LIBYANG_VERSION@), libyang-cpp@PACKAGE_PART_NAME@ (=@LIBYANG_VERSION@)
Section: libs
Architecture: any
Description: Bindings of libyang library to python3 language.
Package: python3-yang@PACKAGE_PART_NAME@-dbg
-Depends: @PACKAGE_NAME@ (=@LIBYANG_VERSION@)
+Depends: python3-yang@PACKAGE_PART_NAME@ (=@LIBYANG_VERSION@)
Section: debug
Architecture: any
Description: Debug symbols of python3 bidings of libyang library.
diff --git a/packages/libyang.spec.in b/packages/libyang.spec.in
index 3b0abb8..5583579 100644
--- a/packages/libyang.spec.in
+++ b/packages/libyang.spec.in
@@ -37,11 +37,12 @@
%package -n libyang-cpp@PACKAGE_PART_NAME@-devel
Summary: Headers of bindings to c++ language
-Requires: %{name} = %{version}-%{release}
+Requires: libyang-cpp@PACKAGE_PART_NAME@ = %{version}-%{release}
+Requires: pcre-devel
%package -n python3-yang@PACKAGE_PART_NAME@
Summary: Binding to python
-Requires: %{name}-cpp = %{version}-%{release}
+Requires: libyang-cpp@PACKAGE_PART_NAME@ = %{version}-%{release}
Requires: %{name} = %{version}-%{release}
%description -n libyang-cpp@PACKAGE_PART_NAME@