Accepting request 515106 from graphics
1 OBS-URL: https://build.opensuse.org/request/show/515106 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/potrace?expand=0&rev=28
This commit is contained in:
commit
4491c4d27c
@ -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
3
potrace-1.15.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a9b33904ace328340c850a01458199e0064e03ccaaa731bc869a842b1b8d529d
|
||||||
|
size 650840
|
@ -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
|
Tue Feb 28 14:18:04 CET 2017 - sbrabec@suse.com
|
||||||
|
|
||||||
|
28
potrace.spec
28
potrace.spec
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: potrace
|
Name: potrace
|
||||||
Version: 1.14
|
Version: 1.15
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Utility for Tracing a Bitmap to Scalable Outline Image
|
Summary: Utility for Tracing a Bitmap to Scalable Outline Image
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
@ -25,12 +25,11 @@ Group: Productivity/Graphics/Convertors
|
|||||||
Url: http://potrace.sourceforge.net/
|
Url: http://potrace.sourceforge.net/
|
||||||
Source: http://potrace.sourceforge.net/download/%{version}/%{name}-%{version}.tar.gz
|
Source: http://potrace.sourceforge.net/download/%{version}/%{name}-%{version}.tar.gz
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
Provides: bitmap_tracing
|
||||||
%ifnarch ppc s390
|
%ifnarch ppc s390
|
||||||
# gcc is supported as well, but clang is preferred by the upstream.
|
# gcc is supported as well, but clang is preferred by the upstream.
|
||||||
BuildRequires: clang
|
BuildRequires: clang
|
||||||
%endif
|
%endif
|
||||||
Provides: bitmap_tracing
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Potrace is a utility for tracing a bitmap, which means, transforming a
|
Potrace is a utility for tracing a bitmap, which means, transforming a
|
||||||
@ -72,40 +71,41 @@ at any resolution.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%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\
|
%configure\
|
||||||
--docdir=%{_docdir}/%{name}\
|
--docdir=%{_docdir}/%{name}\
|
||||||
--with-libpotrace\
|
--with-libpotrace\
|
||||||
--disable-static
|
--disable-static
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %suse_version > 1110
|
%if 0%{?suse_version} > 1110
|
||||||
%make_install
|
%make_install
|
||||||
%else
|
%else
|
||||||
%makeinstall
|
%make_install
|
||||||
%endif
|
%endif
|
||||||
cp -a AUTHORS ChangeLog COPYING NEWS README %{buildroot}%{_docdir}/%{name}/
|
cp -a AUTHORS ChangeLog COPYING NEWS README %{buildroot}%{_docdir}/%{name}/
|
||||||
rm %{buildroot}%{_libdir}/*.*a
|
rm %{buildroot}%{_libdir}/*.*a
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%post -n libpotrace0 -p /sbin/ldconfig
|
%post -n libpotrace0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libpotrace0 -p /sbin/ldconfig
|
%postun -n libpotrace0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%doc %{_docdir}/%{name}
|
%doc %{_docdir}/%{name}
|
||||||
%doc %{_mandir}/man?/*.*
|
%{_mandir}/man?/*%{ext_man}
|
||||||
|
|
||||||
%files -n libpotrace0
|
%files -n libpotrace0
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_includedir}/*.h
|
%{_includedir}/*.h
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user