Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 77567e65e6d54007aacd670fec35ba8d > files > 2

golang-github-microcosm-cc-bluemonday-1.0.1-1.mga7.src.rpm

# Run tests in check section
%bcond_without check

%global goipath         github.com/microcosm-cc/bluemonday
Version:                1.0.1

%global common_description %{expand:
bluemonday is a HTML sanitizer implemented in Go. It is fast and highly 
configurable.

bluemonday takes untrusted user generated content as an input, and will 
return HTML that has been sanitised against a whitelist of approved HTML 
elements and attributes so that you can safely include the content in your 
web page.}

%gometa

Name:           %{goname}
Release:        1%{?dist}
Summary:        Fast golang HTML sanitizer
Group:          Development/Other
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}
BuildArch:      noarch

BuildRequires: golang(golang.org/x/net/html)

%description
%{common_description}


%package devel
Summary:       %{summary}

%description devel
%{common_description}

This package contains library source intended for
building other packages which use import path with
%{goipath} prefix.


%prep
%forgeautosetup


%install
%goinstall


%if %{with check}
%check
%gochecks
%endif


%files devel -f devel.file-list
%license LICENSE.md
%doc README.md CREDITS.md CONTRIBUTING.md




%changelog
* Mon Nov 26 2018 pterjan <pterjan> 1.0.1-1.mga7
+ Revision: 1334724
- imported package golang-github-microcosm-cc-bluemonday