# # spec file for package golang-github-cpuguy83-go-md2man # # Copyright (c) 2015 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %global provider github %global provider_tld com %global project cpuguy83 %global repo go-md2man %global import_path %{provider}.%{provider_tld}/%{project}/%{repo} Name: golang-github-cpuguy83-go-md2man Version: 1.0.2 Release: 0 Summary: Convert markdown into man pages License: MIT Group: Development/Languages/Other URL: https://%{import_path} Source0: https://%{import_path}/archive/v%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: golang-packaging BuildRequires: golang-org-x-net BuildRequires: golang-github-russross-blackfriday Provides: golang(%{import_path}) = %{version}-%{release} Provides: golang(%{import_path}/mangen) = %{version}-%{release} Provides: go-go-md2man = %{version} Obsoletes: go-go-md2man <= %{version} %{go_provides} %description Tool to converts markdown into man pages %package doc Summary: API documenation Group: Documentation/Other Requires: %{name} = %{version} %description doc API, examples and documentation. %prep %setup -q -n %{repo}-%{version} %build %goprep %{import_path} %gobuild ... %install %goinstall %godoc %gotest %{import_path} %files %defattr(-,root,root,-) %{_bindir}/go-md2man %doc README.md %{go_contribdir}/* %files doc %defattr(-,root,root,-) %{go_contribsrcdir}/* %changelog