Skip to content

Conversation

@akritkbehera
Copy link
Collaborator

This adds support for generating spec files using rpmBuild if --generate-rpm flag is used while building packages.

@akritkbehera
Copy link
Collaborator Author

akritkbehera commented Dec 11, 2025

Hi @smuzaffar.
I have implemented the RPM dependency resolution in the file
https://github.com/akritkbehera/bits-org/blob/f5bb4ac882b08666f22b35849dfeff18612a800b/bits_helpers/dependency.py
and we implement the checking towards at the end of build.py
If you could take a look at it.

--define "_topdir $WORK_DIR/rpmbuild" \
--define "buildroot $WORK_DIR/rpmbuild/BUILDROOT/${PKGNAME}" \
"$WORK_DIR/rpmbuild/SPECS/${PKGNAME}.spec"
fi No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akritkbehera , I would suggest to dump rpm provides and requires here and then run dependency checking ( by finding all its requires from its dependency packages). This way dependency checking can be run in parallel and once we are done here then package should be ready to be uploaded.

cp -a %{workdir}/%{path}/* %{buildroot}

%files
/* No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akritkbehera , I would suggest to add a %post section too which can just call the relocation script . This way we can have fully working RPM package

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.

2 participants