summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--pkg/deb/debian/control3
-rw-r--r--pkg/rpm/unit.spec.in1
2 files changed, 3 insertions, 1 deletions
diff --git a/pkg/deb/debian/control b/pkg/deb/debian/control
index c0873a1c..9828b6ab 100644
--- a/pkg/deb/debian/control
+++ b/pkg/deb/debian/control
@@ -34,6 +34,7 @@ Package: unit-dev
Section: libdevel
Priority: optional
Architecture: any
-Depends: ${misc:Depends}
+Depends: unit (= ${binary:Version}),
+ ${misc:Depends}
Description: NGINX Unit (development files)
Library and include files required for NGINX Unit modules development.
diff --git a/pkg/rpm/unit.spec.in b/pkg/rpm/unit.spec.in
index e3523cb3..1ef02881 100644
--- a/pkg/rpm/unit.spec.in
+++ b/pkg/rpm/unit.spec.in
@@ -65,6 +65,7 @@ Summary: NGINX Unit (development files)
Version: %%VERSION%%
Release: %%RELEASE%%%{?dist}.ngx
Group: Development/Libraries
+Requires: unit == %%VERSION%%-%%RELEASE%%%{?dist}.ngx
%description devel
Library and include files required for NGINX Unit modules development.