First packaging
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
name: Build and provide rpm of gitea
|
||||
run-name: Build gitea from ${{ gitea.repository }} on COPR
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
fedoraversion:
|
||||
type: choice
|
||||
description: "Choose a fedora release"
|
||||
required: true
|
||||
options: [f43, rawhide]
|
||||
coprproject:
|
||||
type: choice
|
||||
description: "Which repo"
|
||||
required: true
|
||||
options: [packages, packages-test]
|
||||
jobs:
|
||||
coprbuild:
|
||||
name: "Start build on COPR"
|
||||
runs-on: ${{ inputs.fedoraversion }}-minimal-copr
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://git.demus.dk/actions/git-clone@main
|
||||
- name: Build src.rpm and send to COPR
|
||||
uses: https://git.demus.dk/actions/copr-build@main
|
||||
with:
|
||||
copr_config: ${{ secrets.COPR_API_CONFIG }}
|
||||
copr_project: ${{ inputs.coprproject }}
|
||||
fedora_release: ${{ inputs.fedoraversion }}
|
||||
@@ -0,0 +1,19 @@
|
||||
name: Build and provide rpm of gitea
|
||||
run-name: Build gitea from ${{ gitea.repository }} on COPR
|
||||
on: [release]
|
||||
jobs:
|
||||
coprbuild:
|
||||
name: "Start build on COPR"
|
||||
strategy:
|
||||
matrix:
|
||||
fedoraversion: [f43, rawhide]
|
||||
runs-on: ${{ matrix.fedoraversion }}-minimal-copr
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://git.demus.dk/actions/git-clone@main
|
||||
- name: Build src.rpm and send to COPR
|
||||
uses: https://git.demus.dk/actions/copr-build@main
|
||||
with:
|
||||
copr_config: ${{ secrets.COPR_API_CONFIG }}
|
||||
copr_project: packages
|
||||
fedora_release: ${{ matrix.fedoraversion }}
|
||||
@@ -0,0 +1,23 @@
|
||||
name: Build and provide rpm of demus profiles
|
||||
run-name: Rpmbuild demus-profile at ${{ gitea.repository }} by ${{ github.actor }}
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
runsonlabel:
|
||||
type: choice
|
||||
description: "Choose a label"
|
||||
required: true
|
||||
options: [ f42, f43, rawhide ]
|
||||
jobs:
|
||||
rpmbuild:
|
||||
name: "Run rpmbuild"
|
||||
runs-on: ${{ inputs.runsonlabel }}-minimal-rpmbuild
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://git.demus.dk/actions/git-clone@main
|
||||
- name: Build the rpms
|
||||
uses: https://git.demus.dk/actions/rpmbuild@main
|
||||
- name: Deploy to packages
|
||||
uses: https://git.demus.dk/actions/rpm-deploy@main
|
||||
with:
|
||||
pat: ${{ secrets.RPM_REPO_WRITE }}
|
||||
@@ -0,0 +1,19 @@
|
||||
name: Build and provide rpm of demus profiles
|
||||
run-name: Rpmbuild demus-profile by @${{ github.actor }}
|
||||
on: [release]
|
||||
jobs:
|
||||
rpmbuild:
|
||||
name: "Run rpmbuild"
|
||||
strategy:
|
||||
matrix:
|
||||
rpmbuilder: [ f42, f43, rawhide ]
|
||||
runs-on: ${{ matrix.rpmbuilder }}-minimal-rpmbuild
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://git.demus.dk/actions/git-clone@main
|
||||
- name: Build the rpms
|
||||
uses: https://git.demus.dk/actions/rpmbuild@main
|
||||
- name: Deploy to packages
|
||||
uses: https://git.demus.dk/actions/rpm-deploy@main
|
||||
with:
|
||||
pat: ${{ secrets.RPM_REPO_WRITE }}
|
||||
@@ -0,0 +1,45 @@
|
||||
%global upstreamname bats-support
|
||||
%global bats_libdir %{_prefix}/lib/%{upstreamname}
|
||||
|
||||
Name: bats-support
|
||||
Version: 0.3.0
|
||||
Release: %autorelease
|
||||
Summary: Bash Automated Testing System support library
|
||||
|
||||
License: CC0-1.0
|
||||
URL: https://github.com/bats-core/%{upstreamname}
|
||||
Source: https://github.com/bats-core/%{upstreamname}/archive/v%{version}.tar.gz#/%{upstreamname}-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: bats parallel
|
||||
BuildRequires: bats parallel procps-ng
|
||||
|
||||
%description
|
||||
Bats is a TAP-compliant testing framework for Bash. It provides a simple way to
|
||||
verify that the UNIX programs you write behave as expected. Bats is most useful
|
||||
when testing software written in Bash, but you can use it to test any UNIX
|
||||
program.
|
||||
|
||||
bats-support is a supporting library providing common functions to test helper
|
||||
libraries written for Bats.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{upstreamname}-%{version} -p1
|
||||
|
||||
%install
|
||||
%{__install} -D -m 0755 -t %{buildroot}%{bats_libdir} load.bash
|
||||
%{__install} -D -m 0755 -t %{buildroot}%{bats_libdir}/src src/*
|
||||
%dnl install.sh should turn up with the next release
|
||||
%dnl ./install.sh ${RPM_BUILD_ROOT}%{_prefix}
|
||||
|
||||
%check
|
||||
bats test
|
||||
|
||||
%files
|
||||
%doc README.md CHANGELOG.md
|
||||
%license LICENSE
|
||||
%{bats_libdir}
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Reference in New Issue
Block a user