From 7fd460eeee7b1faef77952f5ffaa58c9a736c6a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 23 May 2019 12:16:14 +0200 Subject: [PATCH] Normalize end-of-lines in a change log --- miniz.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/miniz.spec b/miniz.spec index 44ad53b..2cef50f 100644 --- a/miniz.spec +++ b/miniz.spec @@ -17,6 +17,7 @@ BuildRequires: coreutils # diffutils for cmp BuildRequires: diffutils BuildRequires: gcc +BuildRequires: sed BuildRequires: unzip %description @@ -42,6 +43,10 @@ Header files for developing applications that use the %{name} library. %setup -c -T -n %{name}-%{version} unzip -e '%{SOURCE0}' %patch0 -p1 +# Normalize end-of-lines +sed -e 's/\r$//' ChangeLog.md > ChangeLog.md.new +touch -r ChangeLog.md ChangeLog.md.new +mv ChangeLog.md.new ChangeLog.md %global soname lib%{name}.so.0.2 @@ -114,6 +119,7 @@ install -m 0644 %{name}.h '%{buildroot}/%{_includedir}' %changelog * Thu May 23 2019 Petr Pisar - 2.1.0-2 - Remove a dependency on gcc from miniz-devel +- Normalize end-of-lines in a change log * Wed May 22 2019 Petr Pisar - 2.1.0-1 - 2.1.0 bump