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