]> git.pld-linux.org Git - packages/libwmf.git/blob - libwmf.spec
- merge from DEVEL (0.2.6 - not for Ra)
[packages/libwmf.git] / libwmf.spec
1 Summary:        libwmf - library to convert wmf files
2 Summary(pl):    libwmf - biblioteka z funkcjami do konwersji plików wmf
3 Name:           libwmf
4 Version:        0.2.6
5 Release:        1
6 Epoch:          2
7 License:        GPL
8 Vendor:         Caolan McNamara <Caolan.McNamara@ul.ie>
9 Group:          Applications/Text
10 Source0:        ftp://download.sourceforge.net/pub/sourceforge/wvware/%{name}-%{version}.tar.gz
11 Patch0:         %{name}-fontmap-pld.patch
12 Patch1:         %{name}-includes.patch
13 Patch2:         %{name}-segv.patch
14 URL:            http://wvware.sourceforge.net/
15 BuildRequires:  XFree86-devel
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  expat-devel
19 BuildRequires:  freetype-devel >= 2.0
20 BuildRequires:  libjpeg-devel
21 #BuildRequires: libplot-devel
22 BuildRequires:  libpng-devel
23 BuildRequires:  libtool
24 BuildRequires:  plotutils
25 Prereq:         /sbin/ldconfig
26 Prereq:         sed
27 Prereq:         ghostscript-fonts-std
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 libwmf is a library for unix like machines that can convert wmf files
32 into other formats, currently it supports fig, eps, a gd binding to
33 convert to png, and an X one to draw direct to an X window or pixmap.
34
35 %description -l pl
36 libwmf jest bibliotek± dla systemów uniksowych, która konwertuje pliki
37 wmf na inne formaty. Aktualnie obs³uguje formaty fig i eps, format png
38 poprzez bibliotekê gd oraz - poprzez biblioteki X Window - rysowanie w
39 okienku oraz format xpm.
40
41 %package devel
42 Summary:        libwmf - header files
43 Summary(pl):    libwmf - pliki nag³ówkowe
44 Group:          Development/Libraries
45 Requires:       %{name} = %{version}
46
47 %description devel
48 This package contains libwmf header files.
49
50 %description devel -l pl
51 Pakiet zawiera pliki nag³ówkowe do biblioteki libwmf.
52
53 %package static
54 Summary:        libwmf - static libraries
55 Summary(pl):    libwmf - biblioteki statyczne
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{version}
58
59 %description static
60 This package contains libwmf static libraries.
61
62 %description static -l pl
63 Pakiet zawiera statyczn± wersjê biblioteki libwmf.
64
65 %prep
66 %setup -q
67 %patch0 -p1
68 %patch1 -p1
69 %patch2 -p1
70
71 %build
72 rm -f missing
73 %{__libtoolize}
74 %{__aclocal}
75 %{__autoconf}
76 %{__automake}
77 %configure
78
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83
84 %{__make} install DESTDIR=$RPM_BUILD_ROOT
85
86 mv -f $RPM_BUILD_ROOT%{_datadir}/doc ./html-doc
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post
92 /sbin/ldconfig
93 %{_bindir}/libwmf-fontmap >/dev/null
94
95 %postun -p /sbin/ldconfig
96
97 %files
98 %defattr(644,root,root,755)
99 %doc CREDITS ChangeLog README TODO
100 %attr(755,root,root) %{_bindir}/libwmf-fontmap
101 %attr(755,root,root) %{_bindir}/wmf2eps
102 %attr(755,root,root) %{_bindir}/wmf2fig
103 %attr(755,root,root) %{_bindir}/wmf2gd
104 #%attr(755,root,root) %{_bindir}/wmf2magick
105 #%attr(755,root,root) %{_bindir}/wmf2plot
106 %attr(755,root,root) %{_bindir}/wmf2svg
107 %attr(755,root,root) %{_bindir}/wmf2x
108 %attr(755,root,root) %{_libdir}/*.so.*.*
109 %dir %{_datadir}/libwmf
110 %dir %{_datadir}/libwmf/fonts
111 %ghost %{_datadir}/libwmf/fonts/fontmap
112
113 %files devel
114 %defattr(644,root,root,755)
115 %doc html-doc examples
116 %attr(755,root,root) %{_bindir}/libwmf-config
117 %attr(755,root,root) %{_libdir}/*.so
118 %attr(755,root,root) %{_libdir}/*.la
119 %{_includedir}/*
120
121 %files static
122 %defattr(644,root,root,755)
123 %{_libdir}/*.a
This page took 0.037892 seconds and 4 git commands to generate.