3 # _without_gtk - without gtk-loader package (which requires gtk+2-devel)
5 Summary: libwmf - library to convert wmf files
6 Summary(pl): libwmf - biblioteka z funkcjami do konwersji plików wmf
12 Group: Applications/Text
13 Source0: http://dl.sourceforge.net/wvware/%{name}-%{version}.tar.gz
14 Patch0: %{name}-fontmap-pld.patch
15 Patch1: %{name}-includes.patch
16 Patch2: %{name}-segv.patch
17 URL: http://wvware.sourceforge.net/
18 BuildRequires: XFree86-devel
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: expat-devel
22 BuildRequires: freetype-devel >= 2.0
23 %{!?_without_gtk:BuildRequires: gtk+2-devel >= 2.1.2}
24 BuildRequires: libjpeg-devel
25 BuildRequires: libpng-devel
26 BuildRequires: libtool >= 1:1.4.2-9
27 PreReq: ghostscript-fonts-std
28 Requires(post): /sbin/ldconfig
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 libwmf is a library for unix like machines that can convert wmf files
35 into other formats, currently it supports fig, eps, a gd binding to
36 convert to png, and an X one to draw direct to an X window or pixmap.
39 libwmf jest bibliotek± dla systemów uniksowych, która konwertuje pliki
40 wmf na inne formaty. Aktualnie obs³uguje formaty fig i eps, format png
41 poprzez bibliotekê gd oraz - poprzez biblioteki X Window - rysowanie w
42 okienku oraz format xpm.
45 Summary: libwmf - header files
46 Summary(pl): libwmf - pliki nag³ówkowe
47 Group: Development/Libraries
48 Requires: %{name} = %{version}
51 This package contains libwmf header files.
53 %description devel -l pl
54 Pakiet zawiera pliki nag³ówkowe do biblioteki libwmf.
57 Summary: libwmf - static libraries
58 Summary(pl): libwmf - biblioteki statyczne
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}
63 This package contains libwmf static libraries.
65 %description static -l pl
66 Pakiet zawiera statyczn± wersjê biblioteki libwmf.
69 Summary: WMF loader for gdk_pixbuf 2.x library
70 Summary(pl): Modu³ wczytuj±cy WMF dla biblioteki gdk_pixbuf 2.x
72 Requires: %{name} = %{version}
74 %description gtk-loader
75 WMF loader for gdk_pixbuf 2.x library.
77 %description gtk-loader -l pl
78 Modu³ wczytuj±cy WMF dla biblioteki gdk_pixbuf 2.x
97 rm -rf $RPM_BUILD_ROOT
99 %{__make} install DESTDIR=$RPM_BUILD_ROOT
101 mv -f $RPM_BUILD_ROOT%{_datadir}/doc ./html-doc
104 rm -rf $RPM_BUILD_ROOT
108 %{_bindir}/libwmf-fontmap >/dev/null
110 %postun -p /sbin/ldconfig
113 %defattr(644,root,root,755)
114 %doc CREDITS ChangeLog README TODO
115 %attr(755,root,root) %{_bindir}/libwmf-fontmap
116 %attr(755,root,root) %{_bindir}/wmf2eps
117 %attr(755,root,root) %{_bindir}/wmf2fig
118 %attr(755,root,root) %{_bindir}/wmf2gd
119 %attr(755,root,root) %{_bindir}/wmf2svg
120 %attr(755,root,root) %{_bindir}/wmf2x
121 %attr(755,root,root) %{_libdir}/*.so.*.*
122 %dir %{_datadir}/libwmf
123 %dir %{_datadir}/libwmf/fonts
124 %ghost %{_datadir}/libwmf/fonts/fontmap
127 %defattr(644,root,root,755)
128 %doc html-doc examples
129 %attr(755,root,root) %{_bindir}/libwmf-config
130 %attr(755,root,root) %{_libdir}/*.so
135 %defattr(644,root,root,755)
138 %if %{?_without_gtk:0}%{!?_without_gtk:1}
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %{_libdir}/gtk-2*/*/loaders/*.so
142 %{_libdir}/gtk-2*/*/loaders/*.la