package created using the webbuild interface [release 1.0.4-1mamba;Sat Jan 02 2016]
This commit is contained in:
parent
3a0270371d
commit
a137493613
51
go-md2man.spec
Normal file
51
go-md2man.spec
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
Name: go-md2man
|
||||||
|
Version: 1.0.4
|
||||||
|
Release: 1mamba
|
||||||
|
Summary: go md to man conversion tool
|
||||||
|
Group: Development/Tools
|
||||||
|
Vendor: openmamba
|
||||||
|
Distribution: openmamba
|
||||||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
|
URL: https://github.com/cpuguy83/go-md2man
|
||||||
|
## GITSOURCE https://github.com/cpuguy83/go-md2man.git v1.0.4
|
||||||
|
Source: https://github.com/cpuguy83/go-md2man.git/v%{version}/go-md2man-%{version}.tar.bz2
|
||||||
|
License: MIT
|
||||||
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: libgcc
|
||||||
|
BuildRequires: libgo-devel
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
|
%description
|
||||||
|
go md to man conversion tool.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
export GOPATH=$(readlink -f .)
|
||||||
|
repo=src/github.com/cpuguy83
|
||||||
|
mkdir -p $repo
|
||||||
|
ln -sf ../../.. $repo/go-md2man
|
||||||
|
go get ./... || true
|
||||||
|
go build -v -o go-md2man github.com/cpuguy83/go-md2man
|
||||||
|
./go-md2man -in=go-md2man.1.md -out=go-md2man.1
|
||||||
|
|
||||||
|
%install
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
install -Dm755 go-md2man %{buildroot}%{_bindir}/go-md2man
|
||||||
|
install -Dm755 go-md2man.1 %{buildroot}%{_mandir}/man1/go-md2man.1
|
||||||
|
|
||||||
|
%clean
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/go-md2man
|
||||||
|
%{_mandir}/man1/go-md2man.1.gz
|
||||||
|
%doc LICENSE.md
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Jan 02 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.4-1mamba
|
||||||
|
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user