Skip to content
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

pkg: manually set commit hash in fedora spec files #462

Merged
merged 5 commits into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pkg/bin/generate_spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ for RECIPE_PATH in "$RECIPES_DIR"/*/; do
MAINTAINER=$(yq eval '.metadata.maintainer // "Unknown Maintainer"' "$RECIPE_FILE")
SOURCE_URL="https://github.com/ilya-zlobintsev/LACT/archive/refs/tags/v${RECIPE_VERSION}.tar.gz"

LACT_COMMIT_HASH=$(git rev-parse --short v$RECIPE_VERSION)

MAKE_COMMAND_RAW=$(yq eval '.build.steps[0]' "$RECIPE_FILE" | grep -oP '(make.+)')
MAKE_COMMAND=${MAKE_COMMAND_RAW::-1}

Expand Down Expand Up @@ -83,7 +85,7 @@ $MAKE_COMMAND %{?_smp_mflags}

%install
rm -rf %{buildroot}
make install PREFIX=/usr DESTDIR=%{buildroot}
VERGEN_GIT_SHA=$LACT_COMMIT_HASH make install PREFIX=/usr DESTDIR=%{buildroot}

%files
%defattr(-,root,root,-)
Expand Down
2 changes: 1 addition & 1 deletion pkg/fedora-spec/lact-headless.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ AMDGPU control utility
%setup -q -n LACT-%{version}

%build
make build-release-headless %{?_smp_mflags}
VERGEN_GIT_SHA=b818f39 make build-release-headless %{?_smp_mflags}

%install
rm -rf %{buildroot}
Expand Down
2 changes: 1 addition & 1 deletion pkg/fedora-spec/lact-libadwaita.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ AMDGPU control utility
%setup -q -n LACT-%{version}

%build
make build-release-libadwaita %{?_smp_mflags}
VERGEN_GIT_SHA=b818f39 make build-release-libadwaita %{?_smp_mflags}

%install
rm -rf %{buildroot}
Expand Down
2 changes: 1 addition & 1 deletion pkg/fedora-spec/lact.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ AMDGPU control utility
%setup -q -n LACT-%{version}

%build
make build-release %{?_smp_mflags}
VERGEN_GIT_SHA=b818f39 make build-release %{?_smp_mflags}

%install
rm -rf %{buildroot}
Expand Down