1 Summary: libwmf - library to convert wmf files
2 Summary(pl): libwmf - biblioteka z funkcjami do konwersji plików wmf
8 Vendor: Caolan McNamara <Caolan.McNamara@ul.ie>
9 Group: Applications/Text
10 Group(de): Applikationen/Text
11 Group(fr): Utilitaires/Texte
12 Group(pl): Aplikacje/Tekst
13 Source0: ftp://download.sourceforge.net/pub/sourceforge/wvware/%{name}-%{version}.tar.gz
14 Patch0: %{name}-DESTDIR.patch
15 Patch1: %{name}-shared.patch
16 URL: http://wvware.sourceforge.net/
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 BuildRequires: libtool
19 BuildRequires: libpng-devel
20 BuildRequires: freetype-devel
21 BuildRequires: XFree86-devel
24 libwmf is a library for unix like machines that can convert wmf files
25 into other formats, currently it supports fig, eps, a gd binding to
26 convert to png, and an X one to draw direct to an X window or pixmap.
29 libwmf jest bibliotek± dla systemów uniksowych, która konwertuje pliki
30 wmf na inne formaty. Aktualnie obs³uguje formaty fig i eps, format png
31 poprzez bibliotekê gd oraz - poprzez biblioteki X Window - rysowanie
32 w okienku oraz format xpm.
35 Summary: libwmf - header files
36 Summary(pl): libwmf - pliki nag³ówkowe
37 Group: Development/Libraries
38 Group(de): Entwicklung/Libraries
39 Group(fr): Development/Librairies
40 Group(pl): Programowanie/Biblioteki
41 Requires: %{name} = %{version}
44 This package contains libwmf header files.
46 %description devel -l pl
47 Pakiet zawiera pliki nag³ówkowe do biblioteki libwmf.
50 Summary: libwmf - static libraries
51 Summary(pl): libwmf - biblioteki statyczne
52 Group: Development/Libraries
53 Group(de): Entwicklung/Libraries
54 Group(fr): Development/Librairies
55 Group(pl): Programowanie/Biblioteki
56 Requires: %{name}-devel = %{version}
59 This package contains libwmf static libraries.
61 %description static -l pl
62 Pakiet zawiera statyczn± wersjê biblioteki libwmf.
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/xgd}
78 %{__make} install DESTDIR=$RPM_BUILD_ROOT
80 mv -f $RPM_BUILD_ROOT%{_includedir}/{gd.h,gd_io.h,gdf*,gdc*} \
81 $RPM_BUILD_ROOT%{_includedir}/xgd
83 # remove unwanted paths from libtool scripts
84 for f in $RPM_BUILD_ROOT%{_libdir}/lib{X,eps,gd,xf,}wmf.la ; do
85 cat $f | awk '/^dependency_libs/ { gsub("-L[ \t]*[^ \t]*/\.libs ","") } //' >$f.tmp
89 rm -rf notes/testprogram
90 gzip -9nf winepatches/* notes/*.txt CHANGELOG CREDITS README
93 rm -rf $RPM_BUILD_ROOT
95 %post -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
99 %defattr(644,root,root,755)
101 # only these binaries - other conflicts with gd
102 %attr(755,root,root) %{_bindir}/bdftogd
103 %attr(755,root,root) %{_bindir}/wmftofig
104 %attr(755,root,root) %{_bindir}/wmftopng
105 %attr(755,root,root) %{_bindir}/wmftoeps
106 %attr(755,root,root) %{_bindir}/xwmf
107 %attr(755,root,root) %{_libdir}/*.so.*.*
110 %defattr(644,root,root,755)
111 %doc doc examples notes winepatches
114 %attr(755,root,root) %{_libdir}/*.la
117 %defattr(644,root,root,755)