diff --git a/AusweisApp2.spec b/AusweisApp2.spec index f2a187d..4cb9052 100644 --- a/AusweisApp2.spec +++ b/AusweisApp2.spec @@ -141,7 +141,7 @@ install -pm 0644 %{SOURCE1} LICENSE.en.txt # A shell wrapper around the AusweisApp2 binary will take care of injecting # this configuration before application startup and only for this specific # application. -cat << EOF > %{name}_openssl.cnf +cat << EOF > fedora_%{name}_openssl.cnf # This application specific OpenSSL configuration file basically modifies # the system's default configuration to enable algorithms using RSA-PSK # keyexchange, algorithms using SHA1, SHA256, and SHA384 hashes, as well as @@ -168,13 +168,13 @@ sed -e 's!:kRSAPSK!!' \ -e 's!:-SHA256!!' \ -e 's!:-SHA384!!' \ -e 's!:-!:kRSAPSK&!' \ - >> %{name}_openssl.cnf + >> fedora_%{name}_openssl.cnf grep -v 'CipherString' < %{ossl_cnf} | \ sed -e 's!^MinProtocol =.*$!MinProtocol = TLSv1.2!' \ - >> %{name}_openssl.cnf + >> fedora_%{name}_openssl.cnf # Create the shell wrapper. -cat << EOF > %{name}_wrapper.sh +cat << EOF > fedora_%{name}_wrapper.sh #!/bin/sh OPENSSL_CONF=%{_datadir}/%{name}/openssl.cnf \\ %{_libexecdir}/%{name} "\$@" @@ -235,8 +235,9 @@ mkdir -p %{buildroot}%{_libexecdir} mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_libexecdir}/%{name} # Install the shell wrapper and custom OpenSSL configuration. -install -pm 0755 %{name}_wrapper.sh %{buildroot}%{_bindir}/%{name} -install -pm 0644 %{name}_openssl.cnf %{buildroot}%{_datadir}/%{name}/openssl.cnf +install -pm 0755 fedora_%{name}_wrapper.sh %{buildroot}%{_bindir}/%{name} +install -pm 0644 fedora_%{name}_openssl.cnf \ + %{buildroot}%{_datadir}/%{name}/openssl.cnf # Excessive docs. mkdir -p %{buildroot}%{_pkgdocdir}/{installation,integration,notes,sdk}