Remove obsolete scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
fa246e33b9
commit
08e356d401
20
R.spec
20
R.spec
@ -765,14 +765,6 @@ TZ="Europe/Paris" make check
|
||||
%endif
|
||||
|
||||
%post core
|
||||
# Create directory entries for info files
|
||||
# (optional doc files, so we must check that they are installed)
|
||||
for doc in admin exts FAQ intro lang; do
|
||||
file=%{_infodir}/R-${doc}.info.gz
|
||||
if [ -e $file ]; then
|
||||
/sbin/install-info ${file} %{_infodir}/dir 2>/dev/null || :
|
||||
fi
|
||||
done
|
||||
/sbin/ldconfig
|
||||
%if %{runjavareconf}
|
||||
R CMD javareconf \
|
||||
@ -797,18 +789,6 @@ R CMD javareconf \
|
||||
# Don't use .. based paths, substitute /usr/share/R
|
||||
# sed -i "s!../../..!/usr/share/R!g" %{_docdir}/R-%{version}/html/search/index.txt
|
||||
|
||||
|
||||
%preun core
|
||||
if [ $1 = 0 ]; then
|
||||
# Delete directory entries for info files (if they were installed)
|
||||
for doc in admin exts FAQ intro lang; do
|
||||
file=%{_infodir}/R-${doc}.info.gz
|
||||
if [ -e ${file} ]; then
|
||||
/sbin/install-info --delete R-${doc} %{_infodir}/dir 2>/dev/null || :
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
%postun core
|
||||
/sbin/ldconfig
|
||||
if [ $1 -eq 0 ] ; then
|
||||
|
Loading…
Reference in New Issue
Block a user