Tweak %doc and %license handling

epel9
Maxwell G 3 years ago
parent 4d469d2654
commit ee1e7462a6
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

@ -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/go_mod_vendor.prov
Source: https://pagure.io/go-rpm-macros/raw/%{upstream_version}/f/rpm/fileattrs/go_mod_vendor.attr 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 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 Source: https://pagure.io/go-rpm-macros/raw/%{upstream_version}/f/LICENSE.txt
# golist-symlink subpackage license # golist-symlink subpackage license
Source: https://github.com/spdx/license-list-data/raw/master/text/Unlicense.txt Source: https://github.com/spdx/license-list-data/raw/master/text/Unlicense.txt
@ -81,22 +84,25 @@ install -Dpm 0755 go_mod_vendor.prov -t %{buildroot}%{_rpmconfigdir}
mkdir %{buildroot}%{_bindir} mkdir %{buildroot}%{_bindir}
ln -s %{_libexecdir}/go-rpm-macros/golist %{buildroot}%{_bindir}/golist ln -s %{_libexecdir}/go-rpm-macros/golist %{buildroot}%{_bindir}/golist
# Install REAMDE # Install REAMDE and licenses to a single directory for both subpackages.
install -Dpm 0644 README.upstream.md %{buildroot}%{_pkgdocdir}/README.md 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} %ifarch %{go_arches}
%files %files
%{_rpmmacrodir}/macros.zzz-go-rpm-macros-epel %{_rpmmacrodir}/macros.zzz-go-rpm-macros-epel
%endif %endif
%files -n go-srpm-macros-epel %files -n go-srpm-macros-epel
%license LICENSE.txt %license %{_defaultlicensedir}/%{name}
%doc %{_pkgdocdir} %doc %{_docdir}/%{name}
%{_rpmmacrodir}/macros.zzz-go-srpm-macros-epel %{_rpmmacrodir}/macros.zzz-go-srpm-macros-epel
%{_rpmconfigdir}/go_mod_vendor.prov %{_rpmconfigdir}/go_mod_vendor.prov
%{_rpmconfigdir}/fileattrs/go_mod_vendor.attr %{_rpmconfigdir}/fileattrs/go_mod_vendor.attr
%files golist-symlink %files -n go-rpm-macros-golist-symlink
%doc README.md
%license Unlicense.txt %license Unlicense.txt
%{_bindir}/golist %{_bindir}/golist

Loading…
Cancel
Save