Skip to content

Commit 5f89dfd

Browse files
sc108-leeigaw
authored andcommitted
rpm: use defined prefix from meson
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]>
1 parent 3e293a1 commit 5f89dfd

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libnvme.spec.in

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Provides: libnvme.so.1
2121
This package provides header files to include and libraries to link with
2222
for Linux-native nvme device maangement.
2323

24+
%define _prefix @PREFIX@
25+
2426
%prep
2527
%autosetup -c
2628

meson.build

+1
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ substs = configuration_data()
264264
substs.set('NAME', meson.project_name())
265265
substs.set('VERSION', meson.project_version())
266266
substs.set('LICENSE', meson.project_license()[0])
267+
substs.set('PREFIX', prefixdir)
267268
configure_file(
268269
input: 'libnvme.spec.in',
269270
output: 'libnvme.spec',

0 commit comments

Comments
 (0)