diff --git a/potrace-1.14.tar.gz b/potrace-1.14.tar.gz deleted file mode 100644 index 01b6ced..0000000 --- a/potrace-1.14.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:db72b65311cfdcb63880b317f610d84485f086e15f88ca2346012d49414cd97e -size 649685 diff --git a/potrace-1.15.tar.gz b/potrace-1.15.tar.gz new file mode 100644 index 0000000..5588c1f --- /dev/null +++ b/potrace-1.15.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9b33904ace328340c850a01458199e0064e03ccaaa731bc869a842b1b8d529d +size 650840 diff --git a/potrace.changes b/potrace.changes index f10050c..96c6f6e 100644 --- a/potrace.changes +++ b/potrace.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Mon Aug 7 17:28:41 CEST 2017 - sbrabec@suse.com + +- Update to version 1.15: + * Fix potential buffer overflows and arithmetic overflows + (bsc#1051634, CVE-2017-12067). + * Fix bug triggered by very large bitmaps. + * Other bugfixes. +- Build position independent binaries. +- Process with spec-cleaner. +- Work around failure of -fstack-protector on s390x. + ------------------------------------------------------------------- Tue Feb 28 14:18:04 CET 2017 - sbrabec@suse.com diff --git a/potrace.spec b/potrace.spec index 1266c2a..d53e681 100644 --- a/potrace.spec +++ b/potrace.spec @@ -17,7 +17,7 @@ Name: potrace -Version: 1.14 +Version: 1.15 Release: 0 Summary: Utility for Tracing a Bitmap to Scalable Outline Image License: GPL-2.0+ @@ -25,12 +25,11 @@ Group: Productivity/Graphics/Convertors Url: http://potrace.sourceforge.net/ Source: http://potrace.sourceforge.net/download/%{version}/%{name}-%{version}.tar.gz BuildRequires: zlib-devel +Provides: bitmap_tracing %ifnarch ppc s390 # gcc is supported as well, but clang is preferred by the upstream. BuildRequires: clang %endif -Provides: bitmap_tracing -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Potrace is a utility for tracing a bitmap, which means, transforming a @@ -72,40 +71,41 @@ at any resolution. %setup -q %build +%define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security +export CFLAGS="%{optflags} %{warn_flags} -fPIE" +export LDFLAGS="-pie" +%ifarch s390x +# clang on s390x does not support -fstack-protector from the default optflags +# (undefined reference to `__stack_chk_guard') +export CFLAGS="${CFLAGS/-fstack-protector /}" +%endif %configure\ --docdir=%{_docdir}/%{name}\ --with-libpotrace\ --disable-static -make %{?_smp_mflags} +make %{?_smp_mflags} %install -%if %suse_version > 1110 +%if 0%{?suse_version} > 1110 %make_install %else -%makeinstall +%make_install %endif cp -a AUTHORS ChangeLog COPYING NEWS README %{buildroot}%{_docdir}/%{name}/ rm %{buildroot}%{_libdir}/*.*a -%clean -rm -rf %{buildroot} - %post -n libpotrace0 -p /sbin/ldconfig - %postun -n libpotrace0 -p /sbin/ldconfig %files -%defattr(-,root,root) %{_bindir}/* %doc %{_docdir}/%{name} -%doc %{_mandir}/man?/*.* +%{_mandir}/man?/*%{ext_man} %files -n libpotrace0 -%defattr(-,root,root) %{_libdir}/*.so.* %files devel -%defattr(-,root,root) %{_includedir}/*.h %{_libdir}/*.so