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