upgrade to 0.7.7
This commit is contained in:
parent
3cfa83c843
commit
b019eccfa9
Binary file not shown.
BIN
optipng-0.7.7.tar.gz
Normal file
BIN
optipng-0.7.7.tar.gz
Normal file
Binary file not shown.
32
optipng.spec
32
optipng.spec
@ -1,14 +1,13 @@
|
|||||||
Name: optipng
|
Name: optipng
|
||||||
Version: 0.7.4
|
Version: 0.7.7
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: PNG optimizer and converter
|
Summary: PNG optimizer and converter
|
||||||
|
|
||||||
Group: Applications/Multimedia
|
|
||||||
License: zlib
|
License: zlib
|
||||||
URL: http://optipng.sourceforge.net/
|
URL: http://optipng.sourceforge.net/
|
||||||
Source0: http://downloads.sourceforge.net/optipng/%{name}-%{version}.tar.gz
|
Source0: http://downloads.sourceforge.net/optipng/%{name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
|
BuildRequires: gcc
|
||||||
BuildRequires: zlib-devel libpng-devel
|
BuildRequires: zlib-devel libpng-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -20,7 +19,9 @@ and corrections.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
f=AUTHORS.txt ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
|
for f in AUTHORS.txt doc/history.txt ; do
|
||||||
|
iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
|
||||||
|
done
|
||||||
|
|
||||||
# Ensure system libs and headers are used; as of 0.6.3 pngxtern will use
|
# Ensure system libs and headers are used; as of 0.6.3 pngxtern will use
|
||||||
# the bundled headers if present even with -with-system-*, causing failures.
|
# the bundled headers if present even with -with-system-*, causing failures.
|
||||||
@ -28,32 +29,33 @@ 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
|
||||||
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%{!?_licensedir:%global license %%doc}
|
||||||
%doc AUTHORS.txt README.txt LICENSE.txt doc/*
|
%license LICENSE.txt
|
||||||
|
%doc AUTHORS.txt README.txt doc/*
|
||||||
%{_bindir}/optipng
|
%{_bindir}/optipng
|
||||||
%{_mandir}/man1/optipng.1*
|
%{_mandir}/man1/optipng.1*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu May 06 2021 wulei <wulei80@huawei.com> 0.7.4 - 1
|
* Tue Jun 8 2021 wutao <wutao61@huawei.com> - 0.7.7-1
|
||||||
- Initial package
|
- upgrade to 0.7.7 to fix CVE-2016-3981 CVE-2016-3982
|
||||||
|
|
||||||
|
* Thu May 06 2021 wulei <wulei80@huawei.com> 0.7.4 - 1
|
||||||
|
- Initial package
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user