df63cf
Name:		potrace
df63cf
Version:	1.15
df63cf
Release:	3%{?dist}
df63cf
Summary:	Transform bitmaps into vector graphics
df63cf
Group:		Applications/Multimedia
df63cf
# README defines license as GPLv2+
df63cf
License:	GPLv2+
df63cf
URL:		http://potrace.sourceforge.net
df63cf
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
df63cf
# Documentation
df63cf
Source1:	http://potrace.sourceforge.net/potrace.pdf
df63cf
Source2:	http://potrace.sourceforge.net/potracelib.pdf
df63cf
# Patch for supporting 64 bit ARM from upstream
df63cf
Patch0:		potrace-1.11-autoconf.diff
df63cf
df63cf
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
df63cf
df63cf
BuildRequires:	zlib-devel
df63cf
df63cf
%description
df63cf
Potrace is a utility for tracing a bitmap, which means, transforming a bitmap 
df63cf
into a smooth, scalable image. The input is a bitmap (PBM, PGM, PPM, or BMP
df63cf
format), and the default output is an encapsulated PostScript file (EPS).
df63cf
A typical use is to create EPS files from scanned data, such as company or
df63cf
university logos, handwritten notes, etc. The resulting image is not "jaggy"
df63cf
like a bitmap, but smooth. It can then be rendered at any resolution.
df63cf
df63cf
Potrace can currently produce the following output formats: EPS, PostScript,
df63cf
PDF, SVG (scalable vector graphics), Xfig, Gimppath, and PGM (for easy
df63cf
antialiasing). Additional backends might be added in the future.
df63cf
df63cf
Mkbitmap is a program distributed with Potrace which can be used to pre-process
df63cf
the input for better tracing behavior on greyscale and color images.
df63cf
df63cf
df63cf
%package devel
df63cf
Summary:	Potrace development library and headers
df63cf
Group:		Applications/Multimedia
df63cf
Requires:	%{name} = %{version}-%{release}
df63cf
df63cf
%description devel
df63cf
This package contains the potrace development library and headers.
df63cf
df63cf
df63cf
%package doc
df63cf
Summary:	Documentation on how to use the potrace library
df63cf
Group:		Documentation
df63cf
%if 0%{?fedora} > 10 || 0%{?rhel} > 5
df63cf
BuildArch:	noarch
df63cf
%endif
df63cf
df63cf
%description doc
df63cf
This package contains documentation for the potrace algorithm and the potrace
df63cf
library.
df63cf
df63cf
%prep
df63cf
%setup -q
df63cf
cp -a %{SOURCE1} .
df63cf
cp -a %{SOURCE2} .
df63cf
df63cf
%build
df63cf
%configure --enable-shared --disable-static \
df63cf
 --enable-metric --with-libpotrace --with-pic
df63cf
make %{?_smp_mflags}
df63cf
df63cf
%install
df63cf
rm -rf %{buildroot}
df63cf
make install DESTDIR=%{buildroot}
df63cf
find %{buildroot} -name *.la -exec rm -rf {} \;
df63cf
df63cf
# Get rid of installed copy of placement.pdf
df63cf
rm -rf %{buildroot}%{_docdir}/%{name}
df63cf
df63cf
%clean
df63cf
rm -rf %{buildroot}
df63cf
df63cf
%files
df63cf
%defattr(-,root,root,-)
df63cf
%doc AUTHORS ChangeLog COPYING NEWS README doc/placement.pdf
df63cf
%{_bindir}/potrace
df63cf
%{_bindir}/mkbitmap
df63cf
%{_libdir}/libpotrace.so.*
df63cf
%{_mandir}/man1/potrace.1*
df63cf
%{_mandir}/man1/mkbitmap.1*
df63cf
df63cf
%files devel
df63cf
%defattr(-,root,root,-)
df63cf
%{_libdir}/libpotrace.so
df63cf
%{_includedir}/potracelib.h
df63cf
df63cf
%files doc
df63cf
%defattr(-,root,root,-)
df63cf
%doc potrace.pdf potracelib.pdf
df63cf
df63cf
%changelog
df63cf
* Wed Jun 03 2020 Jan Horak <jhorak@redhat.com> - 1.15-3
df63cf
- Fixing build for flatpak (rhbz#1840788)
df63cf
df63cf
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-2
df63cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
df63cf
df63cf
* Sat Aug 05 2017 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.15-1
df63cf
- Update to 1.15.
df63cf
df63cf
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.14-3
df63cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
df63cf
df63cf
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.14-2
df63cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
df63cf
df63cf
* Wed Feb 22 2017 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.14-1
df63cf
- Update to 1.14.
df63cf
df63cf
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-4
df63cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
df63cf
df63cf
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-3
df63cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
df63cf
df63cf
* Sat Nov 14 2015 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.13-2
df63cf
- Bump spec due to buildsystem problems.
df63cf
df63cf
* Fri Oct 23 2015 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.13-1
df63cf
- Update to 1.13.
df63cf
df63cf
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-2
df63cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
df63cf
df63cf
* Tue Mar 24 2015 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.12-1
df63cf
- Update to 1.12.
df63cf
df63cf
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-5
df63cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
df63cf
df63cf
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-4
df63cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
df63cf
df63cf
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-3
df63cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
df63cf
df63cf
* Wed May 15 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.11-2
df63cf
- Support for 64 bit ARM architecture (BZ #926364).
df63cf
df63cf
* Wed Feb 20 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.11-1
df63cf
- Update to 1.11.
df63cf
df63cf
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-4
df63cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
df63cf
df63cf
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3
df63cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
df63cf
df63cf
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-2
df63cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
df63cf
df63cf
* Sun Aug 21 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.10-1
df63cf
- Update to 1.10.
df63cf
df63cf
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-2
df63cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
df63cf
df63cf
* Thu Dec 30 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.9-1
df63cf
- Update to 1.9.
df63cf
df63cf
* Thu Aug 06 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.8-4
df63cf
- Corrected license tag.
df63cf
df63cf
* Mon Aug 03 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.8-3
df63cf
- Added missing BuildRequires.
df63cf
df63cf
* Mon Aug 03 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.8-2
df63cf
- Adjusted descriptions as per review comments. 
df63cf
df63cf
* Mon Aug 03 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.8-1
df63cf
- First release.