4f19ac
Summary: Windows MetaFile Library
4f19ac
Name: libwmf
4f19ac
Version: 0.2.9
c2df04
Release: 8%{?dist}
4f19ac
Group: System Environment/Libraries
4f19ac
#libwmf is under the LGPLv2+, however...
4f19ac
#1. The tarball contains an old version of the urw-fonts under GPL+.
4f19ac
#   Those fonts are not installed
4f19ac
#2. The header of the command-line wmf2plot utility places it under the GPLv2+.
4f19ac
#   wmf2plot is neither built or install
4f19ac
License: LGPLv2+ and GPLv2+ and GPL+
4f19ac
Source: https://github.com/caolanm/libwmf/archive/v%{version}.tar.gz
4f19ac
URL: https://github.com/caolanm/libwmf
4f19ac
4f19ac
Patch0: covscan.patch
c2df04
Patch1: 0001-merge-in-fixes-for-libgd-CVE-2019-6978.patch
4f19ac
4f19ac
Requires: urw-fonts
4f19ac
Requires: %{name}-lite = %{version}-%{release}
4f19ac
4f19ac
# for file triggers
4f19ac
Requires: gdk-pixbuf2%{?_isa} >= 2.31.5-2.fc24
4f19ac
4f19ac
BuildRequires: gtk2-devel, libtool, libxml2-devel, libpng-devel
4f19ac
BuildRequires: libjpeg-devel, libXt-devel, libX11-devel, dos2unix, libtool
4f19ac
4f19ac
%description
4f19ac
A library for reading and converting Windows MetaFile vector graphics (WMF).
4f19ac
4f19ac
%package lite
4f19ac
Summary: Windows Metafile parser library
4f19ac
Group: System Environment/Libraries
4f19ac
4f19ac
%description lite
4f19ac
A library for parsing Windows MetaFile vector graphics (WMF).
4f19ac
4f19ac
%package devel
4f19ac
Summary: Support files necessary to compile applications with libwmf
4f19ac
Group: Development/Libraries
4f19ac
Requires: libwmf = %{version}-%{release}
4f19ac
Requires: gtk2-devel, libxml2-devel, libjpeg-devel
4f19ac
4f19ac
%description devel
4f19ac
Libraries, headers, and support files necessary to compile applications 
4f19ac
using libwmf.
4f19ac
4f19ac
%prep
4f19ac
%setup -q
4f19ac
%patch0  -p1 -b .covscan
c2df04
%patch1  -p1 -b .CVE-2019-6978
4f19ac
f=README ; iconv -f iso-8859-2 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
4f19ac
4f19ac
%build
4f19ac
autoreconf -i -f -Ipatches
4f19ac
%configure --with-libxml2 --disable-static --disable-dependency-tracking --with-gsfontdir=/usr/share/fonts/urw-base35
4f19ac
make %{?_smp_mflags}
4f19ac
4f19ac
%install
4f19ac
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
4f19ac
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
4f19ac
4f19ac
rm -rf $RPM_BUILD_ROOT%{_includedir}/libwmf/gd
4f19ac
find doc -name "Makefile*" -exec rm {} \;
4f19ac
4f19ac
#we're carrying around duplicate fonts
4f19ac
rm -rf $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/*afm
4f19ac
rm -rf $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/*t1
4f19ac
sed -i $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/fontmap -e 's#libwmf/fonts#fonts/urw-base35#g'
4f19ac
4f19ac
%post -p /sbin/ldconfig
4f19ac
4f19ac
%post lite -p /sbin/ldconfig
4f19ac
4f19ac
%postun -p /sbin/ldconfig
4f19ac
4f19ac
%postun lite -p /sbin/ldconfig
4f19ac
4f19ac
%files
4f19ac
%{_libdir}/libwmf-*.so.*
4f19ac
%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.so
4f19ac
%{_bindir}/wmf2svg
4f19ac
%{_bindir}/wmf2gd
4f19ac
%{_bindir}/wmf2eps
4f19ac
%{_bindir}/wmf2fig
4f19ac
%{_bindir}/wmf2x
4f19ac
%{_bindir}/libwmf-fontmap
4f19ac
%{_datadir}/libwmf/
4f19ac
4f19ac
%files lite
4f19ac
%doc AUTHORS COPYING README
4f19ac
%{_libdir}/libwmflite-*.so.*
4f19ac
4f19ac
%files devel
4f19ac
%doc doc/*.html
4f19ac
%doc doc/*.png
4f19ac
%doc doc/*.gif
4f19ac
%doc doc/html
4f19ac
%doc doc/caolan
4f19ac
%{_libdir}/*.so
4f19ac
%{_libdir}/pkgconfig/libwmf.pc
4f19ac
%{_includedir}/libwmf
4f19ac
%{_bindir}/libwmf-config
4f19ac
4f19ac
4f19ac
%changelog
c2df04
* Wed Aug 14 2019 Caolán McNamara <caolanm@redhat.com> - 0.2.9-8
c2df04
- Related: rhbz1717799 fix clang warning
c2df04
c2df04
* Wed Aug 14 2019 Caolán McNamara <caolanm@redhat.com> - 0.2.9-7
c2df04
- Related: rhbz1717799 bump n-v-r
c2df04
c2df04
* Wed Mar 06 2019 Caolán McNamara <caolanm@redhat.com> - 0.2.9-6
c2df04
- Related: rhbz1679006 bump n-v-r
c2df04
c2df04
* Tue Feb 26 2019 Caolán McNamara <caolanm@redhat.com> - 0.2.9-5
c2df04
- Resolves: rhbz1679006 libgd CVE-2019-6978
c2df04
4f19ac
* Fri Aug 10 2018 Caolán McNamara <caolanm@redhat.com> - 0.2.9-4
4f19ac
- Related: rhbz#1602602 fix more clang warnings
4f19ac
4f19ac
* Fri Aug 10 2018 Caolán McNamara <caolanm@redhat.com> - 0.2.9-3
4f19ac
- Related: rhbz#1602602 fix more clang warnings
4f19ac
4f19ac
* Fri Aug 10 2018 Caolán McNamara <caolanm@redhat.com> - 0.2.9-2
4f19ac
- Related: rhbz#1602602 fix clang warnings
4f19ac
4f19ac
* Wed Aug 08 2018 Caolán McNamara <caolanm@redhat.com> - 0.2.9-1
4f19ac
- Resolves: rhbz#1602602 new version with covscan warnings fixed
4f19ac
- all cve fixes merged to that new upstream
4f19ac
4f19ac
* Tue Sep 12 2017 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-53
4f19ac
- Resolves: rhbz#1489844 CVE-2017-6362 remove afflicted but unused function
4f19ac
4f19ac
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8.4-52
4f19ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
4f19ac
4f19ac
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8.4-51
4f19ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4f19ac
4f19ac
* Wed Feb 08 2017 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-50
4f19ac
- CVE-2016-9317, CVE-2016-10167, CVE-2016-10168
4f19ac
4f19ac
* Wed Oct 26 2016 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-49
4f19ac
- Resolves: rhbz#1388451 (CVE-2016-9011) check max claimed record len
4f19ac
            against max seekable position
4f19ac
4f19ac
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8.4-48
4f19ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4f19ac
4f19ac
* Wed Sep 02 2015 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-47
4f19ac
- Related: rhbz#1227244 CVE-2015-4696 fix patch context
4f19ac
4f19ac
* Fri Aug 14 2015 Matthias Clasen <mclasen@redhat.com> - 0.2.8.4-46
4f19ac
- Rely on gdk-pixbuf2 file triggers
4f19ac
4f19ac
* Tue Jun 23 2015 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-45
4f19ac
- Related: rhbz#1227244 CVE-2015-4695 meta_pen_create heap buffer overflow
4f19ac
- Related: rhbz#1227244 CVE-2015-4696 wmf2gd/wmf2eps use after free
4f19ac
4f19ac
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-44
4f19ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4f19ac
4f19ac
* Tue Jun 09 2015 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-43
4f19ac
- Resolves: rhbz#1227244 CVE-2015-0848 heap overflow when decoding BMP images
4f19ac
4f19ac
* Tue Jun 02 2015 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-42
4f19ac
- Resolves: rhbz#1227244 CVE-2015-0848 heap overflow when decoding BMP images
4f19ac
4f19ac
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.2.8.4-41
4f19ac
- Rebuilt for Fedora 23 Change
4f19ac
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
4f19ac
4f19ac
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-40
4f19ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4f19ac
4f19ac
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-39
4f19ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4f19ac
4f19ac
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-38
4f19ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4f19ac
4f19ac
* Thu Apr 04 2013 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-37
4f19ac
- Resolves: rhbz#925929 support aarch64
4f19ac
4f19ac
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-36
4f19ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4f19ac
4f19ac
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 0.2.8.4-35
4f19ac
- rebuild due to "jpeg8-ABI" feature drop
4f19ac
4f19ac
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.2.8.4-34
4f19ac
- rebuild against new libjpeg
4f19ac
4f19ac
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-33
4f19ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4f19ac
4f19ac
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-32
4f19ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4f19ac
4f19ac
* Mon Dec 05 2011 Adam Jackson <ajax@redhat.com> 0.2.8.4-31
4f19ac
- Rebuild for new libpng
4f19ac
4f19ac
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-30
4f19ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4f19ac
4f19ac
* Tue Dec 07 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-29
4f19ac
- drop bogus buildrequires
4f19ac
4f19ac
* Mon Dec 06 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-28
4f19ac
- Resolves: rhbz#660161 security issues
4f19ac
4f19ac
* Mon Oct 18 2010 Parag Nemade <paragn AT fedoraproject.org> - 0.2.8.4-27
4f19ac
- Merge-review cleanup (#226058)
4f19ac
4f19ac
* Thu Jul 08 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-26
4f19ac
- Move docs into -lite subpackage that all the rest require to
4f19ac
  fulfil subpackage licencing rules
4f19ac
4f19ac
* Tue Jun 29 2010 Matthias Clasen <mclasen@redhat.com> - 0.2.8.4-25
4f19ac
- Remove explicit file deps
4f19ac
4f19ac
* Mon Jun 28 2010 Matthias Clasen <mclasen@redhat.com> - 0.2.8.4-23
4f19ac
- Adapt to standalone gdk-pixbuf
4f19ac
4f19ac
* Fri Apr 16 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-22
4f19ac
- Clarify licences
4f19ac
4f19ac
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-21
4f19ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4f19ac
4f19ac
* Tue May 26 2009 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-20
4f19ac
- Resolves: CVE-2009-1364
4f19ac
4f19ac
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-19
4f19ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4f19ac
4f19ac
* Wed Feb 13 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.2.8.4-18
4f19ac
- Split libwmflite (WMF parser) into -lite subpackage (#432651).
4f19ac
- Build with dependency tracking disabled.
4f19ac
- Convert docs to UTF-8.
4f19ac
4f19ac
* Wed Aug 29 2007 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-17
4f19ac
- rebuild
4f19ac
4f19ac
* Thu Aug 02 2007 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-16
4f19ac
- I wrote it and still had to check the headers to see if I had
4f19ac
  cut and pasted "and later" into then
4f19ac
4f19ac
* Thu May 24 2007 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-15
4f19ac
- drop duplicate font metrics
4f19ac
4f19ac
* Thu Feb 15 2007 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-14
4f19ac
- remove use of archaic autotools
4f19ac
4f19ac
* Fri Feb 09 2007 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-13
4f19ac
- Resolves: rhbz#222734 no need for Makefiles in doc dirs
4f19ac
4f19ac
* Tue Jan 16 2007 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-12
4f19ac
- Resolves: rhbz#222734 no need for Makefiles in doc dirs
4f19ac
4f19ac
* Thu Nov 16 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-11
4f19ac
- Resolves: rhbz#215925 reduce exported symbols
4f19ac
4f19ac
* Fri Jul 14 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-10
4f19ac
- retweak for 64bit
4f19ac
4f19ac
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.2.8.4-9.1
4f19ac
- rebuild
4f19ac
4f19ac
* Wed Jul 12 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-9
4f19ac
- CVE-2006-3376 libwmf integer overflow
4f19ac
4f19ac
* Tue May 16 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-8
4f19ac
- rh#191971# BuildRequires
4f19ac
4f19ac
* Fri May  5 2006 Matthias Clasen <mclasen@redhat.com> 0.2.8.4-7
4f19ac
- Rebuild against the new GTK+
4f19ac
- Require GTK+ 2.9.0
4f19ac
4f19ac
* Tue May 02 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-6
4f19ac
- add a .pc and base libwmf-devel on pkg-config output
4f19ac
4f19ac
* Tue Feb 28 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-5
4f19ac
- rh#143096# extra deps according to libwmf-config
4f19ac
4f19ac
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.2.8.4-4.2
4f19ac
- bump again for double-long bug on ppc(64)
4f19ac
4f19ac
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.2.8.4-4.1
4f19ac
- rebuilt for new gcc4.1 snapshot and glibc changes
4f19ac
4f19ac
* Thu Jan 19 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-4
4f19ac
- rh#178275# match srvg gtk2 _host usage for pixbuf loaders
4f19ac
4f19ac
* Tue Jan 03 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-3
4f19ac
- add libwmf-0.2.8.4-fallbackfont.patch for rh#176620#
4f19ac
4f19ac
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> 0.2.8.4-2.1
4f19ac
- rebuilt
4f19ac
4f19ac
* Wed Nov 23 2005 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-2
4f19ac
- rh#173299# modify pre/post requires
4f19ac
4f19ac
* Thu Jul 28 2005 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-1
4f19ac
- get patches merged upstream
4f19ac
- drop integrated libwmf-0.2.8.3-warnings.patch
4f19ac
- drop integrated libwmf-0.2.8.3-noextras.patch
4f19ac
- drop integrated libwmf-0.2.8.3-rh154813.patch
4f19ac
4f19ac
* Tue Jul 26 2005 Caolan McNamara <caolanm@redhat.com> 0.2.8.3-9
4f19ac
- rh#154813# wmf upsidedown, spec (what of is there is) says that
4f19ac
  this shouldn't happen, but...
4f19ac
4f19ac
* Wed Mar  2 2005 Caolan McNamara <caolanm@redhat.com> 0.2.8.3-8
4f19ac
- rebuild with gcc4
4f19ac
4f19ac
* Thu Dec 16 2004 Caolan McNamara <caolanm@redhat.com> 0.2.8.3-7
4f19ac
- RH#143096# No need for extra X libs to be linked against
4f19ac
4f19ac
* Tue Nov  2 2004 Caolan McNamara <caolanm@redhat.com> 0.2.8.3-6
4f19ac
- #rh137878# Extra BuildRequires
4f19ac
4f19ac
* Thu Oct  7 2004 Caolan McNamara <caolanm@redhat.com> 0.2.8.3-5
4f19ac
- #rh134945# Extra BuildRequires
4f19ac
4f19ac
* Wed Sep  1 2004 Caolan McNamara <caolanm@redhat.com> 0.2.8.3-4
4f19ac
- #131373# cleanup compiletime warnings
4f19ac
4f19ac
* Thu Jul  8 2004 Matthias Clasen <mclasen@redhat.com> - 0.2.8.3-3
4f19ac
- Update to use the new update-gdk-pixbuf-loaders script in gtk2-2.4.1-2
4f19ac
4f19ac
* Thu May 20 2004 Caolan McNamara <caolanm@redhat.com>
4f19ac
- Initial version