]> git.pld-linux.org Git - packages/libwmf.git/blob - libwmf.spec
- 0.2.1, updated fontmap-pld patch, added gd and include patches
[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.1
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}-fontmap-pld.patch
15 Patch1:         %{name}-gd.patch
16 Patch2:         %{name}-includes.patch
17 URL:            http://wvware.sourceforge.net/
18 BuildRequires:  libpng-devel
19 BuildRequires:  libjpeg-devel
20 BuildRequires:  freetype-devel >= 2.0
21 BuildRequires:  XFree86-devel
22 BuildRequires:  expat-devel
23 BuildRequires:  libplot-devel
24 BuildRequires:  autoconf
25 BuildRequires:  automake
26 Prereq:         /sbin/ldconfig
27 Prereq:         sed
28 Prereq:         ghostscript-fonts-std
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 libwmf is a library for unix like machines that can convert wmf files
33 into other formats, currently it supports fig, eps, a gd binding to
34 convert to png, and an X one to draw direct to an X window or pixmap.
35
36 %description -l pl
37 libwmf jest bibliotek± dla systemów uniksowych, która konwertuje pliki
38 wmf na inne formaty. Aktualnie obs³uguje formaty fig i eps, format png
39 poprzez bibliotekê gd oraz - poprzez biblioteki X Window - rysowanie w
40 okienku oraz format xpm.
41
42 %package devel
43 Summary:        libwmf - header files
44 Summary(pl):    libwmf - pliki nag³ówkowe
45 Group:          Development/Libraries
46 Group(de):      Entwicklung/Libraries
47 Group(fr):      Development/Librairies
48 Group(pl):      Programowanie/Biblioteki
49 Requires:       %{name} = %{version}
50
51 %description devel
52 This package contains libwmf header files.
53
54 %description devel -l pl
55 Pakiet zawiera pliki nag³ówkowe do biblioteki libwmf.
56
57 %package static
58 Summary:        libwmf - static libraries
59 Summary(pl):    libwmf - biblioteki statyczne
60 Group:          Development/Libraries
61 Group(de):      Entwicklung/Libraries
62 Group(fr):      Development/Librairies
63 Group(pl):      Programowanie/Biblioteki
64 Requires:       %{name}-devel = %{version}
65
66 %description static
67 This package contains libwmf static libraries.
68
69 %description static -l pl
70 Pakiet zawiera statyczn± wersjê biblioteki libwmf.
71
72 %prep
73 %setup -q
74 %patch0 -p1
75 %patch1 -p1
76 %patch2 -p1
77
78 %build
79 libtoolize --copy --force
80 aclocal
81 automake -a -c
82 autoconf
83 %configure \
84         --with-plot
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} install DESTDIR=$RPM_BUILD_ROOT
91
92 mv -f $RPM_BUILD_ROOT%{_datadir}/doc ./html-doc
93 gzip -9nf CREDITS ChangeLog README TODO
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %post
99 /sbin/ldconfig
100 %{_bindir}/libwmf-fontmap >/dev/null
101
102 %postun -p /sbin/ldconfig
103
104 %files
105 %defattr(644,root,root,755)
106 %doc *.gz
107 %attr(755,root,root) %{_bindir}/libwmf-fontmap
108 %attr(755,root,root) %{_bindir}/wmf2eps
109 %attr(755,root,root) %{_bindir}/wmf2fig
110 %attr(755,root,root) %{_bindir}/wmf2gd
111 %attr(755,root,root) %{_bindir}/wmf2magick
112 %attr(755,root,root) %{_bindir}/wmf2plot
113 %attr(755,root,root) %{_bindir}/wmf2svg
114 %attr(755,root,root) %{_bindir}/wmf2x
115 %attr(755,root,root) %{_libdir}/*.so.*.*
116 %dir %{_datadir}/libwmf
117 %dir %{_datadir}/libwmf/fonts
118 %ghost %{_datadir}/libwmf/fonts/fontmap
119
120 %files devel
121 %defattr(644,root,root,755)
122 %doc html-doc examples
123 %attr(755,root,root) %{_bindir}/libwmf-config
124 %attr(755,root,root) %{_libdir}/*.so
125 %attr(755,root,root) %{_libdir}/*.la
126 %{_includedir}/*
127
128 %files static
129 %defattr(644,root,root,755)
130 %{_libdir}/*.a
This page took 0.845183 seconds and 4 git commands to generate.