diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ef4fb4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/dataurl-d1553a71de50473073e188aa79cebf7f993f20fe.tar.gz diff --git a/golang-github-vincent-petithory-dataurl.spec b/golang-github-vincent-petithory-dataurl.spec new file mode 100644 index 0000000..0948527 --- /dev/null +++ b/golang-github-vincent-petithory-dataurl.spec @@ -0,0 +1,64 @@ +# Generated by go2rpm 1 +%bcond_without check + +# https://github.com/vincent-petithory/dataurl +%global goipath github.com/vincent-petithory/dataurl +%global commit d1553a71de50473073e188aa79cebf7f993f20fe + +%gometa + +%global common_description %{expand: +Data URL Schemes in Golang.} + +%global golicenses LICENSE +%global godocs README.md + +Name: %{goname} +Version: 0 +Release: 0.1%{?dist} +Summary: Data URL Schemes in Golang + +License: MIT +URL: %{gourl} +Source0: %{gosource} + +%package -n dataurl +Summary: Data URL encoder/decoder + +%description +%{common_description} + +%description -n dataurl +dataurl is a command-line data-scheme URL encoder and decoder written in Golang. + +%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/* %{buildroot}%{_bindir}/ + +%if %{with check} +%check +%gocheck +%endif + +%files +%gopkgfiles + +%files -n dataurl +%license LICENSE +%{_bindir}/dataurl + +%changelog +* Tue Dec 24 18:23:29 CST 2019 Benjamin Lowry - 0-0.1.20191224gitd1553a7 +- Initial package + diff --git a/sources b/sources new file mode 100644 index 0000000..5ae7554 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dataurl-d1553a71de50473073e188aa79cebf7f993f20fe.tar.gz) = e78521e5442e781a5cfb2818b85eadf752a62fdbd4085f1e71b8cc674e159b6c21723650162e33b3e620f5d2714c542f56c540d99486385e8ee5d6c457eb9897