代码拉取完成,页面将自动刷新
%global go_path github.com/cpuguy83
Summary: Converts markdown into roff (man pages)
Name: go-md2man
Version: 2.0.2
Release: 8%{?dist}
License: MIT
URL: https://github.com/cpuguy83/go-md2man
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
BuildRequires: golang go-rpm-macros git
Requires: golang
%description
This package converts markdown into roff (man pages). Uses blackfriday to process markdown into man pages.
%prep
%autosetup -n %{name}-%{version} -p1 -Sgit
%build
export GOPATH=$PWD/.gopath
mkdir -p $GOPATH/src/%{go_path}
ln -sf $PWD .gopath/src/%{go_path}/go-md2man
%gobuild -o go-md2man %{go_path}/go-md2man
./go-md2man -in go-md2man.1.md -out go-md2man.1
%install
install -p -Dm 755 go-md2man %{buildroot}%{_bindir}/go-md2man
install -p -Dm 755 go-md2man.1 %{buildroot}%{_mandir}/man1/go-md2man.1
%files
%license LICENSE.md
%doc README.md go-md2man.1.md
%{_bindir}/go-md2man
%{_mandir}/man1/*
%changelog
* Thu Sep 26 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.2-8
- Rebuilt for clarifying the packages requirement in BaseOS and AppStream
* Fri Aug 16 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.2-7
- Rebuilt for loongarch release
* Fri Sep 08 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.2-6
- Rebuilt for OpenCloudOS Stream 23.09
* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.2-5
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.2-4
- Rebuilt for OpenCloudOS Stream 23
* Tue Dec 20 2022 Shuo Wang <abushwang@tencent.com> - 2.0.2-3
- enable debuginfo
* Fri Dec 16 2022 Shuo Wang <abushwang@tencent.com> - 2.0.2-2
- apply %gobuild macro
* Wed Dec 14 2022 Shuo Wang <abushwang@tencent.com> - 2.0.2-1
- initial build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。