aboutsummaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-01-18 12:53:20 +0000
committerJoão Valverde <j@v6e.pt>2023-01-18 13:03:55 +0000
commit3335197b42f4febe6bde663812b5a379e8fda688 (patch)
treebdcf7ff3a8fd74b856c62c3ca03d65d49ed27e85 /packaging
parent83f57bd4c2eaf13f0ec1069a20ac39c15a397488 (diff)
RPM: Fix header installation
Diffstat (limited to 'packaging')
-rw-r--r--packaging/rpm/wireshark.spec.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/packaging/rpm/wireshark.spec.in b/packaging/rpm/wireshark.spec.in
index ab673a453a..b1dab3574e 100644
--- a/packaging/rpm/wireshark.spec.in
+++ b/packaging/rpm/wireshark.spec.in
@@ -401,11 +401,14 @@ cd %{__cmake_builddir}
%if 0%{?rhel} && ( 0%{?rhel} <= 7 ) || (0%{?suse_version} && 0%{?sle_version} <= 150100)
%if %{with ninja}
%ninja_install
+DESTDIR=%{buildroot} %{__ninja} %{__ninja_common_opts} install-headers
%else
-make DESTDIR=$RPM_BUILD_ROOT install -C %{__cmake_builddir}
+make DESTDIR=$RPM_BUILD_ROOT -C %{__cmake_builddir} install
+make DESTDIR=$RPM_BUILD_ROOT -C %{__cmake_builddir} install-headers
%endif
%else
%cmake_install
+%cmake_install --component Development
%endif
%if %{with guides}