1 |
# $Id$ |
2 |
|
3 |
Name: wv |
4 |
Summary: MSWord 6/7/8/9 binary file format to HTML converter |
5 |
Version: 1.0.0 |
6 |
Release: 3%{?dist} |
7 |
Epoch: 0 |
8 |
License: GPL |
9 |
Group: Applications/Text |
10 |
URL: http://wvware.sourceforge.net |
11 |
Source: http://dl.sf.net/wvware/wv-1.0.0.tar.gz |
12 |
Patch0: wv-wvtext-tmp.patch |
13 |
Patch1: wv-wvdvi-copy.patch |
14 |
Patch2: wv-docbook-filename.patch |
15 |
# patch3: deal with filenames containing spaces |
16 |
Patch3: wv-wvmime-tmp-filename.patch |
17 |
Patch4: wv-field.c.patch |
18 |
|
19 |
#BuildRequires: XFree86-devel |
20 |
BuildRequires: glib2-devel |
21 |
BuildRequires: libjpeg-devel |
22 |
BuildRequires: libpng-devel |
23 |
BuildRequires: libxml2-devel |
24 |
BuildRequires: ImageMagick-devel |
25 |
BuildRequires: pkgconfig |
26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
27 |
Provides: wvware = %{epoch}:%{version}-%{release} |
28 |
Provides: wv-devel = %{epoch}:%{version}-%{release} |
29 |
|
30 |
%description |
31 |
Wv is a program that understands the Microsoft Word 6/7/8/9 |
32 |
binary file format and is able to convert Word |
33 |
documents into HTML, which can then be read with a browser. |
34 |
|
35 |
|
36 |
%prep |
37 |
%setup -q |
38 |
%patch0 |
39 |
%patch1 |
40 |
%patch2 |
41 |
%patch3 |
42 |
%patch4 |
43 |
|
44 |
|
45 |
%build |
46 |
%configure --with-exporter \ |
47 |
--with-libxml2 |
48 |
|
49 |
make %{?_smp_mflags} |
50 |
|
51 |
%install |
52 |
rm -rf $RPM_BUILD_ROOT |
53 |
%makeinstall |
54 |
|
55 |
#ln -sf wvConvert $RPM_BUILD_ROOT/%{_bindir}/wvText |
56 |
mv $RPM_BUILD_ROOT%{_prefix}/man $RPM_BUILD_ROOT%{_datadir} |
57 |
find $RPM_BUILD_ROOT%{_libdir} -name "*.la" -exec rm -f {} \; |
58 |
|
59 |
%clean |
60 |
rm -rf $RPM_BUILD_ROOT |
61 |
|
62 |
%post -p /sbin/ldconfig |
63 |
|
64 |
%postun -p /sbin/ldconfig |
65 |
|
66 |
|
67 |
%files |
68 |
%defattr(-,root,root) |
69 |
%doc COPYING README |
70 |
%{_bindir}/wv* |
71 |
%{_datadir}/wv |
72 |
%{_includedir}/wv |
73 |
%{_mandir}/man1/* |
74 |
%{_libdir}/libwv* |
75 |
%{_libdir}/pkgconfig/* |
76 |
|
77 |
|
78 |
%changelog |
79 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
80 |
- Clean up spec so package can be built by koji/plague |
81 |
|
82 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
83 |
- Update to new release naming. No functional changes. |
84 |
- Make Packager generic |
85 |
|
86 |
* Wed Jul 28 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.0.0-0.fdr.3 |
87 |
- fix security vulnerability (CAN-2004-0645) |
88 |
|
89 |
* Fri May 14 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.0.0-0.fdr.2 |
90 |
- add several patches |
91 |
- depend on glib2 (bug 1592) |
92 |
|
93 |
* Wed May 12 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.0.0-0.fdr.1 |
94 |
- initial RPM (from Mandrake) |