Skip to content

Commit

Permalink
Remove _cross_os prefix from license dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
iliana committed Feb 19, 2020
1 parent de7495b commit e7acc74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 6 additions & 4 deletions macros/shared
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
%_cross_usrsrc %{_cross_prefix}/src
%_cross_licensedir %{_cross_datadir}/licenses
%_defaultlicensedir %{_cross_licensedir}
%_uncross_name %(name=%{name}; echo ${name#%{_cross_os}})
%_docdir_fmt %{_uncross_name}

%set_cross_build_flags \
CFLAGS="${CFLAGS:-%{_cross_cflags}}" ; export CFLAGS ; \
Expand Down Expand Up @@ -178,14 +180,14 @@ CROSS_COMPILATION_CONF_EOF\
%set_cross_go_flags \
cd GOPATH/src/%1 ; \

%_cross_attribution_file %{_cross_licensedir}/%{name}/attribution.txt
%_cross_attribution_file %{_cross_licensedir}/%{_uncross_name}/attribution.txt
%cross_generate_attribution \
if [ 0%{?_cross_first_party} -eq 0 ]; then \
mkdir -p %{buildroot}%{_cross_licensedir}/%{name} \
mkdir -p %{buildroot}%{_cross_licensedir}/%{_uncross_name} \
echo "%{name} - %{url}" >> %{buildroot}%{_cross_attribution_file} \
echo "SPDX-License-Identifier: %{license}" >> %{buildroot}%{_cross_attribution_file} \
fi
%_cross_attribution_vendor_dir %{_cross_licensedir}/%{name}/vendor
%_cross_attribution_vendor_dir %{_cross_licensedir}/%{_uncross_name}/vendor
%cross_scan_attribution \
bottlerocket-license-scan --spdx-data /usr/libexec/tools/spdx-data --out-dir %{buildroot}%{_cross_attribution_vendor_dir}

Expand Down Expand Up @@ -213,6 +215,6 @@ CROSS_COMPILATION_CONF_EOF\
%__brp_mangle_shebangs /bin/true

%__arch_install_post \
/usr/lib/rpm/check-rpaths \
%{?!_cross_allow_rpath:/usr/lib/rpm/check-rpaths} \
/usr/lib/rpm/check-buildroot \
%cross_generate_attribution
4 changes: 1 addition & 3 deletions packages/systemd/systemd.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Skip check-rpaths since we expect them for systemd.
%global __arch_install_post \
/usr/lib/rpm/check-buildroot \
%cross_generate_attribution
%global _cross_allow_rpath 1

Name: %{_cross_os}systemd
Version: 244
Expand Down

0 comments on commit e7acc74

Please sign in to comment.