diff --git a/potrace-1.15.tar.gz b/potrace-1.15.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1031ee04d18f118599865080ebd745557d4e7548 Binary files /dev/null and b/potrace-1.15.tar.gz differ diff --git a/potrace.pdf b/potrace.pdf new file mode 100644 index 0000000000000000000000000000000000000000..4fdd72cfb97a9703b46ff4ca97b4d497c3922bcd Binary files /dev/null and b/potrace.pdf differ diff --git a/potrace.spec b/potrace.spec new file mode 100644 index 0000000000000000000000000000000000000000..6a4b50aa151617985d5f2f38e08708940d30f87f --- /dev/null +++ b/potrace.spec @@ -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 - 1.15-5 +- Package init diff --git a/potracelib.pdf b/potracelib.pdf new file mode 100644 index 0000000000000000000000000000000000000000..bf9c8c937a0bfe618f6c25c687b52aff71de9cd9 Binary files /dev/null and b/potracelib.pdf differ