Normalize end-of-lines in a change log

epel9
Petr Písař 6 years ago
parent eb45686e5a
commit 7fd460eeee

@ -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 <ppisar@redhat.com> - 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 <ppisar@redhat.com> - 2.1.0-1
- 2.1.0 bump

Loading…
Cancel
Save