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 BuildRequires: libtool
18 BuildRequires: libpng-devel
19 BuildRequires: freetype1-devel
20 BuildRequires: XFree86-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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 w
32 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.
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/xgd}
81 sed -e '/^relink_command/d' $f > $f.new
85 %{__make} install DESTDIR=$RPM_BUILD_ROOT
87 mv -f $RPM_BUILD_ROOT%{_includedir}/{gd.h,gd_io.h,gdf*,gdc*} \
88 $RPM_BUILD_ROOT%{_includedir}/xgd
90 # remove unwanted paths from libtool scripts
91 for f in $RPM_BUILD_ROOT%{_libdir}/lib{X,eps,gd,xf,}wmf.la ; do
92 cat $f | awk '/^dependency_libs/ { gsub("-L[ \t]*[^ \t]*/\.libs ","") } //' >$f.tmp
96 rm -rf notes/testprogram
97 gzip -9nf winepatches/* notes/*.txt CHANGELOG CREDITS README
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 %defattr(644,root,root,755)
108 # only these binaries - other conflicts with gd
109 %attr(755,root,root) %{_bindir}/bdftogd
110 %attr(755,root,root) %{_bindir}/wmftofig
111 %attr(755,root,root) %{_bindir}/wmftopng
112 %attr(755,root,root) %{_bindir}/wmftoeps
113 %attr(755,root,root) %{_bindir}/xwmf
114 %attr(755,root,root) %{_libdir}/*.so.*.*
117 %defattr(644,root,root,755)
118 %doc doc examples notes winepatches
121 %attr(755,root,root) %{_libdir}/*.la
124 %defattr(644,root,root,755)