- Update to version 1.14: * Bugs triggered by malformed BMP files have been fixed, including CVE-2016-8685 (bsc#1005026) and CVE-2016-8686. * Error reporting has been improved. * The image size is now truncated when the bitmap data ends prematurely. * It is now possible to use negative dy in bitmap data. - Upstream prefers clang to compile potrace. Use clang if possible. OBS-URL: https://build.opensuse.org/request/show/460906 OBS-URL: https://build.opensuse.org/package/show/graphics/potrace?expand=0&rev=17
113 lines
3.6 KiB
RPMSpec
113 lines
3.6 KiB
RPMSpec
#
|
|
# spec file for package potrace
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: potrace
|
|
Version: 1.14
|
|
Release: 0
|
|
Summary: Utility for Tracing a Bitmap to Scalable Outline Image
|
|
License: GPL-2.0+
|
|
Group: Productivity/Graphics/Convertors
|
|
Url: http://potrace.sourceforge.net/
|
|
Source: http://potrace.sourceforge.net/download/%{version}/%{name}-%{version}.tar.gz
|
|
BuildRequires: zlib-devel
|
|
%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
|
|
bitmap into a smooth, scalable image. The input is a bitmap (PBM, PGM,
|
|
PPM, or BMP), and the default output is one of several vector file
|
|
formats. A typical use is to create EPS files from scanned data, such
|
|
as company or university logos, handwritten notes, etc. The resulting
|
|
image is not "jaggy" like a bitmap, but smooth. It can then be rendered
|
|
at any resolution.
|
|
|
|
%package -n libpotrace0
|
|
Summary: Library for Tracing a Bitmap to Scalable Outline Image
|
|
Group: System/Libraries
|
|
|
|
%description -n libpotrace0
|
|
Potrace is a utility for tracing a bitmap, which means, transforming a
|
|
bitmap into a smooth, scalable image. The input is a bitmap (PBM, PGM,
|
|
PPM, or BMP), and the default output is one of several vector file
|
|
formats. A typical use is to create EPS files from scanned data, such
|
|
as company or university logos, handwritten notes, etc. The resulting
|
|
image is not "jaggy" like a bitmap, but smooth. It can then be rendered
|
|
at any resolution.
|
|
|
|
%package devel
|
|
Summary: Library Development Files for Tracing a Bitmap to Scalable Outline Image
|
|
Group: Development/Languages/C and C++
|
|
Requires: %{name} = %{version}
|
|
|
|
%description devel
|
|
Potrace is a utility for tracing a bitmap, which means, transforming a
|
|
bitmap into a smooth, scalable image. The input is a bitmap (PBM, PGM,
|
|
PPM, or BMP), and the default output is one of several vector file
|
|
formats. A typical use is to create EPS files from scanned data, such
|
|
as company or university logos, handwritten notes, etc. The resulting
|
|
image is not "jaggy" like a bitmap, but smooth. It can then be rendered
|
|
at any resolution.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure\
|
|
--docdir=%{_docdir}/%{name}\
|
|
--with-libpotrace\
|
|
--disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%if %suse_version > 1110
|
|
%make_install
|
|
%else
|
|
%makeinstall
|
|
%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?/*.*
|
|
|
|
%files -n libpotrace0
|
|
%defattr(-,root,root)
|
|
%{_libdir}/*.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/*.h
|
|
%{_libdir}/*.so
|
|
|
|
%changelog
|