forked from misaka00251/go2spec
add-docs
This branch is 3 commits behind misaka00251/go2spec:master
go2spec
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
- Read the openRuyi Code of Conduct and agree to follow it.
- Read the AI-assisted Contribution Policy, and note that this Pull Request contains substantial AI-assisted content when applicable.
License
go2spec uses the BSD-3-Clause license. See LICENSE.
Description
Languages
Go
100%