# Generated by go2rpm 1.8.1 %bcond_without check # https://github.com/suyashkumar/dicom %global goipath github.com/suyashkumar/dicom Version: 1.0.5 %gometa -f %global common_description %{expand: This is a library and command-line tool to read, write, and generally work with DICOM medical image files in native Go. The goal is to build a full-featured, high-performance, and readable DICOM parser for the Go community.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: High Performance DICOM Medical Image Parser in Go License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %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 %license LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog