Blame SPECS/potrace.spec

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