This branch is 3 commits behind misaka00251/go2spec:master
2026-07-20 21:26:47 +08:00
2026-07-20 21:26:47 +08:00
2026-06-09 18:30:34 +08:00
2026-06-11 00:28:35 +08:00
2025-12-01 14:27:48 +08:00
2026-07-09 04:12:31 +00:00
2026-07-09 04:12:31 +00:00
2026-07-20 21:26:47 +08:00
2026-07-09 04:12:52 +00:00
2026-07-09 04:12:31 +00:00
2026-07-09 04:12:31 +00:00
2025-12-01 14:27:48 +08:00
2026-07-20 21:26:47 +08:00
2026-07-20 21:26:47 +08:00
2026-07-09 04:12:31 +00:00
2026-07-09 04:12:31 +00:00

go2spec

Status License Language 中文文档

Overview

go2spec is a Go package helper for the openRuyi RPM packaging workflow. It collects upstream metadata from the Go ecosystem, generates source archives, and writes RPM spec files.

Installation

Build From Source

git clone <go2spec-repo-url>
cd go2spec
go build -o go2spec .

Run it with:

./go2spec help

Quick Start

Generate a spec

go2spec pack golang.org/x/net

The command creates a file layout similar to this in the current directory:

go-golang-x-net/
go-golang-x-net/go-golang-x-net.spec
go-golang-x-net_<version>.orig.tar.<gz|xz>

Check existing spec updates without writing files

go2spec update -n /path/to/SPECS

update scans /path/to/SPECS/go-*/*.spec, then checks the latest upstream version.

Run updates concurrently

go2spec update -j 4 /path/to/SPECS

Always run dry run mode first before modifying real spec files.

Documentation

Area English Chinese
Main README README.md README.zh.md
pack command docs/en/pack.en.md docs/zh/pack.zh.md
update command docs/en/update.en.md docs/zh/update.zh.md

Contributing

License

go2spec uses the BSD-3-Clause license. See LICENSE.

S
Description
This program is highly expermental.
Readme 631 KiB
Languages
Go 100%