6ccfd1
Summary: Windows MetaFile Library
6ccfd1
Name: libwmf
6ccfd1
Version: 0.2.8.4
57c562
Release: 39%{?dist}
6ccfd1
Group: System Environment/Libraries
6ccfd1
#libwmf is under the LGPLv2+, however...
6ccfd1
#1. The tarball contains an old version of the urw-fonts under GPL+.
6ccfd1
#   Those fonts are not installed
6ccfd1
#2. The header of the command-line wmf2plot utility places it under the GPLv2+.
6ccfd1
#   wmf2plot is neither built or install
6ccfd1
License: LGPLv2+ and GPLv2+ and GPL+
6ccfd1
Source: http://downloads.sourceforge.net/wvware/%{name}-%{version}.tar.gz
6ccfd1
URL: http://wvware.sourceforge.net/libwmf.html
6ccfd1
#Upstream is uncontactable for some time now, which is a real pity esp.
6ccfd1
#wrt CVE-2006-3376/CVE-2009-1364
6ccfd1
#Don't install out of date documentation
6ccfd1
Patch0:  libwmf-0.2.8.3-nodocs.patch
6ccfd1
#Allow use of system install fonts intead of libwmf bundled ones
6ccfd1
Patch1:  libwmf-0.2.8.3-relocatablefonts.patch
6ccfd1
#Set a fallback font of Times for text if a .wmf file don't set any
6ccfd1
Patch2:  libwmf-0.2.8.4-fallbackfont.patch
6ccfd1
#Strip unnecessary extra library dependencies
6ccfd1
Patch3:  libwmf-0.2.8.4-deps.patch
6ccfd1
#convert libwmf-config to a pkg-config to avoid multilib conflicts
6ccfd1
Patch4:  libwmf-0.2.8.4-multiarchdevel.patch
6ccfd1
#CVE-2006-3376 Integer overflow in player.c
6ccfd1
Patch5:  libwmf-0.2.8.4-intoverflow.patch
6ccfd1
#Don't export the modified embedded GD library symbols, to avoid conflicts with
6ccfd1
#the external one
6ccfd1
Patch6:  libwmf-0.2.8.4-reducesymbols.patch
6ccfd1
#CVE-2009-1364, Use-after-free vulnerability in the modified embedded GD
6ccfd1
#library
6ccfd1
Patch7:  libwmf-0.2.8.4-useafterfree.patch
6ccfd1
# adapt to standalone gdk-pixbuf
6ccfd1
Patch8:  libwmf-0.2.8.4-pixbufloaderdir.patch
6ccfd1
# CVE-2007-0455
6ccfd1
Patch9:  libwmf-0.2.8.4-CVE-2007-0455.patch
6ccfd1
# CVE-2007-3472
6ccfd1
Patch10: libwmf-0.2.8.4-CVE-2007-3472.patch
6ccfd1
# CVE-2007-3473
6ccfd1
Patch11: libwmf-0.2.8.4-CVE-2007-3473.patch
6ccfd1
# CVE-2006-2906 affects GIFs, which is not implemented here
6ccfd1
# CVE-2006-4484 affects GIFs, which is not implemented here
6ccfd1
# CVE-2007-3474 affects GIFs, which is not implemented here
6ccfd1
# CVE-2007-3475 affects GIFs, which is not implemented here
6ccfd1
# CVE-2007-3476 affects GIFs, which is not implemented here
6ccfd1
# CVE-2007-3477
6ccfd1
Patch12: libwmf-0.2.8.4-CVE-2007-3477.patch
6ccfd1
# CVE-2007-3478 affects shared ttf files across threads, which is not implemented here
6ccfd1
# CVE-2007-2756
6ccfd1
Patch13: libwmf-0.2.8.4-CVE-2007-2756.patch
6ccfd1
# CAN-2004-0941
6ccfd1
Patch14: libwmf-0.2.8.4-CAN-2004-0941.patch
6ccfd1
# CVE-2009-3546
6ccfd1
Patch15: libwmf-0.2.8.4-CVE-2009-3546.patch
6ccfd1
# https://bugzilla.redhat.com/show_bug.cgi?id=925929
6ccfd1
Patch16: libwmf-aarch64.patch
6ccfd1
6ccfd1
Requires: urw-fonts
6ccfd1
Requires: %{name}-lite = %{version}-%{release}
6ccfd1
Requires(post): gdk-pixbuf2
6ccfd1
Requires(postun): gdk-pixbuf2
6ccfd1
BuildRequires: gtk2-devel, libtool, libxml2-devel, libpng-devel
6ccfd1
BuildRequires: libjpeg-devel, libXt-devel, libX11-devel, dos2unix, libtool
6ccfd1
6ccfd1
%description
6ccfd1
A library for reading and converting Windows MetaFile vector graphics (WMF).
6ccfd1
6ccfd1
%package lite
6ccfd1
Summary: Windows Metafile parser library
6ccfd1
Group: System Environment/Libraries
6ccfd1
6ccfd1
%description lite
6ccfd1
A library for parsing Windows MetaFile vector graphics (WMF).
6ccfd1
6ccfd1
%package devel
6ccfd1
Summary: Support files necessary to compile applications with libwmf
6ccfd1
Group: Development/Libraries
6ccfd1
Requires: libwmf = %{version}-%{release}
6ccfd1
Requires: gtk2-devel, libxml2-devel, libjpeg-devel
6ccfd1
6ccfd1
%description devel
6ccfd1
Libraries, headers, and support files necessary to compile applications 
6ccfd1
using libwmf.
6ccfd1
6ccfd1
%prep
6ccfd1
%setup -q
6ccfd1
%patch0  -p1 -b .nodocs
6ccfd1
%patch1  -p1 -b .relocatablefonts
6ccfd1
%patch2  -p1 -b .fallbackfont
6ccfd1
%patch3  -p1 -b .deps
6ccfd1
%patch4  -p1 -b .multiarchdevel
6ccfd1
%patch5  -p1 -b .intoverflow
6ccfd1
%patch6  -p1 -b .reducesymbols.patch
6ccfd1
%patch7  -p1 -b .useafterfree.patch
6ccfd1
%patch8  -p1 -b .pixbufloaderdir
6ccfd1
%patch9  -p1 -b .CVE-2007-0455
6ccfd1
%patch10 -p1 -b .CVE-2007-3472
6ccfd1
%patch11 -p1 -b .CVE-2007-3473
6ccfd1
%patch12 -p1 -b .CVE-2007-3477
6ccfd1
%patch13 -p1 -b .CVE-2007-2756
6ccfd1
%patch14 -p1 -b .CAN-2004-0941
6ccfd1
%patch15 -p1 -b .CVE-2009-3546
6ccfd1
%patch16 -p1 -b .aarch64
6ccfd1
f=README ; iconv -f iso-8859-2 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
6ccfd1
6ccfd1
%build
6ccfd1
rm configure.ac
6ccfd1
ln -s patches/acconfig.h acconfig.h
6ccfd1
autoreconf -i -f
6ccfd1
%configure --with-libxml2 --disable-static --disable-dependency-tracking
6ccfd1
make %{?_smp_mflags}
6ccfd1
dos2unix doc/caolan/*.html
6ccfd1
6ccfd1
%install
6ccfd1
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
6ccfd1
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
6ccfd1
6ccfd1
rm -rf $RPM_BUILD_ROOT%{_includedir}/libwmf/gd
6ccfd1
find doc -name "Makefile*" -exec rm {} \;
6ccfd1
6ccfd1
#we're carrying around duplicate fonts
6ccfd1
rm -rf $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/*afm
6ccfd1
rm -rf $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/*pfb
6ccfd1
sed -i $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/fontmap -e 's#libwmf/fonts#fonts/default/Type1#g'
6ccfd1
6ccfd1
%post
6ccfd1
/sbin/ldconfig
6ccfd1
gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
6ccfd1
6ccfd1
%post lite -p /sbin/ldconfig
6ccfd1
6ccfd1
%postun 
6ccfd1
/sbin/ldconfig
6ccfd1
gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || :
6ccfd1
6ccfd1
%postun lite -p /sbin/ldconfig
6ccfd1
6ccfd1
%files
6ccfd1
%defattr(-,root,root,-)
6ccfd1
%{_libdir}/libwmf-*.so.*
6ccfd1
%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.so
6ccfd1
%{_bindir}/wmf2svg
6ccfd1
%{_bindir}/wmf2gd
6ccfd1
%{_bindir}/wmf2eps
6ccfd1
%{_bindir}/wmf2fig
6ccfd1
%{_bindir}/wmf2x
6ccfd1
%{_bindir}/libwmf-fontmap
6ccfd1
%{_datadir}/libwmf/
6ccfd1
6ccfd1
%files lite
6ccfd1
%defattr(-,root,root,-)
6ccfd1
%doc AUTHORS COPYING README
6ccfd1
%{_libdir}/libwmflite-*.so.*
6ccfd1
6ccfd1
%files devel
6ccfd1
%defattr(-,root,root,-)
6ccfd1
%doc doc/*.html
6ccfd1
%doc doc/*.png
6ccfd1
%doc doc/*.gif
6ccfd1
%doc doc/html
6ccfd1
%doc doc/caolan
6ccfd1
%{_libdir}/*.so
6ccfd1
%{_libdir}/pkgconfig/libwmf.pc
6ccfd1
%{_includedir}/libwmf
6ccfd1
%{_bindir}/libwmf-config
6ccfd1
6ccfd1
6ccfd1
%changelog
57c562
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.2.8.4-39
57c562
- Mass rebuild 2014-01-24
57c562
57c562
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.2.8.4-38
57c562
- Mass rebuild 2013-12-27
57c562
6ccfd1
* Thu Apr 04 2013 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-37
6ccfd1
- Resolves: rhbz#925929 support aarch64
6ccfd1
6ccfd1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-36
6ccfd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6ccfd1
6ccfd1
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 0.2.8.4-35
6ccfd1
- rebuild due to "jpeg8-ABI" feature drop
6ccfd1
6ccfd1
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.2.8.4-34
6ccfd1
- rebuild against new libjpeg
6ccfd1
6ccfd1
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-33
6ccfd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6ccfd1
6ccfd1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-32
6ccfd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6ccfd1
6ccfd1
* Mon Dec 05 2011 Adam Jackson <ajax@redhat.com> 0.2.8.4-31
6ccfd1
- Rebuild for new libpng
6ccfd1
6ccfd1
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-30
6ccfd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6ccfd1
6ccfd1
* Tue Dec 07 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-29
6ccfd1
- drop bogus buildrequires
6ccfd1
6ccfd1
* Mon Dec 06 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-28
6ccfd1
- Resolves: rhbz#660161 security issues
6ccfd1
6ccfd1
* Mon Oct 18 2010 Parag Nemade <paragn AT fedoraproject.org> - 0.2.8.4-27
6ccfd1
- Merge-review cleanup (#226058)
6ccfd1
6ccfd1
* Thu Jul 08 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-26
6ccfd1
- Move docs into -lite subpackage that all the rest require to
6ccfd1
  fulfil subpackage licencing rules
6ccfd1
6ccfd1
* Tue Jun 29 2010 Matthias Clasen <mclasen@redhat.com> - 0.2.8.4-25
6ccfd1
- Remove explicit file deps
6ccfd1
6ccfd1
* Mon Jun 28 2010 Matthias Clasen <mclasen@redhat.com> - 0.2.8.4-23
6ccfd1
- Adapt to standalone gdk-pixbuf
6ccfd1
6ccfd1
* Fri Apr 16 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-22
6ccfd1
- Clarify licences
6ccfd1
6ccfd1
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-21
6ccfd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6ccfd1
6ccfd1
* Tue May 26 2009 Caolán McNamara <caolanm@redhat.com> - 0.2.8.4-20
6ccfd1
- Resolves: CVE-2009-1364
6ccfd1
6ccfd1
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.8.4-19
6ccfd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6ccfd1
6ccfd1
* Wed Feb 13 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.2.8.4-18
6ccfd1
- Split libwmflite (WMF parser) into -lite subpackage (#432651).
6ccfd1
- Build with dependency tracking disabled.
6ccfd1
- Convert docs to UTF-8.
6ccfd1
6ccfd1
* Wed Aug 29 2007 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-17
6ccfd1
- rebuild
6ccfd1
6ccfd1
* Thu Aug 02 2007 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-16
6ccfd1
- I wrote it and still had to check the headers to see if I had
6ccfd1
  cut and pasted "and later" into then
6ccfd1
6ccfd1
* Thu May 24 2007 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-15
6ccfd1
- drop duplicate font metrics
6ccfd1
6ccfd1
* Thu Feb 15 2007 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-14
6ccfd1
- remove use of archaic autotools
6ccfd1
6ccfd1
* Fri Feb 09 2007 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-13
6ccfd1
- Resolves: rhbz#222734 no need for Makefiles in doc dirs
6ccfd1
6ccfd1
* Tue Jan 16 2007 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-12
6ccfd1
- Resolves: rhbz#222734 no need for Makefiles in doc dirs
6ccfd1
6ccfd1
* Thu Nov 16 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-11
6ccfd1
- Resolves: rhbz#215925 reduce exported symbols
6ccfd1
6ccfd1
* Fri Jul 14 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-10
6ccfd1
- retweak for 64bit
6ccfd1
6ccfd1
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.2.8.4-9.1
6ccfd1
- rebuild
6ccfd1
6ccfd1
* Wed Jul 12 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-9
6ccfd1
- CVE-2006-3376 libwmf integer overflow
6ccfd1
6ccfd1
* Tue May 16 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-8
6ccfd1
- rh#191971# BuildRequires
6ccfd1
6ccfd1
* Fri May  5 2006 Matthias Clasen <mclasen@redhat.com> 0.2.8.4-7
6ccfd1
- Rebuild against the new GTK+
6ccfd1
- Require GTK+ 2.9.0
6ccfd1
6ccfd1
* Tue May 02 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-6
6ccfd1
- add a .pc and base libwmf-devel on pkg-config output
6ccfd1
6ccfd1
* Tue Feb 28 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-5
6ccfd1
- rh#143096# extra deps according to libwmf-config
6ccfd1
6ccfd1
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.2.8.4-4.2
6ccfd1
- bump again for double-long bug on ppc(64)
6ccfd1
6ccfd1
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.2.8.4-4.1
6ccfd1
- rebuilt for new gcc4.1 snapshot and glibc changes
6ccfd1
6ccfd1
* Tue Jan 19 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-4
6ccfd1
- rh#178275# match srvg gtk2 _host usage for pixbuf loaders
6ccfd1
6ccfd1
* Tue Jan 03 2006 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-3
6ccfd1
- add libwmf-0.2.8.4-fallbackfont.patch for rh#176620#
6ccfd1
6ccfd1
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> 0.2.8.4-2.1
6ccfd1
- rebuilt
6ccfd1
6ccfd1
* Wed Nov 23 2005 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-2
6ccfd1
- rh#173299# modify pre/post requires
6ccfd1
6ccfd1
* Thu Jul 28 2005 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-1
6ccfd1
- get patches merged upstream
6ccfd1
- drop integrated libwmf-0.2.8.3-warnings.patch
6ccfd1
- drop integrated libwmf-0.2.8.3-noextras.patch
6ccfd1
- drop integrated libwmf-0.2.8.3-rh154813.patch
6ccfd1
6ccfd1
* Tue Jul 26 2005 Caolan McNamara <caolanm@redhat.com> 0.2.8.3-9
6ccfd1
- rh#154813# wmf upsidedown, spec (what of is there is) says that
6ccfd1
  this shouldn't happen, but...
6ccfd1
6ccfd1
* Wed Mar  2 2005 Caolan McNamara <caolanm@redhat.com> 0.2.8.3-8
6ccfd1
- rebuild with gcc4
6ccfd1
6ccfd1
* Thu Dec 16 2004 Caolan McNamara <caolanm@redhat.com> 0.2.8.3-7
6ccfd1
- RH#143096# No need for extra X libs to be linked against
6ccfd1
6ccfd1
* Tue Nov  2 2004 Caolan McNamara <caolanm@redhat.com> 0.2.8.3-6
6ccfd1
- #rh137878# Extra BuildRequires
6ccfd1
6ccfd1
* Thu Oct  7 2004 Caolan McNamara <caolanm@redhat.com> 0.2.8.3-5
6ccfd1
- #rh134945# Extra BuildRequires
6ccfd1
6ccfd1
* Wed Sep  1 2004 Caolan McNamara <caolanm@redhat.com> 0.2.8.3-4
6ccfd1
- #131373# cleanup compiletime warnings
6ccfd1
6ccfd1
* Thu Jul  8 2004 Matthias Clasen <mclasen@redhat.com> - 0.2.8.3-3
6ccfd1
- Update to use the new update-gdk-pixbuf-loaders script in gtk2-2.4.1-2
6ccfd1
6ccfd1
* Thu May 20 2004 Caolan McNamara <caolanm@redhat.com>
6ccfd1
- Initial version