Skip to content

dist: add missing BuildRequires to spec file#289

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
glimchb:rpm
Mar 14, 2022
Merged

dist: add missing BuildRequires to spec file#289
igaw merged 1 commit intolinux-nvme:masterfrom
glimchb:rpm

Conversation

@glimchb
Copy link
Copy Markdown
Contributor

@glimchb glimchb commented Mar 13, 2022

@glimchb glimchb marked this pull request as ready for review March 13, 2022 14:26
@igaw igaw merged commit d1639f4 into linux-nvme:master Mar 14, 2022
@glimchb glimchb deleted the rpm branch March 14, 2022 09:49
@glimchb
Copy link
Copy Markdown
Contributor Author

glimchb commented Mar 14, 2022

@igaw how do you usually build RPM with meson ? I do it probably the wrong way like this:

meson dist -C .build --formats gztar
cp .build/meson-dist/libnvme-1.0.tar.gz ~/rpmbuild/SOURCES/
rpmbuild -ba .build/libnvme.spec

any better way ?

@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Mar 14, 2022

As far I can tell, most distro do no use upstream spec files, instead they have their own which usually is embedded into a build system. The spec file provided here is thought as quick way for a developer to build a rpm and then distribute to the testers.

So I can't really say if you are doing it wrong as I am using the build service from openSUSE. But looking at your snipped, I think this could be added to the Makefile as special target if meson doesn't really provide anything in this regard.

@glimchb
Copy link
Copy Markdown
Contributor Author

glimchb commented Mar 14, 2022

added here #290 @igaw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RPM: spec file is missing BuildRequires:meson

2 participants