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

Revision 1897, 4.7 KB checked in by Takemikaduchi, 14 years ago (diff)

rebuild with rpm-4.8.1

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