File go-blackfriday.spec of Package go-blackfriday.708

#
# spec file for package go-blackfriday
#
# 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         russross
%global repo            blackfriday
%global import_path     %{provider}.%{provider_tld}/%{project}/%{repo}

Name:           go-blackfriday
Version:        1.2
Release:        0
Summary:        Markdown processor implemented in Go
License:        BSD-2-Clause
Group:          Development/Languages/Other
URL:            https://%{import_path}
Source0:        https://%{import_path}/archive/v%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  go-devel
BuildRequires:  go-go.net
BuildRequires:  findutils
BuildRequires:  sed
Provides:       golang(%{import_path}) = %{version}-%{release}
%{go_provides}
%{go_requires}

%description
Blackfriday is a Markdown processor implemented in Go. It is paranoid about its input (so you can safely feed it user-supplied data), it is fast, it supports common extensions (tables, smart punctuation substitutions, etc.), and it is safe for all utf-8 (unicode) input.

HTML output is currently supported, along with Smartypants extensions. An experimental LaTeX output engine is also included.

%package doc
Summary:        API documenation
Group:          Documentation/Other
Requires:       %{name} = %{version}

%description doc
API, examples and documentation.

%prep
%setup -q -n %{repo}-%{version}

# go.net package import path changed in _some_ targets
if [ -d "%{go_contribdir}/golang.org/x/net" ]; then
  find . -type f -print0 | xargs -0 sed -i 's,code.google.com/p/go.net,golang.org/x/net,g'
fi

%build
%goprep %{import_path}
%gobuild ...

%install
%goinstall
%godoc
%gotest %{import_path}

%files
%defattr(-,root,root,-)
%doc README.md
%{go_contribdir}/*

%files doc
%defattr(-,root,root,-)
%{go_contribsrcdir}/*

%changelog
openSUSE Build Service is sponsored by