Drop ExclusiveArch, always build go-srpm-macros and go-filesystem
Fixes https://github.com/fedora-eln/eln/issues/80
This commit is contained in:
parent
ecb246ae10
commit
e8344ba3bf
@ -17,8 +17,6 @@ Version: 3.0.15
|
|||||||
# make Go devel packages archful
|
# make Go devel packages archful
|
||||||
%global gopath %{_datadir}/gocode
|
%global gopath %{_datadir}/gocode
|
||||||
|
|
||||||
ExclusiveArch: %{golang_arches} %{gccgo_arches}
|
|
||||||
|
|
||||||
Name: go-rpm-macros
|
Name: go-rpm-macros
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Build-stage rpm automation for Go packages
|
Summary: Build-stage rpm automation for Go packages
|
||||||
@ -77,7 +75,7 @@ This package contains the basic directory layout used by Go packages.
|
|||||||
%package -n go-rpm-templates
|
%package -n go-rpm-templates
|
||||||
Summary: RPM spec templates for Go packages
|
Summary: RPM spec templates for Go packages
|
||||||
License: MIT
|
License: MIT
|
||||||
BuildArch: noarch
|
# go-rpm-macros only exists on some architectures, so this package cannot be noarch
|
||||||
Requires: go-rpm-macros = %{version}-%{release}
|
Requires: go-rpm-macros = %{version}-%{release}
|
||||||
#https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/51
|
#https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/51
|
||||||
#Requires: redhat-rpm-templates
|
#Requires: redhat-rpm-templates
|
||||||
@ -96,6 +94,13 @@ for template in templates/rpm/*\.spec ; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
install -m 0755 -vd %{buildroot}%{rpmmacrodir}
|
||||||
|
|
||||||
|
install -m 0755 -vd %{buildroot}%{_rpmluadir}/fedora/srpm
|
||||||
|
install -m 0644 -vp rpm/lua/srpm/*lua \
|
||||||
|
%{buildroot}%{_rpmluadir}/fedora/srpm
|
||||||
|
|
||||||
|
%ifarch %{golang_arches} %{gccgo_arches}
|
||||||
# Some of those probably do not work with gcc-go right now
|
# Some of those probably do not work with gcc-go right now
|
||||||
# This is not intentional, but mips is not a primary Fedora architecture
|
# This is not intentional, but mips is not a primary Fedora architecture
|
||||||
# Patches and PRs are welcome
|
# Patches and PRs are welcome
|
||||||
@ -110,12 +115,8 @@ install -m 0644 -vp templates/rpm/*spec \
|
|||||||
install -m 0755 -vd %{buildroot}%{_bindir}
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
||||||
install -m 0755 bin/* %{buildroot}%{_bindir}
|
install -m 0755 bin/* %{buildroot}%{_bindir}
|
||||||
|
|
||||||
install -m 0755 -vd %{buildroot}%{rpmmacrodir}
|
|
||||||
install -m 0644 -vp rpm/macros.d/macros.go-* \
|
install -m 0644 -vp rpm/macros.d/macros.go-* \
|
||||||
%{buildroot}%{rpmmacrodir}
|
%{buildroot}%{rpmmacrodir}
|
||||||
install -m 0755 -vd %{buildroot}%{_rpmluadir}/fedora/srpm
|
|
||||||
install -m 0644 -vp rpm/lua/srpm/*lua \
|
|
||||||
%{buildroot}%{_rpmluadir}/fedora/srpm
|
|
||||||
install -m 0755 -vd %{buildroot}%{_rpmluadir}/fedora/rpm
|
install -m 0755 -vd %{buildroot}%{_rpmluadir}/fedora/rpm
|
||||||
install -m 0644 -vp rpm/lua/rpm/*lua \
|
install -m 0644 -vp rpm/lua/rpm/*lua \
|
||||||
%{buildroot}%{_rpmluadir}/fedora/rpm
|
%{buildroot}%{_rpmluadir}/fedora/rpm
|
||||||
@ -124,6 +125,10 @@ install -m 0644 -vp rpm/fileattrs/*.attr \
|
|||||||
%{buildroot}%{_rpmconfigdir}/fileattrs/
|
%{buildroot}%{_rpmconfigdir}/fileattrs/
|
||||||
install -m 0755 -vp rpm/*\.{prov,deps} \
|
install -m 0755 -vp rpm/*\.{prov,deps} \
|
||||||
%{buildroot}%{_rpmconfigdir}/
|
%{buildroot}%{_rpmconfigdir}/
|
||||||
|
%else
|
||||||
|
install -m 0644 -vp rpm/macros.d/macros.go-srpm \
|
||||||
|
%{buildroot}%{rpmmacrodir}
|
||||||
|
%endif
|
||||||
|
|
||||||
%ifarch %{golang_arches}
|
%ifarch %{golang_arches}
|
||||||
install -m 0644 -vp rpm/macros.d/macros.go-compilers-golang \
|
install -m 0644 -vp rpm/macros.d/macros.go-compilers-golang \
|
||||||
@ -135,6 +140,7 @@ install -m 0644 -vp rpm/macros.d/macros.go-compilers-gcc \
|
|||||||
%{buildroot}%{_rpmconfigdir}/macros.d/macros.go-compiler-gcc
|
%{buildroot}%{_rpmconfigdir}/macros.d/macros.go-compiler-gcc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%ifarch %{golang_arches} %{gccgo_arches}
|
||||||
%files
|
%files
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.md
|
%doc README.md
|
||||||
@ -146,16 +152,6 @@ install -m 0644 -vp rpm/macros.d/macros.go-compilers-gcc \
|
|||||||
%{_rpmconfigdir}/macros.d/macros.go-compiler*
|
%{_rpmconfigdir}/macros.d/macros.go-compiler*
|
||||||
%{_rpmluadir}/fedora/rpm/*.lua
|
%{_rpmluadir}/fedora/rpm/*.lua
|
||||||
|
|
||||||
%files -n go-srpm-macros
|
|
||||||
%license LICENSE.txt
|
|
||||||
%doc README.md
|
|
||||||
%{_rpmconfigdir}/macros.d/macros.go-srpm
|
|
||||||
%{_rpmluadir}/fedora/srpm/*.lua
|
|
||||||
|
|
||||||
%files -n go-filesystem
|
|
||||||
%dir %{gopath}
|
|
||||||
%dir %{gopath}/src
|
|
||||||
|
|
||||||
%files -n go-rpm-templates
|
%files -n go-rpm-templates
|
||||||
%license LICENSE-templates.txt
|
%license LICENSE-templates.txt
|
||||||
%doc README.md
|
%doc README.md
|
||||||
@ -164,5 +160,19 @@ install -m 0644 -vp rpm/macros.d/macros.go-compilers-gcc \
|
|||||||
%dir %{_spectemplatedir}
|
%dir %{_spectemplatedir}
|
||||||
%{_spectemplatedir}/*.spec
|
%{_spectemplatedir}/*.spec
|
||||||
|
|
||||||
|
%files -n go-filesystem
|
||||||
|
%dir %{gopath}
|
||||||
|
%dir %{gopath}/src
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# we only build go-srpm-macros on all architectures
|
||||||
|
%files -n go-srpm-macros
|
||||||
|
%license LICENSE.txt
|
||||||
|
%doc README.md
|
||||||
|
%{_rpmconfigdir}/macros.d/macros.go-srpm
|
||||||
|
%{_rpmluadir}/fedora/srpm/*.lua
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
Loading…
Reference in New Issue
Block a user