Skip to content

Commit

Permalink
rpm: use defined prefix from meson
Browse files Browse the repository at this point in the history
meson use default prefix with /usr/local
so rpm default macro defined installation directoy occur error

RPM build errors:
    File not found: /root/rpmbuild/BUILDROOT/libnvme-1.11-0.x86_64/usr/lib64/libnvme*

To fix this use defined prefix from meson

Signed-off-by: Steven Seungcheol Lee <[email protected]>
  • Loading branch information
sc108-lee authored and igaw committed Dec 2, 2024
1 parent 3e293a1 commit 5f89dfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libnvme.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Provides: libnvme.so.1
This package provides header files to include and libraries to link with
for Linux-native nvme device maangement.

%define _prefix @PREFIX@

%prep
%autosetup -c

Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ substs = configuration_data()
substs.set('NAME', meson.project_name())
substs.set('VERSION', meson.project_version())
substs.set('LICENSE', meson.project_license()[0])
substs.set('PREFIX', prefixdir)
configure_file(
input: 'libnvme.spec.in',
output: 'libnvme.spec',
Expand Down

0 comments on commit 5f89dfd

Please sign in to comment.