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