diff --git a/libungif.spec b/libungif.spec index 998c45eea04..ed6a0672e4b 100644 --- a/libungif.spec +++ b/libungif.spec @@ -3,16 +3,22 @@ Source: http://switch.dl.sourceforge.net/sourceforge/giflib/%{n}-%{realversion}.tar.gz %prep -%setup -n %n-%{realversion} +%setup -n %{n}-%{realversion} %build +# Update to detect aarch64 and ppc64le +rm -f ./config.{sub,guess} +curl -L -k -s -o ./config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' +curl -L -k -s -o ./config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' +chmod +x ./config.{sub,guess} + ./configure --prefix=%{i} --disable-static -make %makeprocesses +make %{makeprocesses} %install make install # Strip libraries, we are not going to debug them. -%define strip_files %i/lib +%define strip_files %{i}/lib # Drop all the perl scripts. They are not needed and force the installation of # more packages on Ubuntu. -%define drop_files %i/bin +%define drop_files %{i}/bin