]> git.pld-linux.org Git - packages/libwmf.git/blob - libwmf.spec
- use more macros, some cosmetics, added missing "rm -f missing" and use new %doc
[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:  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 if [ -f %{_pkgconfigdir}/libpng12.pc ] ; then
78         CPPFLAGS="`pkg-config libpng12 --cflags`"
79 fi
80 %configure CPPFLAGS="$CPPFLAGS" \
81         --with-plot \
82         --enable-magick
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install DESTDIR=$RPM_BUILD_ROOT
89
90 mv -f $RPM_BUILD_ROOT%{_datadir}/doc ./html-doc
91 gzip -9nf CREDITS ChangeLog README TODO
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post
97 /sbin/ldconfig
98 %{_bindir}/libwmf-fontmap >/dev/null
99
100 %postun -p /sbin/ldconfig
101
102 %files
103 %defattr(644,root,root,755)
104 %doc *.gz
105 %attr(755,root,root) %{_bindir}/libwmf-fontmap
106 %attr(755,root,root) %{_bindir}/wmf2eps
107 %attr(755,root,root) %{_bindir}/wmf2fig
108 %attr(755,root,root) %{_bindir}/wmf2gd
109 %attr(755,root,root) %{_bindir}/wmf2magick
110 %attr(755,root,root) %{_bindir}/wmf2plot
111 %attr(755,root,root) %{_bindir}/wmf2svg
112 %attr(755,root,root) %{_bindir}/wmf2x
113 %attr(755,root,root) %{_libdir}/*.so.*.*
114 %dir %{_datadir}/libwmf
115 %dir %{_datadir}/libwmf/fonts
116 %ghost %{_datadir}/libwmf/fonts/fontmap
117
118 %files devel
119 %defattr(644,root,root,755)
120 %doc html-doc examples
121 %attr(755,root,root) %{_bindir}/libwmf-config
122 %attr(755,root,root) %{_libdir}/*.so
123 %attr(755,root,root) %{_libdir}/*.la
124 %{_includedir}/*
125
126 %files static
127 %defattr(644,root,root,755)
128 %{_libdir}/*.a
This page took 0.070446 seconds and 4 git commands to generate.