SHA256
1
0
forked from pool/potrace

Accepting request 515052 from home:sbrabec:branches:graphics

- 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.

OBS-URL: https://build.opensuse.org/request/show/515052
OBS-URL: https://build.opensuse.org/package/show/graphics/potrace?expand=0&rev=19
This commit is contained in:
OBS User mrdocs 2017-08-08 00:33:39 +00:00 committed by Git OBS Bridge
parent 7b97600cfd
commit 05565c651f
4 changed files with 29 additions and 17 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db72b65311cfdcb63880b317f610d84485f086e15f88ca2346012d49414cd97e
size 649685

3
potrace-1.15.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a9b33904ace328340c850a01458199e0064e03ccaaa731bc869a842b1b8d529d
size 650840

View File

@ -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

View File

@ -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