SHA256
1
0
forked from pool/potrace

Accepting request 155922 from home:sbrabec:branches:graphics

- Update to version 1.11:
  * A GeoJSON backend was added.
  * Support for bitfields in the BMP format was added.
  * A minor change was made to the behavior of the alphamax
    parameter; a value of 0 now gives a true polygon. 
- Build shared libpotrace.

OBS-URL: https://build.opensuse.org/request/show/155922
OBS-URL: https://build.opensuse.org/package/show/graphics/potrace?expand=0&rev=11
This commit is contained in:
Stanislav Brabec 2013-02-20 17:58:53 +00:00 committed by Git OBS Bridge
parent 46f55b6490
commit 890982ef39
4 changed files with 71 additions and 18 deletions

View File

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

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

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

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Feb 20 16:34:36 CET 2013 - sbrabec@suse.cz
- Update to version 1.11:
* A GeoJSON backend was added.
* Support for bitfields in the BMP format was added.
* A minor change was made to the behavior of the alphamax
parameter; a value of 0 now gives a true polygon.
- Build shared libpotrace.
-------------------------------------------------------------------
Sun Nov 27 06:45:03 UTC 2011 - coolo@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package potrace
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,16 +16,15 @@
#
Name: potrace
Version: 1.10
Release: 1
License: GPL-2.0+
Version: 1.11
Release: 0
Summary: Utility for Tracing a Bitmap to Scalable Outline Image
Url: http://potrace.sourceforge.net/
License: GPL-2.0+
Group: Productivity/Graphics/Convertors
Url: http://potrace.sourceforge.net/
Source: %{name}-%{version}.tar.gz
BuildRequires: libtool zlib-devel
BuildRequires: zlib-devel
Provides: bitmap_tracing
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -38,28 +37,72 @@ 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
export CXXFLAGS="$RPM_OPT_FLAGS"
export CFLAGS="$CXXFLAGS"
autoreconf -f -i
./configure --enable-static=no --prefix=%{_prefix}
%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 -fr %{buildroot}
rm -rf %{buildroot}
%post -n libpotrace0 -p /sbin/ldconfig
%postun -n libpotrace0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%dir %_datadir//doc/potrace
%_datadir/doc/potrace/placement.pdf
%{_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