[packages/go-md2man] new, version 1.0.5

glen glen at pld-linux.org
Sun May 1 17:51:47 CEST 2016


commit 5856629b86c819c0c1b6897a9cf397b1cc3b47a0
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun May 1 18:50:03 2016 +0300

    new, version 1.0.5
    
    based on fedora golang-github-cpuguy83-go-md2man package, ac5e41b

 go-md2man.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
---
diff --git a/go-md2man.spec b/go-md2man.spec
new file mode 100644
index 0000000..a9b3822
--- /dev/null
+++ b/go-md2man.spec
@@ -0,0 +1,45 @@
+Summary:	Process markdown into manpages
+Name:		go-md2man
+Version:	1.0.5
+Release:	0.1
+License:	MIT
+Group:		Development/Tools
+Source0:	https://github.com/cpuguy83/go-md2man/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	b334c263e113280ec1e9420801b3d452
+URL:		https://github.com/cpuguy83/go-md2man
+ExclusiveArch:	%{ix86} %{x8664} %{arm}
+
+%define		_enable_debug_packages 0
+%define		gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
+
+%description
+go-md2man is a golang tool using blackfriday to process markdown into
+manpages.
+
+%prep
+%setup -q
+
+mkdir -p src/github.com/cpuguy83
+ln -s ../../../ src/github.com/cpuguy83/go-md2man
+
+%build
+export GOPATH=$(pwd)
+
+%gobuild -o bin/go-md2man github.com/cpuguy83/go-md2man
+
+bin/go-md2man -in=go-md2man.1.md -out=go-md2man.1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+cp -p bin/go-md2man $RPM_BUILD_ROOT%{_bindir}
+install -p go-md2man.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE.md
+%attr(755,root,root) %{_bindir}/go-md2man
+%{_mandir}/man1/*.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/go-md2man.git/commitdiff/5856629b86c819c0c1b6897a9cf397b1cc3b47a0



More information about the pld-cvs-commit mailing list