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

spec: Switch to using the source from the github tag #1390

Merged
merged 1 commit into from
Apr 8, 2024
Merged
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
17 changes: 9 additions & 8 deletions lorax.spec
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# NOTE: This specfile is generated from upstream at https://github.com/rhinstaller/lorax
# NOTE: Please submit changes as a pull request
%define debug_package %{nil}
%global forgeurl https://github.com/weldr/lorax

Name: lorax
Version: 41.0
Release: 1%{?dist}
Summary: Tool for creating the anaconda install images

License: GPL-2.0-or-later
URL: https://github.com/weldr/lorax
# To generate Source0 do:
# git clone https://github.com/weldr/lorax
# git checkout -b archive-branch lorax-%%{version}-%%{release}
# tito build --tgz
Source0: %{name}-%{version}.tar.gz

# Get the release without the dist
%define nodist %{lua:r = string.gsub(rpm.expand("%{release}"), rpm.expand("%{?dist}"), ""); print(r)}
%global tag %{name}-%{version}-%{nodist}
%forgemeta
Url: %{forgeurl}
Source0: %{forgesource}

BuildRequires: python3-devel
BuildRequires: python3-setuptools
Expand Down Expand Up @@ -129,7 +130,7 @@ Lorax templates for creating the boot.iso and live isos are placed in
/usr/share/lorax/templates.d/99-generic

%prep
%autosetup -p1 -n %{name}-%{version}
%forgeautosetup

%build

Expand Down