generated from Cray-HPE/metal-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This removes the .version files and uses git-tags. This also builds canu inside of the RPM spec file, and then uses the RPM from there. The spec file will create a canu user.
- Loading branch information
Showing
19 changed files
with
170 additions
and
131 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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 @@ | ||
include readme.md |
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,27 +1,44 @@ | ||
%global __python /usr/local/bin/python3.10 | ||
%define __pyinstaller /home/jenkins/.local/bin/pyinstaller | ||
|
||
Name: canu | ||
BuildArch: x86_64 | ||
License: MIT License | ||
Summary: CSM Automatic Network Utility | ||
Version: %(cat .version) | ||
Release: %(echo ${BUILD_METADATA}) | ||
Version: %(echo $VERSION) | ||
Release: 1 | ||
Source: %{name}-%{version}.tar.bz2 | ||
Vendor: Cray Inc. | ||
Group: Metal | ||
Vendor: Cray HPE | ||
|
||
%description | ||
CSM Automatic Network Utility | ||
%{summary} | ||
|
||
%prep | ||
%setup -q | ||
|
||
%build | ||
# PIP and Setuptools updates. | ||
%{__python} -m pip install -U pyinstaller | ||
|
||
# Build the wheel. | ||
%{__python} -m pip install -q build | ||
%{__python} -m build | ||
|
||
%install | ||
mv pyinstaller.py pyinstaller.spec | ||
%{__pyinstaller} pyinstaller.spec | ||
|
||
mkdir -p %{buildroot}%{_bindir} | ||
install -m 755 dist/linux/canu %{buildroot}%{_bindir}/canu | ||
install -m 755 dist/canu %{buildroot}%{_bindir}/canu | ||
|
||
%pre | ||
useradd -ms /bin/bash canu | ||
|
||
%preun | ||
userdel canu | ||
|
||
%files | ||
%{_bindir}/canu | ||
%attr(755, canu, canu) %{_bindir}/canu | ||
%license LICENSE | ||
|
||
%changelog |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.