|
@@ -1,38 +1,14 @@
|
|
|
Summary: A .wmf file converter.
|
|
|
Name: libwmf
|
|
|
-Version: 0.2.8.4
|
|
|
-Release: 7%{?_dist_release}
|
|
|
-License: GPL
|
|
|
-Group: System Environment/Libraries
|
|
|
-URL: http://wvware.sourceforge.net/libwmf.html
|
|
|
-Source0: http://prdownloads.sourceforge.net/wvware/libwmf-%{version}.tar.gz
|
|
|
-
|
|
|
-# fix CVE-2006-3376
|
|
|
-Patch0: libwmf-0.2.8.4-CVE-2006-3376.patch
|
|
|
-# fix CVE-2009-1364 (embedded GD graphics library)
|
|
|
-Patch1: libwmf-0.2.8.4-realloc.patch
|
|
|
-# adapt to standalone gdk-pixbuf
|
|
|
-Patch8: libwmf-0.2.8.4-pixbufloaderdir.patch
|
|
|
-# CVE-2007-0455
|
|
|
-Patch9: libwmf-0.2.8.4-CVE-2007-0455.patch
|
|
|
-# CVE-2007-3472
|
|
|
-Patch10: libwmf-0.2.8.4_CVE-2007-3472.patch
|
|
|
-# CVE-2007-3473
|
|
|
-Patch11: libwmf-0.2.8.4-CVE-2007-3473.patch
|
|
|
-# CVE-2006-2906 affects GIFs, which is not implemented here
|
|
|
-# CVE-2006-4484 affects GIFs, which is not implemented here
|
|
|
-# CVE-2007-3474 affects GIFs, which is not implemented here
|
|
|
-# CVE-2007-3475 affects GIFs, which is not implemented here
|
|
|
-# CVE-2007-3476 affects GIFs, which is not implemented here
|
|
|
-# CVE-2007-3477
|
|
|
-Patch12: libwmf-0.2.8.4-CVE-2007-3477.patch
|
|
|
-# CVE-2007-3478 affects shared ttf files across threads, which is not implemented here
|
|
|
-# CVE-2007-2756
|
|
|
-Patch13: libwmf-0.2.8.4-CVE-2007-2756.patch
|
|
|
-# CAN-2004-0941
|
|
|
-Patch14: libwmf-0.2.8.4-CAN-2004-0941.patch
|
|
|
-# CVE-2009-3546
|
|
|
-Patch15: libwmf-0.2.8.4-CVE-2009-3546.patch
|
|
|
+Version: 0.2.12
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+Group: system
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
+License: LGPLv2+ and GPLv2+ and GPL+
|
|
|
+URL: https://github.com/caolanm/libwmf
|
|
|
+Source0: https://github.com/caolanm/libwmf/archive/v%{version}.tar.gz#/libwmf-%{version}.tar.gz
|
|
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildRequires: libxml2-devel
|
|
@@ -46,11 +22,10 @@ BuildRequires: libX11-devel
|
|
|
BuildRequires: libXt-devel
|
|
|
BuildRequires: xorg-x11-proto-devel
|
|
|
Requires: ghostscript
|
|
|
-Requires: gtk2 >= 2.10.0
|
|
|
Requires: freetype2 >= 2.1.7
|
|
|
-
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
+Requires: urw-fonts
|
|
|
+# for file triggers
|
|
|
+Requires: gdk-pixbuf2%{?_isa}
|
|
|
|
|
|
%description
|
|
|
The libwmf library provides routines for converting Microsoft(R) .wmf
|
|
@@ -61,58 +36,58 @@ conversion process and other vector-based formats conversions.
|
|
|
|
|
|
%package devel
|
|
|
Summary: Development tools for programs to manipulate metafile images
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
Requires: zlib-devel
|
|
|
-Requires: libX11-devel
|
|
|
-Requires: libxml2-devel
|
|
|
+Requires: gtk2-devel, libxml2-devel, libjpeg-devel
|
|
|
Requires: libpng-devel
|
|
|
-Requires: libjpeg-devel
|
|
|
Requires: freetype2-devel >= 2.1.7
|
|
|
|
|
|
%description devel
|
|
|
The libwmf-devel package contains the header files and static
|
|
|
libraries necessary for developing programs using libwmf.
|
|
|
|
|
|
+
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
-%patch0 -p1 -b .CVE-2006-3376
|
|
|
-%patch1 -p1 -b .CVE-2009-1364
|
|
|
-
|
|
|
-%patch8 -p1 -b .pixbufloaderdir
|
|
|
-%patch9 -p1 -b .CVE-2007-0455
|
|
|
-%patch10 -p0 -b .CVE-2007-3472
|
|
|
-%patch11 -p1 -b .CVE-2007-3473
|
|
|
-%patch12 -p1 -b .CVE-2007-3477
|
|
|
-%patch13 -p1 -b .CVE-2007-2756
|
|
|
-%patch14 -p1 -b .CAN-2004-0941
|
|
|
-%patch15 -p1 -b .CVE-2009-3546
|
|
|
+
|
|
|
|
|
|
%build
|
|
|
%configure --without-expat --with-x --disable-static
|
|
|
+%configure --with-libxml2 --disable-static --disable-dependency-tracking --with-
|
|
|
+gsfontdir=/usr/share/fonts/default/Type1
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
+
|
|
|
%install
|
|
|
rm -rf %{buildroot}
|
|
|
-mkdir -p docs-to-install
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/loaders/*.{la,a}
|
|
|
+find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
+
|
|
|
+rm -rf %{buildroot}%{_includedir}/libwmf/gd
|
|
|
+find doc -name "Makefile*" -exec rm {} \;
|
|
|
+
|
|
|
+#we're carrying around duplicate fonts
|
|
|
+rm -rf %{buildroot}%{_datadir}/libwmf/fonts/*afm
|
|
|
+rm -rf %{buildroot}%{_datadir}/libwmf/fonts/*t1
|
|
|
+sed -i %{buildroot}%{_datadir}/libwmf/fonts/fontmap -e 's#libwmf/fonts#fonts/default/Type1#g'
|
|
|
|
|
|
-cp -pr %{buildroot}%{_datadir}/doc/libwmf/* docs-to-install/
|
|
|
-rm -rf %{buildroot}%{_datadir}/doc/libwmf/
|
|
|
|
|
|
%clean
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
+%ldconfig_scriptlets
|
|
|
+
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
-%doc ChangeLog README CREDITS COPYING TODO docs-to-install/* examples
|
|
|
+%license COPYING
|
|
|
+%doc AUTHORS README
|
|
|
%{_bindir}/wmf2eps
|
|
|
%{_bindir}/wmf2fig
|
|
|
%{_bindir}/wmf2svg
|
|
@@ -120,16 +95,28 @@ rm -rf %{buildroot}
|
|
|
%{_bindir}/wmf2x
|
|
|
%{_bindir}/libwmf-fontmap
|
|
|
%{_libdir}/lib*.so.*
|
|
|
-%{_libdir}/gtk-2.0/*/loaders/*.so
|
|
|
+%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.so
|
|
|
%{_datadir}/libwmf
|
|
|
|
|
|
%files devel
|
|
|
%defattr(-,root,root)
|
|
|
+%doc examples
|
|
|
+%doc doc/*.html
|
|
|
+%doc doc/*.png
|
|
|
+%doc doc/*.gif
|
|
|
+%doc doc/html
|
|
|
+%doc doc/caolan
|
|
|
%{_bindir}/libwmf-config
|
|
|
%{_includedir}/libwmf
|
|
|
%{_libdir}/lib*.so
|
|
|
+%{_libdir}/pkgconfig/libwmf.pc
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
|
+* Mon Mar 08 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.2.12-1
|
|
|
+- switched to the forked project.
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Sat Jul 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.8.4-7
|
|
|
- rebuld with VineSeed environment
|
|
|
|