source: projects/specs/trunk/lib/libw/libwmf/libwmf-vl.spec @ 521

Revision 521, 4.3 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1Summary: A .wmf file converter.
2Name: libwmf
3Version: 0.2.8.4
4Release: 4%{?_dist_release}
5License: GPL
6Group: System Environment/Libraries
7URL: http://wvware.sourceforge.net/libwmf.html
8Source0: http://prdownloads.sourceforge.net/wvware/libwmf-%{version}.tar.gz
9Patch0: libwmf-0.2.8.4-CVE-2006-3376.patch
10Patch1: libwmf-0.2.8.4-realloc.patch
11
12Buildroot: %{_tmppath}/%{name}-%{version}-root
13BuildRequires: libxml2-devel
14BuildRequires: libpng-devel
15BuildRequires: libjpeg-devel
16BuildRequires: gtk2-devel
17BuildRequires: ghostscript-devel
18BuildRequires: freetype2-devel >= 2.1.7
19Requires: ghostscript
20Requires: gtk2 >= 2.10.0
21Requires: freetype2 >= 2.1.7
22
23%description
24The libwmf library provides routines for converting Microsoft(R) .wmf
25format files. Currently libwmf includes bindings for converting .wmf
26files into onscreen X graphics, to .gif files and to .fig (Xfig)
27files. Future libwmf project plans include completion of the .fig
28conversion process and other vector-based formats conversions.
29
30%package devel
31Summary: Development tools for programs to manipulate metafile images
32Group: Development/Libraries
33Requires: libwmf = %{version}
34Requires: libxml2-devel
35Requires: libpng-devel
36Requires: libjpeg-devel
37Requires: freetype2-devel >= 2.1.7
38
39%description devel
40The libwmf-devel package contains the header files and static
41libraries necessary for developing programs using libwmf.
42
43%prep
44%setup -q
45%patch0 -p1 -b .CVE-2006-3376
46%patch1 -p1 -b .CVE-2009-1364
47
48
49%build
50%configure --without-expat --with-x
51make %{?_smp_mflags}
52
53%install
54rm -rf %{buildroot}
55mkdir -p docs-to-install
56make install DESTDIR=%{buildroot}
57
58rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
59rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/loaders/*.{la,a}
60
61cp -pr %{buildroot}%{_datadir}/doc/libwmf/* docs-to-install/
62rm -rf %{buildroot}%{_datadir}/doc/libwmf/
63
64%clean
65rm -rf %{buildroot}
66
67%post -p /sbin/ldconfig
68
69%postun -p /sbin/ldconfig
70
71%files
72%defattr(-,root,root)
73%doc ChangeLog README CREDITS COPYING TODO docs-to-install/* examples
74%{_bindir}/wmf2eps
75%{_bindir}/wmf2fig
76%{_bindir}/wmf2svg
77%{_bindir}/wmf2gd
78%{_bindir}/wmf2x
79%{_bindir}/libwmf-fontmap
80%{_libdir}/lib*.so.*
81%{_libdir}/gtk-2.0/*/loaders/*.so
82%{_datadir}/libwmf
83
84%files devel
85%defattr(-,root,root)
86%{_bindir}/libwmf-config
87%{_includedir}/libwmf
88%{_libdir}/*.a
89#{_libdir}/*.la
90%{_libdir}/lib*.so
91#{_libdir}/gtk-2.0/*/loaders/*a
92
93%changelog
94* Fri Jul  3 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.2.8.4-4
95- merged from VinePlus 4.x (-2,-3 are skipped)
96  - * Sun May 10 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
97  - 0.2.8.4-3vl4
98  - add patch1 for fox CVE-2009-1364 (embedded GD graphics library)
99  - new versioning policy
100- add smp_mflags into make section
101- fix spec typo
102
103* Thu May  1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8.4-1
104- applied new versioning policy
105- removed lib*.la from devel package
106
107* Tue Apr 24 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.8.4-0vl3
108- rebuild with gtk+-2.10
109
110* Mon Aug 08 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.2.8.4-0vl2
111- [SECURITY] add patch0
112  - WMF file handling integer overflow vulnerability (CVE-2006-3376)
113- update URL
114- drop flase dependencies
115  - Requires: gdk-pixbuf
116  - BuildPreReq: gdk-pixbuf-devel
117- add deficient dependencies
118  - Requires: libjpeg
119  - BuildPreReq: libjpeg-devel
120
121* Mon Aug  1 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8.4-0vl1
122- new upstream release
123
124* Fri Mar 19 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.8.2-0vl2
125- rebuild with gtk+-2.4.0
126
127* Sun Nov 30 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8.2-0vl1
128- updated to 0.2.8.2
129- Changed Requires freetype2 >= 2.1.7 (added version dependancy)
130
131* Mon Sep 22 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.8-0vl1
132- update to 0.2.8
133- rebuild with new toolchains
134- add Requires to gdk-pixbuf, ghostscript and gtk2
135
136* Thu Oct 03 2002 Shoji Matsumoto <shom@vinelinux.org> 0.2.6-0vl1
137- update
138
139* Thu Sep 06 2001 Toru Sagami <sagami@vinelinux.org>
140- 0.2.1-0vl1: split devel subpackage
141
142* Fri Nov 10 2000 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp>
143- 0.1.16-1vl1
144- remove Builarch:
145
146* Tue Nov 16 1999 Tim Powers <timp@redhat.com>
147- updated to 0.1.16
148
149* Mon Aug 30 1999 Tim Powers <timp@redhat.com>
150- changed group
151
152* Mon Jul 19 1999 Tim Powers <timp@redhat.com>
153- updated source
154- built for 6.1
155
156* Wed May 12 1999 Cristian Gafton <gafton@redhat.com>
157- build for powertools
Note: See TracBrowser for help on using the repository browser.