]> git.pld-linux.org Git - packages/libwmf.git/blob - libwmf.spec
- removed all Group fields translations (oure rpm now can handle translating
[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.2
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:  libpng-devel
16 BuildRequires:  libjpeg-devel
17 BuildRequires:  freetype-devel >= 2.0
18 BuildRequires:  XFree86-devel
19 BuildRequires:  expat-devel
20 BuildRequires:  libplot-devel
21 BuildRequires:  autoconf
22 BuildRequires:  automake
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 libtoolize --copy --force
73 aclocal
74 automake -a -c
75 autoconf
76 %configure \
77         --with-plot \
78         --enable-magick
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 gzip -9nf CREDITS ChangeLog README TODO
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post
93 /sbin/ldconfig
94 %{_bindir}/libwmf-fontmap >/dev/null
95
96 %postun -p /sbin/ldconfig
97
98 %files
99 %defattr(644,root,root,755)
100 %doc *.gz
101 %attr(755,root,root) %{_bindir}/libwmf-fontmap
102 %attr(755,root,root) %{_bindir}/wmf2eps
103 %attr(755,root,root) %{_bindir}/wmf2fig
104 %attr(755,root,root) %{_bindir}/wmf2gd
105 %attr(755,root,root) %{_bindir}/wmf2magick
106 %attr(755,root,root) %{_bindir}/wmf2plot
107 %attr(755,root,root) %{_bindir}/wmf2svg
108 %attr(755,root,root) %{_bindir}/wmf2x
109 %attr(755,root,root) %{_libdir}/*.so.*.*
110 %dir %{_datadir}/libwmf
111 %dir %{_datadir}/libwmf/fonts
112 %ghost %{_datadir}/libwmf/fonts/fontmap
113
114 %files devel
115 %defattr(644,root,root,755)
116 %doc html-doc examples
117 %attr(755,root,root) %{_bindir}/libwmf-config
118 %attr(755,root,root) %{_libdir}/*.so
119 %attr(755,root,root) %{_libdir}/*.la
120 %{_includedir}/*
121
122 %files static
123 %defattr(644,root,root,755)
124 %{_libdir}/*.a
This page took 0.035161 seconds and 4 git commands to generate.