[package] license-files = ["LICENSE-APACHE", "LICENSE-MIT"] extra-sources = [ { number = 1, file = "https://raw.githubusercontent.com/emilk/egui/master/LICENSE-MIT#/egui-LICENSE-MIT", comments = ["License files are not bundled in the crate; tracked upstream:", "https://github.com/emilk/egui/issues/7977"] }, { number = 2, file = "https://raw.githubusercontent.com/emilk/egui/master/LICENSE-APACHE#/egui-LICENSE-APACHE", comments = [] }, ] [scripts] prep.pre = ["cp %{SOURCE1} LICENSE-MIT", "cp %{SOURCE2} LICENSE-APACHE"] install.post = ["install -m 0644 LICENSE-MIT %{buildroot}/%{crate_instdir}/", "install -m 0644 LICENSE-APACHE %{buildroot}/%{crate_instdir}/"]