Skip to content

Commit

Permalink
libungif: update config.* scripts; refactor style
Browse files Browse the repository at this point in the history
Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
  • Loading branch information
David Abdurachmanov authored and David Abdurachmanov committed Dec 15, 2015
1 parent 31a424e commit f5b1de9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions libungif.spec
Expand Up @@ -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

0 comments on commit f5b1de9

Please sign in to comment.