File project.diff of Package go-bindata
--- go-bindata.spec.orig
+++ go-bindata.spec
@@ -17,42 +17,52 @@
# Make sure that the binary is not getting stripped.
%{go_nostrip}
-
+#
+# spec file for package go-bindata
+#
Name: go-bindata
Version: 1.0.0
Release: 0
-Summary: Embed binary data into a Go program
+Summary: A small utility which generates Go code from any file
License: CC0-1.0
-Group: Development/Languages/Other
-Url: https://github.com/containous/%{name}
+Group: Development/Languages/Golang
+URL: https://github.com/containous/go-bindata
Source: %{name}.tar.gz
-BuildRequires: fdupes
-BuildRequires: git
-BuildRequires: go >= 1.11.1
-BuildRequires: golang-packaging
-BuildRequires: golang(API) = 1.11
-Requires(post): %fillup_prereq
-%{go_provides}
+BuildRequires: golang-packaging
+BuildRequires: go >= 1.11
+# Fix for "debugedit: canonicalization failed"
+BuildRequires: rpm >= 4.15
+
+# Manually provide the Go import paths so other packages can find this package
+Provides: golang(github.com/containous/go-bindata)
+Provides: golang(github.com/jteeuwen/go-bindata)
+Provides: go-bindata = %{version}
%description
-Go-bindata converts any file into manageable Go source code. Useful for embedding binary data into a go program. The file data is optionally gzip compressed before being converted to a raw byte slice.
-
-It comes with a command line tool in the go-bindata sub directory. This tool offers a set of command line options, used to customize the output being generated.
+This package converts any file into manageable Go source code. Useful for
+embedding binary data into a go program. The file data is optionally gzip
+compressed before being converted to a raw byte slice.
%prep
%setup -q -n %{name}
%build
-%{goprep} github.com/containous/go-bindata
-%{gobuild} go-bindata
+# Force legacy mode because this project has no go.mod
+export GO111MODULE=off
+# Set up GOPATH manually since we aren't using the old macros for everything
+mkdir -p src/github.com/containous
+ln -s $(pwd) src/github.com/containous/go-bindata
+export GOPATH=$(pwd)
+
+# Build the binary
+go build -v -o bin/go-bindata github.com/containous/go-bindata/go-bindata
%install
-%{goinstall}
-%{gofilelist}
+install -D -m 0755 bin/go-bindata %{buildroot}%{_bindir}/go-bindata
-%files -f file.lst
+%files
%license LICENSE
+%doc README.md
%{_bindir}/go-bindata
%changelog
-