mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-12 06:30:38 +00:00
* add: git-biance
* add: act, atac
* Update anda/langs/rust/atac/atac.spec
Co-authored-by: madomado <madonuko@outlook.com>
Signed-off-by: xiaoshihou <xiaoshihou@tutamail.com>
* fix: apply reviewer changes
* fix: add packager, less verbose pkg name
* Update anda/langs/go/act/act.spec
Co-authored-by: Gilver <rockgrub@disroot.org>
Signed-off-by: xiaoshihou <xiaoshihou@tutamail.com>
* Update anda/langs/go/act/act.spec
Co-authored-by: Gilver <rockgrub@disroot.org>
Signed-off-by: xiaoshihou <xiaoshihou@tutamail.com>
* revert: non-working go_build_online
* Update anda/langs/go/act/act.spec
Co-authored-by: Gilver <rockgrub@disroot.org>
Signed-off-by: xiaoshihou <xiaoshihou@tutamail.com>
* fix: remove redundant sections
* fix: remove redundant description
* ref: just package it manually...
* fix: apply oniguruma cflag fix as suggested
* fix: skip #! check
* fix(act): feed in the version
* fix: name conflict
* wip: rename the act package
* chore: remove non doc file
* fix: add build dep
---------
Signed-off-by: xiaoshihou <xiaoshihou@tutamail.com>
Co-authored-by: madomado <madonuko@outlook.com>
Co-authored-by: Gilver <rockgrub@disroot.org>
(cherry picked from commit 60f5fbf94c)
Co-authored-by: xiaoshihou <xiaoshihou@tutamail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "atac.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
%global crate atac
|
||||
|
||||
%if 0%{?fedora} >= 42
|
||||
%global build_cflags %{__build_flags_lang_c} %{?_distro_extra_cflags} -std=gnu18
|
||||
%endif
|
||||
%global __brp_mangle_shebangs %{nil}
|
||||
|
||||
Name: atac
|
||||
Version: 0.19.0
|
||||
Release: 1%?dist
|
||||
Summary: Arguably a Terminal API Client
|
||||
|
||||
License: MIT
|
||||
URL: https://crates.io/crates/atac
|
||||
Source: %{crates_source}
|
||||
|
||||
Packager: xiaoshihou <xiaoshihou@tutamail.com>
|
||||
BuildRequires: anda-srpm-macros cargo-rpm-macros mold
|
||||
|
||||
%global _description %{expand:
|
||||
Arguably a Terminal API Client. Feature-full, free, open-source, offline
|
||||
and account-less.}
|
||||
|
||||
%description -n %{crate} %{_description}
|
||||
|
||||
%files -n %{crate}
|
||||
%license LICENSE
|
||||
%license LICENSE.dependencies
|
||||
%doc README.md
|
||||
%{_bindir}/%{crate}
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep_online
|
||||
|
||||
%build
|
||||
%{cargo_license_summary_online}
|
||||
%{cargo_license_online} > LICENSE.dependencies
|
||||
|
||||
%install
|
||||
%cargo_install
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(crates("atac"));
|
||||
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "git-biance.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
%global crate git-biance
|
||||
|
||||
Name: git-biance
|
||||
Version: 0.1.2
|
||||
Release: 1%?dist
|
||||
Summary: Visualize code contributions in a GitHub-style graph.
|
||||
|
||||
License: GPL-3.0
|
||||
URL: https://crates.io/crates/git-biance
|
||||
Source: %{crates_source}
|
||||
|
||||
Packager: xiaoshihou <xiaoshihou@tutamail.com>
|
||||
BuildRequires: anda-srpm-macros cargo-rpm-macros mold
|
||||
|
||||
%global _description %{expand:
|
||||
biance(鞭策,biān cè,spur)is a small rust
|
||||
program that shows and visualizes code contributions
|
||||
in a git repository.
|
||||
}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%description -n %{crate} %{_description}
|
||||
|
||||
%files -n %{crate}
|
||||
%license LICENSE
|
||||
%license LICENSE.dependencies
|
||||
%doc README.md README-zh.md
|
||||
%{_bindir}/%{crate}
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep_online
|
||||
|
||||
%build
|
||||
%{cargo_license_summary_online}
|
||||
%{cargo_license_online} > LICENSE.dependencies
|
||||
|
||||
%install
|
||||
%cargo_install
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(crates("git-biance"));
|
||||
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "gh-act.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
# Generated by go2rpm 1.15.0
|
||||
%bcond check 1
|
||||
%bcond bootstrap 0
|
||||
|
||||
%if %{with bootstrap}
|
||||
%global debug_package %{nil}
|
||||
%endif
|
||||
|
||||
%if %{with bootstrap}
|
||||
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
|
||||
%endif
|
||||
|
||||
# https://github.com/nektos/act
|
||||
%global goipath github.com/nektos/act
|
||||
Version: 0.2.75
|
||||
|
||||
%gometa -f
|
||||
|
||||
%global common_description %{expand:
|
||||
Run your GitHub Actions locally
|
||||
}
|
||||
|
||||
%global golicenses LICENSE pkg/lookpath/LICENSE
|
||||
%global godocs README.md
|
||||
|
||||
Name: gh-act
|
||||
Release: %autorelease
|
||||
Summary: None
|
||||
|
||||
License: MIT AND ISC AND BSD-3-Clause AND Apache-2.0 AND BSD-2-Clause
|
||||
URL: %{gourl}
|
||||
Source: %{gosource}
|
||||
Packager: xiaoshihou <xiaoshihou@tutamail.com>
|
||||
BuildRequires: anda-srpm-macros
|
||||
|
||||
%description %{common_description}
|
||||
|
||||
%gopkg
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n act-%{version}
|
||||
%go_prep_online
|
||||
|
||||
%if %{without bootstrap}
|
||||
%build
|
||||
%define gomodulesmode GO111MODULE=on
|
||||
%define __gobuild_extldflags -X main.version=%version
|
||||
%gobuild -o %{gobuilddir}/bin/gh-act %{goipath}
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if %{without bootstrap}
|
||||
install -m 0755 -vd %{buildroot}%{_bindir}
|
||||
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
||||
%endif
|
||||
|
||||
%if %{without bootstrap}
|
||||
%if %{with check}
|
||||
%check
|
||||
%gocheck
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{without bootstrap}
|
||||
%files
|
||||
%license LICENSE pkg/lookpath/LICENSE
|
||||
%doc CONTRIBUTING.md IMAGES.md README.md
|
||||
%{_bindir}/gh-act
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("nektos/act"));
|
||||
Reference in New Issue
Block a user