use 'file' with '--mime' option - output is more stable
This commit is contained in:
parent
3eb0f3afb3
commit
386b3931a7
7
vim.spec
7
vim.spec
@ -21,7 +21,7 @@ Summary: The VIM editor
|
||||
URL: http://www.vim.org/
|
||||
Name: vim
|
||||
Version: %{baseversion}.%{patchlevel}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: Vim and MIT
|
||||
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}-%{patchlevel}.tar.bz2
|
||||
Source1: vim.sh
|
||||
@ -539,7 +539,7 @@ rm -rf %{buildroot}/%{_datadir}/vim/%{vimdir}/doc/vim2html.pl
|
||||
rm -f %{buildroot}/%{_datadir}/vim/%{vimdir}/tutor/tutor.gr.utf-8~
|
||||
( cd %{buildroot}/%{_mandir}
|
||||
for i in `find ??/ -type f`; do
|
||||
if [[ "`file $i`" == *UTF-8\ Unicode\ text* ]]; then
|
||||
if [[ "`file --mime $i`" == *charset=utf-8* ]]; then
|
||||
continue
|
||||
fi
|
||||
bi=`basename $i`
|
||||
@ -788,6 +788,9 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags
|
||||
%{_datadir}/icons/locolor/*/apps/*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 26 2019 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.1.1912-2
|
||||
- use 'file' with '--mime' option - output is more stable
|
||||
|
||||
* Fri Aug 23 2019 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.1.1912-1
|
||||
- patchlevel 1912
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user