Skip to content

Package for Fedora#163

Merged
Mcdostone merged 3 commits into
Mcdostone:developfrom
julianbraha:feature/packages-for-linux-distributions
Jun 14, 2026
Merged

Package for Fedora#163
Mcdostone merged 3 commits into
Mcdostone:developfrom
julianbraha:feature/packages-for-linux-distributions

Conversation

@julianbraha

Copy link
Copy Markdown
Contributor

Fedora uses a .spec file for packaging.

I used rust2rpm to generate this spec: https://codeberg.org/rust2rpm/rust2rpm
which is configured with a toml file: rust2rpm.toml. Currently it only configures the spec to exclude the standalone binary, in other words, this only packages the library version of nom-kconfig.

@Mcdostone let me know if you would prefer to package the binary too.

I'm marking this PR as a draft until I boot up Fedora and test it

@julianbraha julianbraha force-pushed the feature/packages-for-linux-distributions branch from bbd8401 to 87c75a0 Compare June 3, 2026 06:25
@Mcdostone

Mcdostone commented Jun 4, 2026

Copy link
Copy Markdown
Owner

is it possible to put these 2 new files into a packaging directory?
Maybe packaging/fedora since we might add files for debian?

packaging/
├── debian/
│   └── ...
└── fedora/
    ├── rust-nom-kconfig.spec
    └── rust2rmp.toml

I hope this folder structure won't cause you any trouble to publish to the fedora repository.

I have no idea if it's a good idea to ship a binary for a library. I would not do it personally.

@julianbraha julianbraha marked this pull request as ready for review June 10, 2026 21:52
@julianbraha

Copy link
Copy Markdown
Contributor Author

Okay, I've moved the fedora packaging files into packaging/fedora/.

Note that there is a patch to remove criterion from the Cargo.toml, because this crate is not available in fedora, and this is only used for benchmarking, anyway.

Also, it would be better to release v0.12 of nom-kconfig on crates.io before submitting this to Fedora

@Mcdostone

Copy link
Copy Markdown
Owner

0.12.0 is available

@Mcdostone Mcdostone changed the base branch from feature/packages-for-linux-distributions to develop June 11, 2026 08:56
@julianbraha julianbraha marked this pull request as draft June 13, 2026 09:14
@julianbraha julianbraha force-pushed the feature/packages-for-linux-distributions branch from b634e11 to 9467150 Compare June 13, 2026 18:30
@julianbraha julianbraha marked this pull request as ready for review June 13, 2026 19:02
@julianbraha

Copy link
Copy Markdown
Contributor Author

0.12.0 is available

Thanks, I've updated this PR for v0.12.0

@Mcdostone

Mcdostone commented Jun 13, 2026

Copy link
Copy Markdown
Owner

it seems there a conflict still. You should not rely on my branch feature/packages-for-linux-distributions, there is garbage on this branch I made.

@julianbraha julianbraha force-pushed the feature/packages-for-linux-distributions branch from 45ce100 to 12e62f4 Compare June 13, 2026 23:37
@julianbraha

Copy link
Copy Markdown
Contributor Author

Okay, I've rebased my changes on develop

@Mcdostone Mcdostone merged commit 55916f9 into Mcdostone:develop Jun 14, 2026
33 of 36 checks passed
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