Reformatting and minor changes for personal style preference

epel9
Benjamin A. Beasley 4 years ago
parent 2fd254c391
commit f8b4682f4c

@ -28,12 +28,21 @@ terminals and pagers (notably with `less'). `wdiff' is particularly
useful when two texts differ only by a few words and paragraphs have useful when two texts differ only by a few words and paragraphs have
been refilled. been refilled.
%prep %prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%setup -q -n %{name}-%{version} %setup -q
iconv --from=ISO-8859-1 --to=UTF-8 ChangeLog > ChangeLog.new && \
touch -r ChangeLog ChangeLog.new && \ # Fix ISO-8859-1-encoded files
mv ChangeLog.new ChangeLog tmp="$(mktemp)"
for fn in ChangeLog
do
iconv --from=ISO-8859-1 --to=UTF-8 "${fn}" > "${tmp}"
touch -r "${fn}" "${tmp}"
cp -p "${tmp}" "${fn}"
done
rm "${tmp}"
%build %build
%configure --enable-experimental="mdiff wdiff2 unify" %configure --enable-experimental="mdiff wdiff2 unify"
@ -42,13 +51,19 @@ mv ChangeLog.new ChangeLog
%install %install
%make_install %make_install
rm -f $RPM_BUILD_ROOT%{_infodir}/dir rm '%{buildroot}%{_infodir}/dir'
find $RPM_BUILD_ROOT -type f -name '*gnulib.mo' -exec rm -f {} ';' find '%{buildroot}' -type f -name '*gnulib.mo' -print -delete
%find_lang %{name} %find_lang %{name}
%files -f %{name}.lang %files -f %{name}.lang
%doc NEWS README TODO ChangeLog AUTHORS %doc AUTHORS
%doc ChangeLog
%doc NEWS
%doc README
%doc TODO
%{_bindir}/* %{_bindir}/*
%{_mandir}/man1/*.1.gz %{_mandir}/man1/*.1.gz
%{_infodir}/%{name}.info.* %{_infodir}/%{name}.info.*
@ -59,6 +74,7 @@ find $RPM_BUILD_ROOT -type f -name '*gnulib.mo' -exec rm -f {} ';'
- Change URLs from HTTP to HTTPS - Change URLs from HTTP to HTTPS
- Add source file signature verification - Add source file signature verification
- Use %%make_build and %%make_install macros - Use %%make_build and %%make_install macros
- Reformatting and minor changes for personal style preference
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-16 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save