|
|
|
@ -21,7 +21,10 @@ Source: macros.zzz-go-srpm-macros-epel
|
|
|
|
|
Source: https://pagure.io/go-rpm-macros/raw/%{upstream_version}/f/rpm/go_mod_vendor.prov
|
|
|
|
|
Source: https://pagure.io/go-rpm-macros/raw/%{upstream_version}/f/rpm/fileattrs/go_mod_vendor.attr
|
|
|
|
|
|
|
|
|
|
# Upstream go-rpm-macros README
|
|
|
|
|
Source: https://pagure.io/go-rpm-macros/raw/%{upstream_version}/f/README.md#/README.upstream.md
|
|
|
|
|
# README specific to the backports in this package.
|
|
|
|
|
Source: README.md
|
|
|
|
|
Source: https://pagure.io/go-rpm-macros/raw/%{upstream_version}/f/LICENSE.txt
|
|
|
|
|
# golist-symlink subpackage license
|
|
|
|
|
Source: https://github.com/spdx/license-list-data/raw/master/text/Unlicense.txt
|
|
|
|
@ -81,8 +84,10 @@ install -Dpm 0755 go_mod_vendor.prov -t %{buildroot}%{_rpmconfigdir}
|
|
|
|
|
mkdir %{buildroot}%{_bindir}
|
|
|
|
|
ln -s %{_libexecdir}/go-rpm-macros/golist %{buildroot}%{_bindir}/golist
|
|
|
|
|
|
|
|
|
|
# Install REAMDE
|
|
|
|
|
install -Dpm 0644 README.upstream.md %{buildroot}%{_pkgdocdir}/README.md
|
|
|
|
|
# Install REAMDE and licenses to a single directory for both subpackages.
|
|
|
|
|
install -Dpm 0644 README.md README.upstream.md \
|
|
|
|
|
-t %{buildroot}%{_docdir}/%{name}/README.fedora.md
|
|
|
|
|
install -Dpm 0644 LICENSE.txt -t %{buildroot}%{_defaultlicensedir}/%{name}
|
|
|
|
|
|
|
|
|
|
%ifarch %{go_arches}
|
|
|
|
|
%files
|
|
|
|
@ -90,13 +95,14 @@ install -Dpm 0644 README.upstream.md %{buildroot}%{_pkgdocdir}/README.md
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n go-srpm-macros-epel
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc %{_pkgdocdir}
|
|
|
|
|
%license %{_defaultlicensedir}/%{name}
|
|
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
|
%{_rpmmacrodir}/macros.zzz-go-srpm-macros-epel
|
|
|
|
|
%{_rpmconfigdir}/go_mod_vendor.prov
|
|
|
|
|
%{_rpmconfigdir}/fileattrs/go_mod_vendor.attr
|
|
|
|
|
|
|
|
|
|
%files golist-symlink
|
|
|
|
|
%files -n go-rpm-macros-golist-symlink
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license Unlicense.txt
|
|
|
|
|
%{_bindir}/golist
|
|
|
|
|
|
|
|
|
|