]> git.pld-linux.org Git - packages/libwmf.git/blob - libwmf.spec
updated to 0.1.21 by TiweK
[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.21
5 Release:        1
6 Epoch:          2
7 License:        GPL
8 Group:          Applications/Text
9 Group(de):      Applikationen/Text
10 Group(fr):      Utilitaires/Texte
11 Group(pl):      Aplikacje/Tekst
12 Vendor:         Caolan McNamara <Caolan.McNamara@ul.ie>
13 Source0:        http://download.sourceforge.net/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:  zlib-devel
22 BuildRequires:  XFree86-devel
23 #BuildRequires: xpm-devel               # if XFree86-devel < 4.0.1-7
24
25 %description
26 libwmf is a library for unix like machines that can convert wmf files
27 into other formats, currently it supports a gd binding to convert to
28 png, and an X one to draw direct to an X window or pixmap.
29
30 %package devel
31 Summary:        libwmf - header files
32 Group:          Development/Libraries
33 Group(de):      Entwicklung/Libraries
34 Group(fr):      Development/Librairies
35 Group(pl):      Programowanie/Biblioteki
36 Requires:       %{name} = %{version}
37
38 %description devel
39 This package contains libwmf header files.
40
41 %package static
42 Summary:        libwmf - static libraries
43 Group:          Development/Libraries
44 Group(de):      Entwicklung/Libraries
45 Group(fr):      Development/Librairies
46 Group(pl):      Programowanie/Biblioteki
47 Requires:       %{name}-devel = %{version}
48
49 %description static
50 This package contains libwmf static libraries.
51
52
53 %prep
54 %setup -q -n %{name}
55 %patch0 -p1
56 %patch1 -p1
57
58 %build
59 CFLAGS="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS} -I/usr/include/freetype"
60 %configure
61
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/xgd}
67
68 %{__make} install DESTDIR=$RPM_BUILD_ROOT
69
70 mv -f $RPM_BUILD_ROOT%{_includedir}/{gd.h,gd_io.h,gdf*,gdc*} $RPM_BUILD_ROOT%{_includedir}/xgd
71
72 rm -rf notes/testprogram
73 gzip -9nf winepatches/* notes/*.txt CHANGELOG CREDITS README
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post   -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
80
81 %files
82 %defattr(644,root,root,755)
83 %doc doc examples notes winepatches *.gz
84 # only these binaries - other conflicts with gd
85 %attr(755,root,root) %{_bindir}/bdftogd
86 %attr(755,root,root) %{_bindir}/wmftofig
87 %attr(755,root,root) %{_bindir}/wmftopng
88 %attr(755,root,root) %{_bindir}/xwmf
89 %attr(755,root,root) %{_libdir}/*.so.*.*
90
91 %files devel
92 %defattr(644,root,root,755)
93 %{_includedir}/*
94 %{_libdir}/*.so
95 %attr(755,root,root) %{_libdir}/*.la
96
97 %files static
98 %defattr(644,root,root,755)
99 %{_libdir}/*.a
This page took 0.065336 seconds and 4 git commands to generate.