Introduce matugen package
Some checks failed
Build matugen / Build and push image (push) Failing after 37s
Some checks failed
Build matugen / Build and push image (push) Failing after 37s
This commit is contained in:
32
.gitea/workflows/build-matugen.yml
Normal file
32
.gitea/workflows/build-matugen.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Build matugen
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .gitea/workflows/build-matugen.yml
|
||||
- "matugen.spec"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build_push:
|
||||
name: Build and push image
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Setup environment
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y podman iptables
|
||||
|
||||
# These stage versions are pinned by https://github.com/renovatebot/renovate
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6 # v5
|
||||
|
||||
- name: Build RPM and Upload
|
||||
uses: https://git.hydrosaber.com/hydros/build-rpm@main
|
||||
with:
|
||||
spec-file-path: ./matugen.spec
|
||||
repository-user: eriq12
|
||||
repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }}
|
||||
47
matguen.spec
Normal file
47
matguen.spec
Normal file
@@ -0,0 +1,47 @@
|
||||
%bcond_with check
|
||||
|
||||
Name: matugen
|
||||
Version: 3.1.0
|
||||
Release: %autorelease
|
||||
Summary: A material you color generation tool with templates
|
||||
License: GPL-2.0-only
|
||||
|
||||
URL: https://github.com/InioX/matugen
|
||||
Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: cargo-rpm-macros >= 24
|
||||
|
||||
%global _description %{expand:
|
||||
%{summary}.}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
cargo vendor
|
||||
%cargo_prep -v vendor
|
||||
|
||||
%build
|
||||
%cargo_build
|
||||
%{cargo_license_summary}
|
||||
%{cargo_license} > LICENSE.dependencies
|
||||
%{cargo_vendor_manifest}
|
||||
|
||||
%install
|
||||
install -Dpm755 target/release/matugen %{buildroot}%{_bindir}/matugen
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%cargo_test
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%license LICENSE.dependencies
|
||||
%license cargo-vendor.txt
|
||||
%doc CHANGELOG.md
|
||||
%doc README.md
|
||||
%{_bindir}/matugen
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Reference in New Issue
Block a user