generated from demus/python3-rpm-template
Simplify gitea workflows
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
name: Build and provide rpm of huami-token
|
||||
run-name: Build huami-token from ${{ gitea.repository }} on COPR
|
||||
on: [release]
|
||||
jobs:
|
||||
rpmbuild:
|
||||
runs-on: rawhide-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: rawhide
|
||||
@@ -1,9 +1,12 @@
|
||||
name: Build and provide rpm of huami-token
|
||||
run-name: Build huami-token from ${{ gitea.repository }} on COPR
|
||||
name: Build and provide rpm of gitea
|
||||
run-name: Build gitea from ${{ gitea.repository }} on COPR
|
||||
on: [release]
|
||||
jobs:
|
||||
rpmbuild:
|
||||
runs-on: f43-minimal-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
|
||||
@@ -1,18 +1,16 @@
|
||||
name: Build and provide rpm of huami-token
|
||||
run-name: Build huami-token from ${{ gitea.repository }} on COPR
|
||||
name: Build and provide rpm of gitea
|
||||
run-name: Build gitea from ${{ gitea.repository }} on COPR
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
fedora_release:
|
||||
fedoraversion:
|
||||
type: choice
|
||||
description: 'Choose a fedora release'
|
||||
description: "Choose a fedora release"
|
||||
required: true
|
||||
options:
|
||||
- 'f43'
|
||||
- 'rawhide'
|
||||
options: [f43, rawhide]
|
||||
jobs:
|
||||
rpmbuild:
|
||||
runs-on: ${{ inputs.fedora_release }}-minimal-copr
|
||||
runs-on: ${{ inputs.fedoraversion }}-minimal-copr
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://git.demus.dk/actions/git-clone@main
|
||||
@@ -21,4 +19,4 @@ jobs:
|
||||
with:
|
||||
copr_config: ${{ secrets.COPR_API_CONFIG }}
|
||||
copr_project: packages
|
||||
fedora_release: ${{ inputs.fedora_release }}
|
||||
fedora_release: ${{ inputs.fedoraversion }}
|
||||
|
||||
@@ -1,19 +1,16 @@
|
||||
name: Build and provide rpm of huami-token
|
||||
run-name: Rpmbuild huami-token at ${{ gitea.repository }} by ${{ github.actor }}
|
||||
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'
|
||||
description: "Choose a label"
|
||||
required: true
|
||||
options:
|
||||
- 'f42-minimal-rpmbuild'
|
||||
- 'f43-minimal-rpmbuild'
|
||||
- 'rawhide-minimal-rpmbuild'
|
||||
options: [ f42, f43, rawhide ]
|
||||
jobs:
|
||||
rpmbuild:
|
||||
runs-on: ${{ inputs.runsonlabel }}
|
||||
runs-on: ${{ inputs.runsonlabel }}-minimal-rpmbuild
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://git.demus.dk/actions/git-clone@main
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
name: Build and provide rpm of huami-token
|
||||
run-name: Rpmbuild huami-token by ${{ github.actor }}
|
||||
on: [release]
|
||||
jobs:
|
||||
rpmbuild:
|
||||
runs-on: f42-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 }}
|
||||
@@ -1,15 +0,0 @@
|
||||
name: Build and provide rpm of huami-token
|
||||
run-name: Rpmbuild huami-token by ${{ github.actor }}
|
||||
on: [release]
|
||||
jobs:
|
||||
rpmbuild:
|
||||
runs-on: f43-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 }}
|
||||
+6
-3
@@ -1,9 +1,12 @@
|
||||
name: Build and provide rpm of huami-token
|
||||
run-name: Rpmbuild huami-token by ${{ github.actor }}
|
||||
name: Build and provide rpm of demus profiles
|
||||
run-name: Rpmbuild demus-profile by @${{ github.actor }}
|
||||
on: [release]
|
||||
jobs:
|
||||
rpmbuild:
|
||||
runs-on: rawhide-minimal-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
|
||||
@@ -1,9 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) <year> <copyright holders>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
+6
-7
@@ -14,7 +14,6 @@ Source2: huami-token.timer
|
||||
Source3: configure-zepp-timer
|
||||
Source4: enable-zepp-timer
|
||||
Source5: README-user-systemd.md
|
||||
Source6: MIT.txt
|
||||
Patch: 01-switch-to-pycrytodomex.patch
|
||||
|
||||
BuildSystem: pyproject
|
||||
@@ -22,7 +21,7 @@ BuildOption(install): -l %{modname}
|
||||
BuildOption(generate_buildrequires): -x dev
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-devel, pyproject-srpm-macros, systemd-rpm-macros
|
||||
Requires: dialog
|
||||
|
||||
|
||||
@@ -34,20 +33,20 @@ Additionally, it downloads the AGPS data packs, cep_alm_pak.zip and cep_7days.zi
|
||||
|
||||
%pyproject_extras_subpkg -n %{pkgname} dev
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{modname}-%{version}
|
||||
%{__cp} %{SOURCE5} .
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files -L %{modname}
|
||||
%{__install} -D -m 0644 -t %{buildroot}%{_userunitdir} %{SOURCE1}
|
||||
%{__install} -D -m 0644 -t %{buildroot}%{_userunitdir} %{SOURCE2}
|
||||
%{__install} -D -m 0755 -t %{buildroot}%{_bindir} %{SOURCE3}
|
||||
%{__install} -D -m 0755 -t %{buildroot}%{_bindir} %{SOURCE4}
|
||||
%{__install} -D -m 0755 -t %{buildroot}%{_docdir}/%{pkgname} %{SOURCE5}
|
||||
%{__install} -D -m 0755 -t %{buildroot}%{_defaultlicensedir}/%{pkgname} %{SOURCE6}
|
||||
|
||||
%pyproject_save_files -L %{modname}
|
||||
|
||||
%files -n %{pkgname} -f %{pyproject_files}
|
||||
%doc README.md README-user-systemd.md
|
||||
%license MIT.txt
|
||||
%{_bindir}
|
||||
%{_userunitdir}/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user