Blame SPECS/autotrace.spec

b40ea7
Name:           autotrace
b40ea7
Version:        0.31.1
b40ea7
Release:        53%{?dist}
b40ea7
Summary:        Utility for converting bitmaps to vector graphics
b40ea7
License:        GPLv2+ and LGPLv2+
b40ea7
URL:            http://autotrace.sourceforge.net/
b40ea7
Source0:        http://download.sf.net/autotrace/%{name}-%{version}.tar.gz
b40ea7
Patch1:         autotrace-0001-Modify-GetOnePixel-usage-to-build-against-current-Im.patch
b40ea7
Patch2:         autotrace-0002-Fixed-underquoted-AM_PATH_AUTOTRACE-definition.patch
b40ea7
Patch3:         autotrace-0003-libpng-fix.patch
b40ea7
# Sent upstream
b40ea7
Patch4:         autotrace-0.31.1-CVE-2013-1953.patch
b40ea7
Patch5:         autotrace-0.31.1-multilib-fix.patch
b40ea7
Patch6:         autotrace-0.31.1-pstoedit-detection-fix.patch
b40ea7
Patch7:         autotrace-0.31.1-CVE-2016-7392.patch
b40ea7
Patch8:         autotrace-0.31.1-CVE-2019-19004.patch
b40ea7
Patch9:         autotrace-0.31.1-CVE-2019-19005.patch
b40ea7
b40ea7
BuildRequires:  libpng-devel > 2:1.2
b40ea7
BuildRequires:  libexif-devel
b40ea7
BuildRequires:  libtiff-devel
b40ea7
BuildRequires:  libjpeg-devel
b40ea7
BuildRequires:  libxml2-devel
b40ea7
BuildRequires:  bzip2-devel
b40ea7
BuildRequires:  freetype-devel
b40ea7
BuildRequires:  pstoedit-devel
b40ea7
BuildRequires:  gcc-c++
b40ea7
b40ea7
# For autoreconf
b40ea7
BuildRequires:	autoconf
b40ea7
BuildRequires:	automake
b40ea7
BuildRequires:	libtool
b40ea7
BuildRequires:	pstoedit-devel
b40ea7
b40ea7
b40ea7
%description
b40ea7
AutoTrace is a program for converting bitmaps to vector graphics.
b40ea7
b40ea7
Supported input formats include BMP, TGA, PNM, PPM, PNG, whereas output
b40ea7
can be produced in Postscript, SVG, xfig, SWF, and others.
b40ea7
b40ea7
%package devel
b40ea7
Summary:        Header files for autotrace
b40ea7
Requires:       %{name}%{?_isa} = %{version}-%{release}
b40ea7
Requires:       pkgconfig
b40ea7
Requires:       pstoedit-devel
b40ea7
b40ea7
b40ea7
%description devel
b40ea7
This package contains header files and development libraries for autotrace.
b40ea7
b40ea7
b40ea7
%prep
b40ea7
%setup -q
b40ea7
%patch1 -p1 -b .GetOnePixel
b40ea7
%patch2 -p1 -b .aclocal18
b40ea7
%patch3 -p1 -b .libpng15
b40ea7
%patch4 -p1 -b .CVE-2013-1953
b40ea7
%patch5 -p1 -b .multilib-fix
b40ea7
%patch6 -p1 -b .pstoedit-detection-fix
b40ea7
%patch7 -p1 -b .CVE-2016-7392
b40ea7
%patch8 -p1 -b .CVE-2019-19004
b40ea7
%patch9 -p1 -b .CVE-2019-19005
b40ea7
autoreconf -ivf
b40ea7
b40ea7
%build
b40ea7
%configure --without-magick
b40ea7
b40ea7
# remove rpaths
b40ea7
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
b40ea7
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
b40ea7
b40ea7
make %{?_smp_mflags}
b40ea7
b40ea7
b40ea7
%install
b40ea7
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
b40ea7
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
b40ea7
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
b40ea7
b40ea7
b40ea7
%post -p /sbin/ldconfig
b40ea7
b40ea7
%postun -p /sbin/ldconfig
b40ea7
b40ea7
%files
b40ea7
%doc AUTHORS ChangeLog FAQ NEWS README THANKS TODO
b40ea7
%license COPYING COPYING.LIB
b40ea7
%{_bindir}/autotrace
b40ea7
%{_libdir}/*.so.*
b40ea7
%{_mandir}/man[^3]/*
b40ea7
b40ea7
%files devel
b40ea7
%doc HACKING
b40ea7
%{_bindir}/autotrace-config
b40ea7
%{_libdir}/*.so
b40ea7
%{_libdir}/pkgconfig/autotrace.pc
b40ea7
%{_includedir}/autotrace/
b40ea7
%{_datadir}/aclocal/autotrace.m4
b40ea7
b40ea7
b40ea7
%changelog
b40ea7
* Fri Apr 30 2021 Parag Nemade <pnemade AT redhat DOT com> - 0.31.1-53
b40ea7
- Resolves: CVE-2019-19004 : integer overflow in input-bmp.c
b40ea7
- Resolves: CVE-2019-19005 : fix bitmap double free in main.c
b40ea7
b40ea7
* Tue Aug 21 2018 Parag Nemade <pnemade AT redhat DOT com> - 0.31.1-52
b40ea7
- Resolves:rh#1564990: Removed BR: ImageMagick-devel
b40ea7
b40ea7
* Thu May  3 2018 Jan Horak <jhorak@redhat.com> - 0.31.1-51
b40ea7
- Resolves:rh#1564990: Removed ImageMagick support
b40ea7
b40ea7
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.31.1-50
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b40ea7
b40ea7
* Thu Aug 24 2017 Michael Cronenworth <mike@cchtml.com> - 0.31.1-49
b40ea7
- Bump release for upgrade path
b40ea7
b40ea7
* Wed Aug 23 2017 Michael Cronenworth <mike@cchtml.com> - 0.31.1-48
b40ea7
- Rebuilt for new ImageMagick
b40ea7
b40ea7
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.31.1-47
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b40ea7
b40ea7
* Sun Jul 30 2017 Kevin Fenzi <kevin@scrye.com> - 0.31.1-46
b40ea7
- Rebuild for new ImageMagick
b40ea7
b40ea7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.31.1-45
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b40ea7
b40ea7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.31.1-44
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b40ea7
b40ea7
* Fri Jan 20 2017 Jaroslav Škarvada <jskarvad@redhat.com> - 0.31.1-43
b40ea7
- Enabled pstoedit backend
b40ea7
- Fixed out of bounds write when using pstoedit backend
b40ea7
  Resolves: CVE-2016-7392
b40ea7
- Fixed hardcoded version on source URL
b40ea7
- Fixed bogus date in changelog (best effort)
b40ea7
b40ea7
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.31.1-42
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b40ea7
b40ea7
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31.1-41
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b40ea7
b40ea7
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31.1-40
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b40ea7
b40ea7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31.1-39
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b40ea7
b40ea7
* Mon Mar 31 2014 Jon Ciesla <limburgher@gmail.com> - 0.31.1-38
b40ea7
- ImageMagick rebuild.
b40ea7
b40ea7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31.1-37
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b40ea7
b40ea7
* Sun Jul 21 2013 Peter Lemenkov <lemenkov@gmail.com> - 0.31.1-36
b40ea7
- Fix building on AArch64
b40ea7
- Enable pstoedit back
b40ea7
b40ea7
* Fri Jul 19 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 0.31.1-35
b40ea7
- Fixed multilib conflict in devel package (by multilib-fix patch)
b40ea7
- Removed rpaths
b40ea7
b40ea7
* Fri Jun 28 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 0.31.1-34
b40ea7
- Fixed buffer overflow when parsing BMP files
b40ea7
  Resolves: CVE-2013-1953
b40ea7
b40ea7
* Mon Mar 18 2013 Jon Ciesla <limburgher@gmail.com> - 0.31.1-33
b40ea7
- ImageMagick rebuild.
b40ea7
b40ea7
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31.1-32
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b40ea7
b40ea7
* Sat Jul 21 2012 Peter Lemenkov <lemenkov@gmail.com> - 0.31.1-31
b40ea7
- Cosmetic changes in the spec-file (closes rhbz #803928 and #817950)
b40ea7
b40ea7
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31.1-30.1
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b40ea7
b40ea7
* Fri Mar 02 2012 Jon Ciesla <limburgher@gmail.com> - 0.31.1-29.1
b40ea7
- Libpng 1.5 fix.
b40ea7
b40ea7
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31.1-28.1
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b40ea7
b40ea7
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.31.1-27.1
b40ea7
- Rebuild for new libpng
b40ea7
b40ea7
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31.1-26.1
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b40ea7
b40ea7
* Wed Sep 29 2010 jkeating - 0.31.1-25.1
b40ea7
- Rebuilt for gcc bug 634757
b40ea7
b40ea7
* Fri Sep 17 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.31.1-24.1
b40ea7
- rebuild (ImageMagick)
b40ea7
b40ea7
* Mon May 17 2010 Peter Lemenkov <lemenkov@gmail.com> - 0.31.1-24
b40ea7
- Changed description (closes rhbz #591659).
b40ea7
b40ea7
* Mon Jul 27 2009 Peter Lemenkov <lemenkov@gmail.com> - 0.31.1-23
b40ea7
- Removed static libraries from -devel
b40ea7
- Changed %%makeinstall to "make install DESTDIR=blablabla"
b40ea7
- Fixed rhbz# 477980
b40ea7
b40ea7
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31.1-22
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b40ea7
b40ea7
* Fri Mar 13 2009 Hans de Goede <hdegoede@redhat.com> - 0.31.1-21
b40ea7
- Rebuild for new ImageMagick
b40ea7
b40ea7
* Mon Mar 02 2009 Caolán McNamara <caolanm@redhat.com> - 0.31.1-20
b40ea7
- Modify GetOnePixel usage to build against current ImageMagick api
b40ea7
b40ea7
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31.1-19
b40ea7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b40ea7
b40ea7
* Mon Jul 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.31.1-18
b40ea7
- fix license tag
b40ea7
b40ea7
* Mon May 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.31.1-17
b40ea7
- Rebuild for new ImageMagick.
b40ea7
b40ea7
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.31.1-16
b40ea7
- Autorebuild for GCC 4.3
b40ea7
b40ea7
* Wed Aug 22 2007 Quentin Spencer <qspencer@users.sourceforge.net> - 0.31.1-15
b40ea7
- Rebuild for F8.
b40ea7
b40ea7
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.31.1-14
b40ea7
 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
b40ea7
b40ea7
* Thu Sep 21 2006 Quentin Spencer <qspencer@users.sourceforge.net> - 0.31.1-13
b40ea7
- Rebuild for FC6.
b40ea7
b40ea7
* Mon Feb 13 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.31.1-12
b40ea7
- Rebuild for Fedora Extras 5
b40ea7
b40ea7
* Sat Jan 28 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.31.1-11
b40ea7
- rebuild
b40ea7
b40ea7
* Tue Jan 17 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.31.1-10
b40ea7
- add BuildRequires on freetype-devel
b40ea7
b40ea7
* Tue Jan 17 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.31.1-9
b40ea7
- remove BuildRequires on XFree86-devel
b40ea7
b40ea7
* Mon Jan 16 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 0.31.1-8
b40ea7
- add %%{?dist} tag
b40ea7
- add a BuildRequires on bzip2-devel
b40ea7
- add ldconfig to %%post and %%postun
b40ea7
b40ea7
* Thu May 26 2005 Jeremy Katz <katzj@redhat.com> - 0.31.1-7
b40ea7
- and more buildrequires
b40ea7
b40ea7
* Thu May 26 2005 Jeremy Katz <katzj@redhat.com> - 0.31.1-6
b40ea7
- BR libtiff-devel
b40ea7
b40ea7
* Wed May 25 2005 Jeremy Katz <katzj@redhat.com> - 0.31.1-5
b40ea7
- rebuild
b40ea7
b40ea7
* Thu Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
b40ea7
- rebuilt
b40ea7
b40ea7
* Sat Aug 21 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.31.1-3
b40ea7
- Temporarily changed buildreq pstoedit-devel to buildconflicts.
b40ea7
b40ea7
* Thu Apr 22 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.31.1-0.fdr.2
b40ea7
- Added new BuildReq pstoedit-devel.
b40ea7
- Added missing BuildReq libexif-devel.
b40ea7
- Added missing -devel requires pkgconfig, ImageMagick-devel.
b40ea7
- Converted spec file to UTF-8.
b40ea7
b40ea7
* Mon Sep 29 2003 Marius L. Johndal <mariuslj at ifi.uio.no> 0:0.31.1-0.fdr.1
b40ea7
- Initial RPM release.
b40ea7