diff options
author | Konstantin Pavlov <thresh@nginx.com> | 2022-12-07 18:20:44 -0800 |
---|---|---|
committer | Konstantin Pavlov <thresh@nginx.com> | 2022-12-07 18:20:44 -0800 |
commit | 24e3f171029da265ee8cc20fe1a8846a0b49cb43 (patch) | |
tree | d492c3676d919379a1ddcc6adf70d0d2031dd71c /pkg/rpm/unit.spec.in | |
parent | 11c66941ce9146ca85533e8a3169ef3941340896 (diff) | |
download | unit-24e3f171029da265ee8cc20fe1a8846a0b49cb43.tar.gz unit-24e3f171029da265ee8cc20fe1a8846a0b49cb43.tar.bz2 |
Packages: added njs support.
Diffstat (limited to '')
-rw-r--r-- | pkg/rpm/unit.spec.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/rpm/unit.spec.in b/pkg/rpm/unit.spec.in index 50eee876..fddabb69 100644 --- a/pkg/rpm/unit.spec.in +++ b/pkg/rpm/unit.spec.in @@ -46,6 +46,7 @@ Requires(preun): systemd Requires(postun): systemd BuildRequires: pcre2-devel +BuildRequires: pkg-config Provides: unit-r%{version} @@ -74,6 +75,9 @@ Library and include files required for NGINX Unit modules development. %setup -q %build +%{__make} %{?_smp_mflags} -C pkg/contrib .njs + +PKG_CONFIG_PATH=%{bdir}/pkg/contrib/njs/build \ ./configure \ %{CONFIGURE_ARGS} \ --modules=%{_libdir}/unit/debug-modules \ @@ -84,6 +88,8 @@ Library and include files required for NGINX Unit modules development. %{__make} %{?_smp_mflags} %{__make} %{?_smp_mflags} build/libunit.a %{__mv} build build-debug + +PKG_CONFIG_PATH=%{bdir}/pkg/contrib/njs/build \ ./configure \ %{CONFIGURE_ARGS} \ --modules=%{_libdir}/unit/modules \ |