Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jc21 committed Jul 8, 2024
0 parents commit aeefb28
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.idea
._*
.DS_Store
RPMS
SRPMS
DEPS

41 changes: 41 additions & 0 deletions Jenkinsfile.el8
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"'
}
}
}
41 changes: 41 additions & 0 deletions Jenkinsfile.el9
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"'
}
}
}
3 changes: 3 additions & 0 deletions README.md
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 added SOURCES/v0.2.1.tar.gz
Binary file not shown.
39 changes: 39 additions & 0 deletions SPECS/impala.spec
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
7 changes: 7 additions & 0 deletions rpm.json
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"
}
}

0 comments on commit aeefb28

Please sign in to comment.