From 386b3931a7707bd938b0754f19815ae325377cd5 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Aug 26 2019 08:16:03 +0000 Subject: use 'file' with '--mime' option - output is more stable --- diff --git a/vim.spec b/vim.spec index c6de3af..e441fd1 100644 --- a/vim.spec +++ b/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 - 2:8.1.1912-2 +- use 'file' with '--mime' option - output is more stable + * Fri Aug 23 2019 Zdenek Dohnal - 2:8.1.1912-1 - patchlevel 1912