From 46a877bb95aa3c8c405d5e9465bae95a9f6c77e0 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Jun 26 2019 17:41:20 +0000 Subject: Initial import Signed-off-by: Robert-André Mauchin --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7db9ee5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/goexif-41dad3aa083329f3f672b7095a9ea8a0c384bbe8.tar.gz diff --git a/golang-github-rwcarlsen-goexif.spec b/golang-github-rwcarlsen-goexif.spec new file mode 100644 index 0000000..a89feae --- /dev/null +++ b/golang-github-rwcarlsen-goexif.spec @@ -0,0 +1,61 @@ +# Generated by go2rpm +%bcond_without check + +# https://github.com/rwcarlsen/goexif +%global goipath github.com/rwcarlsen/goexif +%global commit 41dad3aa083329f3f672b7095a9ea8a0c384bbe8 + +%gometa + +%global common_description %{expand: +This package provides decoding of basic exif and tiff encoded data.} + +%global golicenses LICENSE +%global godocs README.md README-exif.md + +Name: %{goname} +Version: 0 +Release: 0.1%{?dist} +Summary: Decode embedded EXIF meta data from image files + +# Upstream license specification: BSD-2-Clause +License: BSD +URL: %{gourl} +Source0: %{gosource} + +%description +%{common_description} + +%gopkg + +%prep +%goprep +mv exif/README.md README-exif.md + +%build +for cmd in exif exifstat; do + %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd +done +mv %{gobuilddir}/bin/exif %{gobuilddir}/bin/goexif +mv %{gobuilddir}/bin/exifstat %{gobuilddir}/bin/goexifstat + +%install +%gopkginstall +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ + +%if %{with check} +%check +%gocheck +%endif + +%files +%license LICENSE +%doc README.md README-exif.md +%{_bindir}/* + +%gopkgfiles + +%changelog +* Tue Apr 30 22:27:11 CEST 2019 Robert-André Mauchin - 0-0.1.20190626git41dad3a +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..4211fbd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (goexif-41dad3aa083329f3f672b7095a9ea8a0c384bbe8.tar.gz) = 33579078e67a2765cac1ab043fdcc32be78a14ebeb8e2d1e1d9cfa41424cecc6337d48f0ca7b31ce8b1833d6c06d875e6f6f4444d438949427144098b5e5f992