Blame golang-github-rwcarlsen-goexif.spec

46a877b
# Generated by go2rpm
46a877b
%bcond_without check
46a877b
46a877b
# https://github.com/rwcarlsen/goexif
46a877b
%global goipath         github.com/rwcarlsen/goexif
5a4222f
%global commit          9e8deecbddbd4989a3e8d003684b783412b41e7a
46a877b
46a877b
%gometa
46a877b
46a877b
%global common_description %{expand:
46a877b
This package provides decoding of basic exif and tiff encoded data.}
46a877b
46a877b
%global golicenses      LICENSE
46a877b
%global godocs          README.md README-exif.md
46a877b
46a877b
Name:           %{goname}
46a877b
Version:        0
c2a79f7
Release:        0.5%{?dist}
46a877b
Summary:        Decode embedded EXIF meta data from image files
46a877b
46a877b
# Upstream license specification: BSD-2-Clause
46a877b
License:        BSD
46a877b
URL:            %{gourl}
46a877b
Source0:        %{gosource}
46a877b
46a877b
%description
46a877b
%{common_description}
46a877b
46a877b
%gopkg
46a877b
46a877b
%prep
46a877b
%goprep
46a877b
mv exif/README.md README-exif.md
46a877b
46a877b
%build
46a877b
for cmd in exif exifstat; do
46a877b
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
46a877b
done
46a877b
mv %{gobuilddir}/bin/exif %{gobuilddir}/bin/goexif
46a877b
mv %{gobuilddir}/bin/exifstat %{gobuilddir}/bin/goexifstat
46a877b
46a877b
%install
46a877b
%gopkginstall
46a877b
install -m 0755 -vd                     %{buildroot}%{_bindir}
46a877b
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
46a877b
46a877b
%if %{with check}
46a877b
%check
46a877b
%gocheck
46a877b
%endif
46a877b
46a877b
%files
46a877b
%license LICENSE
46a877b
%doc README.md README-exif.md
46a877b
%{_bindir}/*
46a877b
46a877b
%gopkgfiles
46a877b
46a877b
%changelog
c2a79f7
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.5
c2a79f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c2a79f7
b9bc7e4
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.4
b9bc7e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b9bc7e4
5a4222f
* Thu Oct 17 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0-0.3.20191017git9e8deec
5a4222f
- Update to latest commit
5a4222f
5a4222f
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2.20190626git41dad3a
883f95b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
883f95b
46a877b
* Tue Apr 30 22:27:11 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20190626git41dad3a
46a877b
- Initial package