generic build
OBS-URL: https://build.opensuse.org/package/show/graphics/pngquant?expand=0&rev=3
This commit is contained in:
parent
9edbd27ea1
commit
4b8737fa73
@ -37,13 +37,17 @@ preserves full alpha transparency. Generated images are compatible with all
|
||||
modern web browsers, and have better fallback in IE6 than 24-bit PNGs.
|
||||
|
||||
%prep
|
||||
%setup -q -n %name-%version
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
./configure --prefix=%prefix --enable-sse --with-openmp
|
||||
./configure \
|
||||
--prefix=%prefix \
|
||||
%ifarch x86_64 %ix86
|
||||
--enable-sse \
|
||||
%endif
|
||||
--extra-cflags='%{optflags}' \
|
||||
--with-openmp
|
||||
|
||||
CFLAGS="%optflags -msse2 -DUSE_SSE=1" \
|
||||
CXXFLAGS="%optflags -msse2 -DUSE_SSE=1" \
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
@ -52,9 +56,6 @@ CXXFLAGS="%optflags -msse2 -DUSE_SSE=1" \
|
||||
install --mode 0755 --strip %name %buildroot%_bindir
|
||||
install --mode 0644 CHANGELOG COPYRIGHT INSTALL README.md %buildroot%_docdir/%name
|
||||
|
||||
%clean
|
||||
%__rm -rf %buildroot
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%_bindir/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user