diff --git a/json-c.spec b/json-c.spec index 6d19f27..93a281e 100644 --- a/json-c.spec +++ b/json-c.spec @@ -67,21 +67,21 @@ This package contains the reference manual for %{name}. %autosetup -Tb 0 -n %{name}-%{name}-%{version}-%{reldate} -p 1 for doc in ChangeLog; do - %{_bindir}/iconv -f iso-8859-1 -t utf8 ${doc} > ${doc}.new - /bin/touch -r ${doc} ${doc}.new - %{__mv} -f ${doc}.new ${doc} + iconv -f iso-8859-1 -t utf8 ${doc} > ${doc}.new + touch -r ${doc} ${doc}.new + mv -f ${doc}.new ${doc} done -%{__sed} -i -e 's!#ACLOCAL_AMFLAGS!ACLOCAL_AMFLAGS!g' Makefile.am -%{_bindir}/autoreconf -fiv +sed -i -e 's!#ACLOCAL_AMFLAGS!ACLOCAL_AMFLAGS!g' Makefile.am +autoreconf -fiv %if %{with bootstrap} -%{__mkdir} -p bootstrap_ver +mkdir -p bootstrap_ver pushd bootstrap_ver -%{__tar} --strip-components=1 -xf %{SOURCE1} +tar --strip-components=1 -xf %{SOURCE1} -%{__sed} -i -e 's!#ACLOCAL_AMFLAGS!ACLOCAL_AMFLAGS!g' Makefile.am -%{_bindir}/autoreconf -fiv +sed -i -e 's!#ACLOCAL_AMFLAGS!ACLOCAL_AMFLAGS!g' Makefile.am +autoreconf -fiv popd %endif @@ -115,19 +115,19 @@ popd %install %if %{with bootstrap} %make_install -C bootstrap_ver -%{_bindir}/find %{buildroot} -xtype f -not \ - -name 'lib%{name}.so.%{so_ver_old}*' -delete -print -%{_bindir}/find %{buildroot} -type l -not \ - -name 'lib%{name}.so.%{so_ver_old}*' -delete -print +find %{buildroot} -xtype f -not -name 'lib%{name}.so.%{so_ver_old}*' \ + -delete -print +find %{buildroot} -type l -not -name 'lib%{name}.so.%{so_ver_old}*' \ + -delete -print %endif %make_install -%{_bindir}/find %{buildroot} -name '*.a' -delete -print -%{_bindir}/find %{buildroot} -name '*.la' -delete -print +find %{buildroot} -name '*.a' -delete -print +find %{buildroot} -name '*.la' -delete -print -%{__mkdir} -p %{buildroot}%{_pkgdocdir} -%{__cp} -pr doc/html ChangeLog README README.* %{buildroot}%{_pkgdocdir} +mkdir -p %{buildroot}%{_pkgdocdir} +cp -pr doc/html ChangeLog README README.* %{buildroot}%{_pkgdocdir} hardlink -cvf %{buildroot}%{_pkgdocdir} @@ -179,6 +179,7 @@ end * Sat Apr 11 2020 Björn Esser - 0.13.1-10 - Add explicit configure switch to disable rdrand - Add explicit configure switch to enable linking with Bsymbolic +- Do not use macros to invoke executables * Wed Jan 29 2020 Fedora Release Engineering - 0.13.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild