]> git.pld-linux.org Git - packages/wv.git/blob - wv.spec
7a11b84518639d23c0887d5b704262ebd5b13563
[packages/wv.git] / wv.spec
1 #
2 # Conditional build:
3 # _without_static       - without static version
4 #
5 Summary:        MSWord Document to HTML converter
6 Summary(pl):    Konwerter dokumentów MS Worda do HTML
7 Summary(pt_BR): Conversor de arquivos formato Word (6/7/8/9) para html
8 Name:           wv
9 Version:        1.0.0
10 Release:        1
11 License:        GPL
12 Group:          Applications/Text
13 Source0:        http://dl.sourceforge.net/wvware/%{name}-%{version}.tar.gz
14 # Source0-md5:  5e9675a8676cb1c1f6b8ab05af883178
15 Patch0:         %{name}-magick.patch
16 Patch1:         %{name}-fixes.patch
17 Patch2:         %{name}-wrappers.patch
18 URL:            http://www.wvWare.com/
19 BuildRequires:  ImageMagick-devel >= 1:5.5.2.5
20 BuildRequires:  XFree86-devel
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  expat-devel
24 BuildRequires:  glib2-devel
25 BuildRequires:  libjpeg-devel
26 BuildRequires:  libpng-devel
27 BuildRequires:  libtool
28 BuildRequires:  libwmf-devel >= 0.2.2
29 BuildRequires:  pkgconfig
30 BuildRequires:  zlib-devel
31 Obsoletes:      mswordview
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %define         specflags_ia32  "-fomit-frame-pointer"
35
36 %description
37 MSWordView is a program that understands the Microsoft Word 8 binary
38 file format (Office97, Office2000) and is able to convert Word
39 documents into HTML, which can then be read with a browser.
40
41 wv is a suite of programs to help convert Word Documents to HTML.
42
43 %description -l pl
44 MSWordView jest programem, który rozumie binarne dokumenty programu
45 Microsoft Word 8 (Office97, Office2000) i jest w stanie skonwertowaæ
46 je do dokumentu HTML, który mo¿e byæ przeczytany w przegl±darce WWW.
47
48 wv jest elementem programów, które pomagaj± przekonwertowaæ dokumenty
49 Worda do HTML.
50
51 %description -l pt_BR
52 Conversor de arquivos formato Word (6/7/8/9) para html.
53
54 %package devel
55 Summary:        Include files needed to compile
56 Summary(pl):    Pliki nag³ówkowe do biblioteki wv
57 Group:          Development/Libraries
58 Requires:       %{name} = %{version}
59
60 %description devel
61 Contains the header files.
62
63 %description devel -l pl
64 Pakiet tem zawiera pliki nag³ówkowe wv.
65
66 %package static
67 Summary:        Static wv libraries
68 Summary(pl):    Biblioteki statyczne wv
69 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com o wv
70 Group:          Development/Libraries
71 Requires:       %{name}-devel = %{version}
72
73 %description static
74 Contains static wv libraries.
75
76 %description static -l pl
77 Pakiet zawiera statyczne biblioteki wv.
78
79 %prep
80 %setup -q
81 %patch0 -p1
82 %patch1 -p1
83 %patch2 -p1
84
85 %build
86 rm -f missing acinclude.m4
87 %{__libtoolize}
88 %{__aclocal}
89 %{__autoconf}
90 %{__autoheader}
91 %{__automake} -i
92 %configure \
93         --with-exporter \
94         --with-zlib \
95         --with-png \
96         --with-Magick \
97         --with-expat \
98         --with-glib=glib2 \
99         --with-libwmf \
100         --%{?_without_static:dis}%{!?_without_static:en}able-static
101
102 mv -f magick magick-wv
103 %{__make}
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107
108 %{__make} install \
109         DESTDIR=$RPM_BUILD_ROOT \
110         mandir=%{_mandir}
111
112 %clean
113 rm -fr $RPM_BUILD_ROOT
114
115 %post   -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
117
118 %files
119 %defattr(644,root,root,755)
120 %doc README
121 %attr(755,root,root) %{_bindir}/wv*
122 %attr(755,root,root) %{_libdir}/lib*.so.*.*
123 %{_datadir}/wv
124 %{_mandir}/man*/*
125
126 %files devel
127 %defattr(644,root,root,755)
128 %{_pkgconfigdir}/*
129 %{_libdir}/lib*.la
130 %attr(755,root,root) %{_libdir}/lib*.so
131 %{_includedir}/*
132
133 %if %{!?_without_static:1}%{?_without_static:0}
134 %files static
135 %defattr(644,root,root,755)
136 %{_libdir}/libwv.a
137 %endif
This page took 0.049215 seconds and 2 git commands to generate.