Blame SPECS/autotrace.spec

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