Blob Blame Raw
# Generated by go2rpm
%bcond_without check

# https://github.com/Kagami/go-avif
%global goipath         github.com/Kagami/go-avif
Version:                0.1.0

%gometa

%global common_description %{expand:
Go-avif implements AVIF (AV1 Still Image File Format) encoder for Go using
libaom, the high quality AV1 codec.}

%global golicenses      COPYING
%global godocs          README.md

Name:           go-avif
Release:        3%{?dist}
Summary:        AVIF (AV1 Still Image File Format) encoder for Go

# Upstream license specification: CC0-1.0
License:        CC0
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/docopt/docopt-go)
BuildRequires:  pkgconfig(aom)

%description
%{common_description}

%gopkg

%prep
%goprep

%build
for cmd in cmd/* ; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done

%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/avif %{buildroot}%{_bindir}/go-avif

%if %{with check}
%check
%gocheck
%endif

%files
%license COPYING
%doc README.md
%{_bindir}/*

%gopkgfiles

%changelog
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Sat Jul 13 04:36:19 EDT 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.1.0-2
- Update to latest Go macros

* Fri Apr 12 13:14:08 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.1.0-1
- Initial package