feat: add source-build RPM spec for COPR - #295
Open
dacrab wants to merge 4 commits into
Open
Conversation
Add a new RPM spec file that builds wayle from source using cargo, replacing the prebuilt-binary-only approach in wayle.spec.in. This enables building on COPR (and other RPM-based build systems) directly from the git repository without needing pre-packaged tarballs. Key changes: - Uses rustup to install the latest stable Rust toolchain - Builds from source via cargo with workspace support - Installs both wayle and wayle-settings binaries - Includes systemd service, desktop file, icons, and shell completions - Tested on Fedora 42-44 and rawhide (x86_64)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packaging/rpm/wayle.spec— a source-build RPM spec that compiles Wayle from source using Cargo, enabling direct builds on COPR and other RPM-based build systems without requiring pre-packaged tarballs.wayle.spec.inonly supports prebuilt binaries from GitHub Releases; this new spec builds from the git repository.What this enables
Users on Fedora (42+, rawhide) can install directly from COPR:
sudo dnf copr enable killcrb/wayle sudo dnf install wayleOr build locally:
rpmbuild -bs packaging/rpm/wayle.spec mock -r fedora-44-x86_64 SRPMS/wayle-*.src.rpmDetails
rustupto install the latest stable Rust toolchain (system Rust on Fedora may be too old foredition = "2024")wayle+wayle-settingsbinaries)Notes
binutilsthat producesld.bfderrors with the latest Rust rlib format. Will add back once COPR updates their aarch64 infrastructure.wayle.spec.in(prebuilt binary approach) is untouched and continues to work for GitHub Release packaging.