!1 package potrace init

Merge pull request !1 from jackie_wu123/master
This commit is contained in:
openeuler-ci-bot 2019-12-14 16:31:34 +08:00 committed by Gitee
commit 054f82afcf
4 changed files with 70 additions and 0 deletions

BIN
potrace-1.15.tar.gz Normal file

Binary file not shown.

BIN
potrace.pdf Normal file

Binary file not shown.

70
potrace.spec Normal file
View File

@ -0,0 +1,70 @@
Name: potrace
Version: 1.15
Release: 5
Summary: Utility for Tracing a Bitmap to Scalable Outline Image
License: GPLv2+
URL: http://potrace.sourceforge.net
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: http://potrace.sourceforge.net/potrace.pdf
Source2: http://potrace.sourceforge.net/potracelib.pdf
BuildRequires: zlib-devel
%description
Potrace(TM) is a tool for tracing a bitmap, which means, transforming a bitmap into a smooth, scalable image.
The input is a bitmap (PBM, PGM, PPM, or BMP format), and the output is one of several vector file formats.
A typical use is to create SVG or PDF 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.Potrace can currently produce the following output formats: SVG, PDF, EPS, PostScript, DXF,
GeoJSON, PGM (for easy antialiasing of pixel-based images), Gimppath, and XFig. Additional backends might
be added in the future.Mkbitmap is a program distributed with Potrace which can be used to pre-process the
input for better tracing behavior on greyscale and color images.
%package devel
Summary: Development library and headers for potrace package
Requires: %{name} = %{version}-%{release}
%description devel
Development library and headers for potrace package.
%package help
Summary: Help documentation for potrace package
BuildArch: noarch
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
%description help
Help documentation for potrace package.
%prep
%autosetup -n %{name}-%{version} -p1
cp -a %{SOURCE1} .
cp -a %{SOURCE2} .
%build
%configure --enable-shared --disable-static --enable-metric --with-libpotrace --with-pic
%make_build
%install
%make_install
%delete_la
%files
%doc AUTHORS COPYING
%{_bindir}/{potrace,mkbitmap}
%{_libdir}/libpotrace.so.*
%exclude %{_docdir}/%{name}
%files devel
%{_libdir}/libpotrace.so
%{_includedir}/potracelib.h
%files help
%doc ChangeLog NEWS README
%doc potrace.pdf potracelib.pdf
%doc doc/placement.pdf
%{_mandir}/man1/potrace.1.*
%{_mandir}/man1/mkbitmap.1.*
%changelog
* Thu Dec 12 2019 wutao <wutao61@huawei.com> - 1.15-5
- Package init

BIN
potracelib.pdf Normal file

Binary file not shown.