diff --git a/R-import.spec b/R-import.spec index ec93159..23713fb 100644 --- a/R-import.spec +++ b/R-import.spec @@ -3,7 +3,7 @@ Name: R-%{packname} Version: 1.1.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: An Import Mechanism for R License: MIT @@ -36,6 +36,14 @@ files. For more information, refer to the package vignette. %prep %setup -q -c -n %{packname} +for file in %{packname}/NEWS %{packname}/inst/doc/import.R*; do + iconv --from=latin1 --to=UTF-8 ${file} > ${file}.new + touch -r ${file} ${file}.new + sed "s|\r||g" ${file}.new > ${file} + touch -r ${file}.new ${file} + rm ${file}.new +done + %build @@ -66,5 +74,8 @@ rm -f %{buildroot}%{rlibdir}/R.css %changelog +* Tue Apr 24 2018 Elliott Sales de Andrade - 1.1.0-2 +- Fix some file line endings + * Tue Apr 24 2018 Elliott Sales de Andrade - 1.1.0-1 - initial package for Fedora