-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit aeefb28
Showing
7 changed files
with
138 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.idea | ||
._* | ||
.DS_Store | ||
RPMS | ||
SRPMS | ||
DEPS | ||
|
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,41 @@ | ||
@Library('jc21') _ | ||
|
||
pipeline { | ||
options { | ||
buildDiscarder(logRotator(numToKeepStr: '10')) | ||
disableConcurrentBuilds() | ||
ansiColor('xterm') | ||
} | ||
agent { | ||
label 'rpm' | ||
} | ||
stages { | ||
stage('Build') { | ||
steps { | ||
rpmBuild(8, 'rust') | ||
rpmSign() | ||
} | ||
} | ||
stage('Publish') { | ||
steps { | ||
dir(path: 'RPMS') { | ||
archiveArtifacts(artifacts: '**/*/*.rpm', caseSensitive: true, onlyIfSuccessful: true) | ||
} | ||
dir(path: 'SRPMS') { | ||
archiveArtifacts(artifacts: '**/*.src.rpm', caseSensitive: true, onlyIfSuccessful: true, allowEmptyArchive: true) | ||
} | ||
rpmGithubRelease() | ||
} | ||
} | ||
} | ||
post { | ||
success { | ||
juxtapose event: 'success' | ||
sh 'figlet "SUCCESS"' | ||
} | ||
failure { | ||
juxtapose event: 'failure' | ||
sh 'figlet "FAILURE"' | ||
} | ||
} | ||
} |
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,41 @@ | ||
@Library('jc21') _ | ||
|
||
pipeline { | ||
options { | ||
buildDiscarder(logRotator(numToKeepStr: '10')) | ||
disableConcurrentBuilds() | ||
ansiColor('xterm') | ||
} | ||
agent { | ||
label 'rpm' | ||
} | ||
stages { | ||
stage('Build') { | ||
steps { | ||
rpmBuild(9, 'rust') | ||
rpmSign() | ||
} | ||
} | ||
stage('Publish') { | ||
steps { | ||
dir(path: 'RPMS') { | ||
archiveArtifacts(artifacts: '**/*/*.rpm', caseSensitive: true, onlyIfSuccessful: true) | ||
} | ||
dir(path: 'SRPMS') { | ||
archiveArtifacts(artifacts: '**/*.src.rpm', caseSensitive: true, onlyIfSuccessful: true, allowEmptyArchive: true) | ||
} | ||
rpmGithubRelease() | ||
} | ||
} | ||
} | ||
post { | ||
success { | ||
juxtapose event: 'success' | ||
sh 'figlet "SUCCESS"' | ||
} | ||
failure { | ||
juxtapose event: 'failure' | ||
sh 'figlet "FAILURE"' | ||
} | ||
} | ||
} |
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,3 @@ | ||
# [impala](https://github.com/pythops/impala) | ||
|
||
Builds for Enterprise Linux hosted on [yum.jc21.com](https://yum.jc21.com) |
Binary file not shown.
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,39 @@ | ||
%global debug_package %{nil} | ||
|
||
Name: impala | ||
Version: 0.2.1 | ||
Release: 1%{?dist} | ||
Summary: TUI for managing wifi on Linux | ||
Group: Applications/System | ||
License: GPLv2 | ||
URL: https://github.com/pythops/%{name} | ||
BuildRequires: cmake | ||
BuildRequires: cargo, rust | ||
Requires: iwd | ||
Source: https://github.com/pythops/%{name}/archive/refs/tags/v%{version}.tar.gz | ||
|
||
%description | ||
Prerequisites: A Linux based OS with iwd installed. | ||
|
||
%prep | ||
%setup -q -n %{name}-%{version} | ||
|
||
%build | ||
cargo build --release | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
mkdir -p %{buildroot}/usr/bin | ||
cp target/release/%{name} %{buildroot}/usr/bin/ | ||
|
||
%clean | ||
rm -rf %{buildroot} | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%doc *.md | ||
/usr/bin/%{name} | ||
|
||
%changelog | ||
* Tue Jul 9 2024 Jamie Curnow <jc@jc21.com> - 0.2.1-1 | ||
- Initial spec |
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,7 @@ | ||
{ | ||
"publish": { | ||
"PACKAGE": "impala", | ||
"GH_USER": "jc21-rpm", | ||
"VERSION": "0.2.1" | ||
} | ||
} |