1
0

Accepting request 319148 from home:MargueriteSu:branches:devel:languages:go

OBS-URL: https://build.opensuse.org/request/show/319148
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/golang-github-cpuguy83-go-md2man?expand=0&rev=2
This commit is contained in:
Marguerite Su 2015-07-28 15:14:49 +00:00 committed by Git OBS Bridge
parent 1fe88b4d84
commit 840b69c98e
5 changed files with 41 additions and 31 deletions

16
_service Normal file
View File

@ -0,0 +1,16 @@
<services>
<service name="tar_scm" mode="localonly">
<param name="url">http://github.com/cpuguy83/go-md2man</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="versionformat">1.0.2+git%cd.%h</param>
<param name="revision">master</param>
</service>
<service name="recompress" mode="localonly">
<param name="file">go-md2man-*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="localonly">
<param name="basename">go-md2man</param>
</service>
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aa89ae1e72678be8d650512f166100822df258fb9275c7630bc3fbf67cf3852f
size 3128

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jul 28 12:30:43 UTC 2015 - i@marguerite.su
- rename to golang-github-cpuguy83-md2man
- update version 1.0.2+git20150617.e69ac41
- use golang-packaging for packaging
-------------------------------------------------------------------
Wed May 27 09:06:10 UTC 2015 - dmacvicar@suse.de

View File

@ -15,60 +15,47 @@
# 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
Version: 1.0.2+git20150617.e69ac41
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
URL: https://github.com/cpuguy83/go-md2man
Source0: go-md2man-%{version}.tar.xz
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}
BuildRequires: golang(github.com/russross/blackfriday)
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.
%gosrc_package
%prep
%setup -q -n %{repo}-%{version}
%setup -q -n go-md2man-%{version}
%build
%goprep %{import_path}
%goprep github.com/cpuguy83/go-md2man
%gobuild ...
%install
%goinstall
%godoc
%gotest %{import_path}
%gosrc
%check
%gotest github.com/cpuguy83/go-md2man
%files
%defattr(-,root,root,-)
%{_bindir}/go-md2man
%doc README.md
%{go_contribdir}/*
%{_bindir}/go-md2man
%files doc
%files source
%defattr(-,root,root,-)
%{go_contribsrcdir}/*

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bbb936fbaba460200d0fe97181ba5a64c511d8aa9a647f76587f283a8cc6398f
size 3326