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