diff --git a/texlive.spec b/texlive.spec index 3f0d423..c1c0906 100644 --- a/texlive.spec +++ b/texlive.spec @@ -5921,7 +5921,8 @@ TeX by ASCII Co.) and its surrounding tools. popd # compile public - $CC ${RPM_OPT_FLAGS} -fPIE -pie -o $prefix/bin/public %{S:50} + mkdir -p ${prefix}/lib/public + $CC ${RPM_OPT_FLAGS} -fPIE -pie -o ${prefix}/lib/public/public %{S:50} %install @@ -12693,7 +12694,7 @@ TeX by ASCII Co.) and its surrounding tools. # the permission files, any change is also required within do.mklists mkdir -p %{buildroot}%{_sysconfdir}/permissions.d (cat > %{buildroot}%{_sysconfdir}/permissions.d/texlive) <<-EOF - %{_bindir}/public root:public 2755 + %{_libexecdir}/public/public root:public 2755 %{_texmfconfdir}/ls-R root:public 0664 %{_texmfvardir}/ls-R root:public 0664 %{_texmfvardir}/dist/ls-r root:public 0664 @@ -12713,7 +12714,7 @@ TeX by ASCII Co.) and its surrounding tools. %{_fontcache}/tfm/ root:public 1775 EOF (cat > %{buildroot}%{_sysconfdir}/permissions.d/texlive.paranoid) <<-EOF - %{_bindir}/public root:public 0755 + %{_libexecdir}/public/public root:public 0755 %{_texmfconfdir}/ls-R root:public 0644 %{_texmfvardir}/ls-r root:public 0644 %{_texmfvardir}/dist/ls-r root:public 0644 @@ -12779,12 +12780,12 @@ TeX by ASCII Co.) and its surrounding tools. for mktex in texhash mktexlsr mktexmf mktexpk mktextfm do mv -f %{buildroot}%{_bindir}/$mktex %{buildroot}%{_libexecdir}/public/ - ln -sf %{_libexecdir}/public/$mktex %{buildroot}%{_bindir}/ + ln -sf %{_libexecdir}/public/public %{buildroot}%{_bindir}/$mktex done %if %{defined verify_permissions} %verifyscript -%verify_permissions -e %{_bindir}/public +%verify_permissions -e %{_libexecdir}/public/public %verifyscript filesystem %verify_permissions -e %{_texmfconfdir}/ls-R @@ -12808,7 +12809,7 @@ TeX by ASCII Co.) and its surrounding tools. %endif %post -%set_permissions %{_bindir}/public +%set_permissions %{_libexecdir}/public/public %fillup_only -n texlive mkdir -p /var/run/texlive > /var/run/texlive/run-mktexlsr @@ -12845,7 +12846,7 @@ mkdir -p /var/run/texlive %files %defattr(-,root,root,755) -%attr(2755,root,public) %{_bindir}/public +%attr(2755,root,public) %{_libexecdir}/public/public %config %{_sysconfdir}/cron.daily/suse-texlive %config %{_sysconfdir}/permissions.d/texlive* %config %{_sysconfdir}/profile.d/texlive*