--- old/src/jdk.jpackage/linux/classes/jdk/jpackage/internal/resources/template.spec 2019-08-13 14:50:15.526893500 -0400 +++ new/src/jdk.jpackage/linux/classes/jdk/jpackage/internal/resources/template.spec 2019-08-13 14:50:14.182943900 -0400 @@ -29,9 +29,14 @@ rm -rf %{buildroot} mkdir -p %{buildroot}INSTALLATION_DIRECTORY cp -r %{_sourcedir}/APPLICATION_FS_NAME %{buildroot}INSTALLATION_DIRECTORY +%if "xAPPLICATION_LICENSE_FILE" != x + %define license_install_file %{_defaultlicensedir}/%{name}-%{version}/%{basename:APPLICATION_LICENSE_FILE} + install -d -m 755 %{buildroot}%{dirname:%{license_install_file}} + install -m 644 APPLICATION_LICENSE_FILE %{buildroot}%{license_install_file} +%endif %files -APPLICATION_LICENSE_FILE +%{?license_install_file:%license %{license_install_file}} # If installation directory for the application is /a/b/c, we want only root # component of the path (/a) in the spec file to make sure all subdirectories # are owned by the package.