Timm Bäder 4 years ago
parent 88cea46fc8
commit 782b068a1f

@ -29,19 +29,20 @@ rm -rf src/libpng src/zlib
%build %build
%set_build_flags
./configure -prefix=%{_prefix} -mandir=%{_mandir} \ ./configure -prefix=%{_prefix} -mandir=%{_mandir} \
-with-system-zlib -with-system-libpng -with-system-zlib -with-system-libpng
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %make_build
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT %make_install
chmod -c 755 $RPM_BUILD_ROOT%{_bindir}/optipng chmod -c 755 $RPM_BUILD_ROOT%{_bindir}/optipng
%check %check
make test CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %__make test
%files %files

Loading…
Cancel
Save