distro BUGFIX minor fixes
diff --git a/distro/pkg/deb/control b/distro/pkg/deb/control
index 28740da..7f737bc 100644
--- a/distro/pkg/deb/control
+++ b/distro/pkg/deb/control
@@ -6,7 +6,7 @@
 Standards-Version: 4.5.0
 Build-Depends: cmake,
                debhelper (>= 10),
-               libpcre2-dev,
+               libpcre2-dev (>= 10.21),
                pkg-config
 Vcs-Browser: https://github.com/CESNET/libyang/tree/master
 Vcs-Git: https://github.com/CESNET/libyang.git
@@ -28,7 +28,7 @@
  to use in processing configurations.
 
 Package: libyang2-dev
-Depends: libpcre2-dev,
+Depends: libpcre2-dev (>= 10.21),
          libyang2 (= ${binary:Version}),
          ${misc:Depends}
 Conflicts: libyang-dev
diff --git a/distro/pkg/rpm/libyang.spec b/distro/pkg/rpm/libyang.spec
index f61b3a1..e49d8a6 100644
--- a/distro/pkg/rpm/libyang.spec
+++ b/distro/pkg/rpm/libyang.spec
@@ -40,7 +40,7 @@
 cd build
 cmake \
     -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-    -DCMAKE_BUILD_TYPE:String="Package" \
+    -DCMAKE_BUILD_TYPE:String="Release" \
     -DCMAKE_C_FLAGS="${RPM_OPT_FLAGS}" \
     -DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS}" \
     ..