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