3 %bcond_without gtk # without gtk-loader package (which requires gtk+2-devel)
4 %bcond_without static_libs # don't build static version of library
6 Summary: libwmf - library to convert wmf files
7 Summary(pl): libwmf - biblioteka z funkcjami do konwersji plików wmf
13 Group: Applications/Text
14 Source0: http://dl.sourceforge.net/wvware/%{name}-%{version}.tar.gz
15 # Source0-md5: 1e0422026dd392651f0b8641fa33599d
16 Patch0: %{name}-fontmap-pld.patch
17 Patch1: %{name}-includes.patch
18 Patch2: %{name}-segv.patch
19 URL: http://wvware.sourceforge.net/
20 BuildRequires: XFree86-devel
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: expat-devel
24 BuildRequires: freetype-devel >= 2.0
25 %{?with_gtk:BuildRequires: gtk+2-devel >= 2.1.2}
26 BuildRequires: libjpeg-devel
27 BuildRequires: libpng-devel
28 BuildRequires: libtool >= 1:1.4.2-9
29 PreReq: ghostscript-fonts-std
30 Requires(post): /sbin/ldconfig
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define specflags_ia32 -fomit-frame-pointer
38 libwmf is a library for unix like machines that can convert wmf files
39 into other formats, currently it supports fig, eps, a gd binding to
40 convert to png, and an X one to draw direct to an X window or pixmap.
43 libwmf jest bibliotek± dla systemów uniksowych, która konwertuje pliki
44 wmf na inne formaty. Aktualnie obs³uguje formaty fig i eps, format png
45 poprzez bibliotekê gd oraz - poprzez biblioteki X Window - rysowanie w
46 okienku oraz format xpm.
49 Summary: libwmf - header files
50 Summary(pl): libwmf - pliki nag³ówkowe
51 Group: Development/Libraries
52 Requires: %{name} = %{epoch}:%{version}
55 This package contains libwmf header files.
57 %description devel -l pl
58 Pakiet zawiera pliki nag³ówkowe do biblioteki libwmf.
61 Summary: libwmf - static libraries
62 Summary(pl): libwmf - biblioteki statyczne
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{epoch}:%{version}
67 This package contains libwmf static libraries.
69 %description static -l pl
70 Pakiet zawiera statyczn± wersjê biblioteki libwmf.
73 Summary: WMF loader for gdk_pixbuf 2.x library
74 Summary(pl): Modu³ wczytuj±cy WMF dla biblioteki gdk_pixbuf 2.x
76 Requires: %{name} = %{epoch}:%{version}
78 %description gtk-loader
79 WMF loader for gdk_pixbuf 2.x library.
81 %description gtk-loader -l pl
82 Modu³ wczytuj±cy WMF dla biblioteki gdk_pixbuf 2.x
97 %{!?with_static_libs:--disable-static} \
98 --with-sysfontmap=%{_fontsdir}/ghostscript-fonts-std.font \
99 --with-gsfontmap=%{_fontsdir}/Type1/Fontmap \
100 --with-gsfontdir=%{_fontsdir}/Type1
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
110 mv -f $RPM_BUILD_ROOT%{_datadir}/doc ./html-doc
112 # no static modules and *.la for gtk+ loaders - shut up check-files
113 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2*/*/loaders/*.{a,la}
116 rm -rf $RPM_BUILD_ROOT
120 %{_bindir}/libwmf-fontmap >/dev/null
122 %postun -p /sbin/ldconfig
125 %defattr(644,root,root,755)
126 %doc CREDITS ChangeLog README TODO
127 %attr(755,root,root) %{_bindir}/libwmf-fontmap
128 %attr(755,root,root) %{_bindir}/wmf2eps
129 %attr(755,root,root) %{_bindir}/wmf2fig
130 %attr(755,root,root) %{_bindir}/wmf2gd
131 %attr(755,root,root) %{_bindir}/wmf2svg
132 %attr(755,root,root) %{_bindir}/wmf2x
133 %attr(755,root,root) %{_libdir}/*.so.*.*
134 %dir %{_datadir}/libwmf
135 %dir %{_datadir}/libwmf/fonts
136 %ghost %{_datadir}/libwmf/fonts/fontmap
139 %defattr(644,root,root,755)
140 %doc html-doc examples
141 %attr(755,root,root) %{_bindir}/libwmf-config
142 %attr(755,root,root) %{_libdir}/*.so
146 %if %{with static_libs}
148 %defattr(644,root,root,755)
154 %defattr(644,root,root,755)
155 %attr(755,root,root) %{_libdir}/gtk-2*/*/loaders/*.so