]> git.pld-linux.org Git - packages/libwmf.git/blob - libwmf.spec
- updated to 0.1.21b,
[packages/libwmf.git] / libwmf.spec
1 Summary:        libwmf - library to convert wmf files
2 Summary:        libwmf - biblioteka z funkcjami do konwersji plików wmf
3 Name:           libwmf
4 Version:        0.1.21b
5 Release:        1
6 Epoch:          2
7 License:        GPL
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
22
23 %description
24 libwmf is a library for unix like machines that can convert wmf files
25 into other formats, currently it supports a gd binding to convert to
26 png, and an X one to draw direct to an X window or pixmap.
27
28 %package devel
29 Summary:        libwmf - header files
30 Group:          Development/Libraries
31 Group(de):      Entwicklung/Libraries
32 Group(fr):      Development/Librairies
33 Group(pl):      Programowanie/Biblioteki
34 Requires:       %{name} = %{version}
35
36 %description devel
37 This package contains libwmf header files.
38
39 %package static
40 Summary:        libwmf - static libraries
41 Group:          Development/Libraries
42 Group(de):      Entwicklung/Libraries
43 Group(fr):      Development/Librairies
44 Group(pl):      Programowanie/Biblioteki
45 Requires:       %{name}-devel = %{version}
46
47 %description static
48 This package contains libwmf static libraries.
49
50
51 %prep
52 %setup -q -n %{name}
53 %patch0 -p1
54 %patch1 -p1
55
56 %build
57 %configure \
58         --with-ttf
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/xgd}
64
65 %{__make} install DESTDIR=$RPM_BUILD_ROOT
66
67 mv -f $RPM_BUILD_ROOT%{_includedir}/{gd.h,gd_io.h,gdf*,gdc*} $RPM_BUILD_ROOT%{_includedir}/xgd
68
69 rm -rf notes/testprogram
70 gzip -9nf winepatches/* notes/*.txt CHANGELOG CREDITS README
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post   -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %files
79 %defattr(644,root,root,755)
80 %doc doc examples notes winepatches *.gz
81 # only these binaries - other conflicts with gd
82 %attr(755,root,root) %{_bindir}/bdftogd
83 %attr(755,root,root) %{_bindir}/wmftofig
84 %attr(755,root,root) %{_bindir}/wmftopng
85 %attr(755,root,root) %{_bindir}/wmftoeps
86 %attr(755,root,root) %{_bindir}/xwmf
87 %attr(755,root,root) %{_libdir}/*.so.*.*
88
89 %files devel
90 %defattr(644,root,root,755)
91 %{_includedir}/*
92 %{_libdir}/*.so
93 %attr(755,root,root) %{_libdir}/*.la
94
95 %files static
96 %defattr(644,root,root,755)
97 %{_libdir}/*.a
This page took 0.041887 seconds and 4 git commands to generate.