-
Notifications
You must be signed in to change notification settings - Fork 53
Simplify RPM setup #992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
singiamtel
wants to merge
1
commit into
alisw:master
Choose a base branch
from
singiamtel:te172983
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Simplify RPM setup #992
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| Name: alibuild | ||
| Version: %{?version}%{!?version:0} | ||
| Release: 1%{?dist} | ||
| Summary: ALICE Build Tool | ||
| License: GPL-3.0-or-later | ||
| URL: https://github.com/alisw/alibuild | ||
| Source0: alibuild-%{version}-py3-none-any.whl | ||
|
|
||
| BuildArch: noarch | ||
| BuildRequires: python3-devel | ||
| BuildRequires: python3-pip | ||
|
|
||
| Requires: python3 | ||
| Requires: git | ||
| Requires: python3-pyyaml | ||
| Requires: python3-requests | ||
| Requires: python3-distro | ||
|
|
||
| %description | ||
| ALICE Build Tool for building HEP software. | ||
|
|
||
| %prep | ||
| %build | ||
|
|
||
| %install | ||
| %{python3} -m pip install --root %{buildroot} --prefix %{_prefix} --no-deps --no-index %{SOURCE0} | ||
|
|
||
| %files | ||
| %{python3_sitelib}/alibuild_helpers/ | ||
| %{python3_sitelib}/alibuild-*.dist-info/ | ||
| %{_bindir}/aliBuild | ||
| %{_bindir}/alienv | ||
| %{_bindir}/aliDoctor | ||
| %{_bindir}/aliDeps | ||
| %{_bindir}/pb | ||
|
|
||
| %changelog | ||
| * Tue Jan 14 2025 ALICE Offline <alice-offline@cern.ch> | ||
| - See https://github.com/alisw/alibuild/releases for release notes |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| VERSION=${1:?Usage: $0 <version>} | ||
| SPEC=alibuild.spec | ||
|
|
||
| BUILDDIR=$(mktemp -d) | ||
| trap 'rm -rf "$BUILDDIR"' EXIT | ||
|
|
||
| echo "Building alibuild ${VERSION} wheel from current directory..." | ||
|
|
||
| # Build wheel to SOURCES | ||
| mkdir -p "$BUILDDIR/SOURCES" | ||
| SETUPTOOLS_SCM_PRETEND_VERSION="${VERSION}" pip wheel --no-deps --wheel-dir "$BUILDDIR/SOURCES" . | ||
|
|
||
| # Build RPM | ||
| rpmbuild -ba "${SPEC}" \ | ||
| --define "version ${VERSION}" \ | ||
| --define "_topdir ${BUILDDIR}" | ||
|
|
||
| # Copy RPMs to current directory | ||
| cp "$BUILDDIR/RPMS"/*/*.rpm "$BUILDDIR/SRPMS"/*.rpm . | ||
| echo "Done. RPMs copied to current directory." |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unrelated to the RPMs no? Please open a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
rpmbuildI get errors for unused packages inside the RPM, that's why I added itThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the whole PR ready to be tested and merged? If yes, no need to change. If not, all I am saying this is a good cleanup in any case and we can separately merge it already now.