]> git.pld-linux.org Git - packages/wv.git/blob - wv.spec
- updated to 0.7.2, fixed mandir
[packages/wv.git] / wv.spec
1 Summary:        MSWord Document to HTML converter
2 Summary(es):    MSWord 6/7/8/9 binary file format -> HTML converter
3 Summary(pl):    Konwerter domumentów MSWord do HTML
4 Summary(pt_BR): Conversor de arquivos formato Word (6/7/8/9) para html
5 Name:           wv
6 Version:        0.7.2
7 Release:        1
8 License:        GPL
9 Group:          Applications/Text
10 Vendor:         Caolan McNamara <Caolan.McNamara@ul.ie>
11 Source0:        http://download.sourceforge.net/wvware/%{name}-%{version}.tar.gz
12 Patch0:         %{name}-magick.patch
13 Patch1:         %{name}-ac25x.patch
14 URL:            http://www.wvWare.com/
15 BuildRequires:  XFree86-devel
16 BuildRequires:  ImageMagick-devel
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  expat-devel
20 BuildRequires:  glib-devel
21 BuildRequires:  libtool
22 BuildRequires:  libwmf-devel >= 0.2.2
23 #BuildRequires: libxml2-devel
24 Obsoletes:      mswordview
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 MSWordView is a program that understands the Microsoft Word 8 binary
29 file format (Office97, Office2000) and is able to convert Word
30 documents into HTML, which can then be read with a browser.
31
32 wv is a suite of programs to help convert Word Documents to HTML.
33
34 %description -l pl
35 MSWordView jest programem, który rozumie binarne dokumenty programu
36 Microsoft Word 8 (Office97, Office2000) i jest w stanie skonwertowaæ
37 je do dokumentu HTML, który mo¿e byæ przeczytany w przegl±darce WWW.
38
39 wv jest elementem programów, które pomagaj± przekonwertowaæ dokumenty
40 Worda do HTML.
41
42 %description -l pt_BR
43 Conversor de arquivos formato Word (6/7/8/9) para html
44
45 %package devel
46 Summary:        Include files needed to compile
47 Summary(pl):    Pliki nag³ówkowe do biblioteki wv
48 Group:          Development/Libraries
49 Requires:       %{name} = %{version}
50
51 %description devel
52 Contains the header files.
53
54 %description devel -l pl
55 Pakiet tem zawiera pliki nag³ówkowe wv.
56
57 %package static
58 Summary:        Static wv libraries
59 Summary(pl):    Biblioteki statyczne wv
60 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com o wv
61 Group:          Libraries
62 Requires:       %{name}-devel = %{version}
63
64 %description static
65 Contains static wv libraries.
66
67 %description static -l pl
68 Pakiet zawiera statyczne biblioteki wv.
69
70 %prep
71 %setup -q
72 %patch0 -p1
73 %patch1 -p1
74
75 # Checking for CVS specific files and removing them.
76 find . -type d -name 'CVS'| xargs rm -rf
77
78 %build
79 rm -f missing acinclude.m4
80 libtoolize --copy --force
81 aclocal
82 autoconf
83 autoheader
84 automake -a -c -i
85 CPPFLAGS="-I/usr/X11R6/include/X11"
86 if [ -f %{_pkgconfigdir}/libpng12.pc ] ; then
87         CPPFLAGS="$CPPFLAGS `pkg-config libpng12 --cflags`"
88 fi
89 %configure CPPFLAGS="$CPPFLAGS" \
90         --with-exporter \
91         --with-zlib \
92         --with-png \
93         --with-expat \
94         --with-libwmf \
95         --with-Magick=/usr/X11R6 \
96         --enable-static
97
98 mv -f magick magick-wv
99 %{__make}
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103
104 %{__make} install \
105         DESTDIR=$RPM_BUILD_ROOT \
106         mandir=%{_mandir}
107
108 gzip -9nf CHANGELOG CREDITS D_CREDITS D_README KNOWN-BUGS README TESTING TODO.TXT
109
110 %clean
111 rm -fr $RPM_BUILD_ROOT
112
113 %post   -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
115
116 %files
117 %defattr(644,root,root,755)
118 %doc *.gz
119 %attr(755,root,root) %{_bindir}/wv*
120 %attr(755,root,root) %{_libdir}/lib*.so.*.*
121 %{_datadir}/wv
122 %{_mandir}/man*/*
123
124 %files devel
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_bindir}/libwv-config
127 %attr(755,root,root) %{_libdir}/lib*.so
128 %{_includedir}/*.h
129
130 %files static
131 %defattr(644,root,root,755)
132 %{_libdir}/libwv.a
This page took 0.034155 seconds and 3 git commands to generate.