# Generated by go2rpm 1
%bcond_without check
# https://github.com/bep/golibsass
%global goipath github.com/bep/golibsass
Version: 1.1.1
%gometa
%global godevelheader %{expand:
Requires: gcc-c++
Requires: libsass-devel}
%global common_description %{expand:
Easy to use Go bindings for LibSass. The primary motivation for this project is
to provide SCSS support to Hugo.}
%global golicenses LICENSE
%global godocs README.md
Name: %{goname}
Release: %autorelease
Summary: Easy to use Go bindings for LibSass
License: MIT
URL: %{gourl}
Source0: %{gosource}
BuildRequires: gcc-c++
BuildRequires: libsass-devel
BuildRequires: golang(github.com/frankban/quicktest)
%description
%{common_description}
%gopkg
%prep
%goprep
# Remove bundled libsass.
rm -r libsass_src
sed -e '/build dev/d' internal/libsass/a__cgo_dev.go > internal/libsass/a__cgo.go
rm internal/libsass/a__cgo_dev.go
%install
%gopkginstall
%if %{with check}
%check
%gocheck
%endif
%gopkgfiles
%changelog
%autochangelog