]> git.pld-linux.org Git - packages/libwmf.git/blob - libwmf.spec
- updated to 0.2.0, removed obsolete DESTDIR and shared patches
[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.0
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 URL:            http://wvware.sourceforge.net/
16 BuildRequires:  libpng-devel
17 BuildRequires:  libjpeg-devel
18 BuildRequires:  freetype-devel >= 2.0
19 BuildRequires:  XFree86-devel
20 BuildRequires:  expat-devel
21 BuildRequires:  libplot-devel
22 Prereq:         /sbin/ldconfig
23 Prereq:         sed
24 Prereq:         ghostscript-fonts-std
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 libwmf is a library for unix like machines that can convert wmf files
29 into other formats, currently it supports fig, eps, a gd binding to
30 convert to png, and an X one to draw direct to an X window or pixmap.
31
32 %description -l pl
33 libwmf jest bibliotek± dla systemów uniksowych, która konwertuje pliki
34 wmf na inne formaty. Aktualnie obs³uguje formaty fig i eps, format png
35 poprzez bibliotekê gd oraz - poprzez biblioteki X Window - rysowanie w
36 okienku oraz format xpm.
37
38 %package devel
39 Summary:        libwmf - header files
40 Summary(pl):    libwmf - pliki nag³ówkowe
41 Group:          Development/Libraries
42 Group(de):      Entwicklung/Libraries
43 Group(fr):      Development/Librairies
44 Group(pl):      Programowanie/Biblioteki
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 Group(de):      Entwicklung/Libraries
58 Group(fr):      Development/Librairies
59 Group(pl):      Programowanie/Biblioteki
60 Requires:       %{name}-devel = %{version}
61
62 %description static
63 This package contains libwmf static libraries.
64
65 %description static -l pl
66 Pakiet zawiera statyczn± wersjê biblioteki libwmf.
67
68 %prep
69 %setup -q
70 %patch -p1
71
72 %build
73 %configure \
74         --with-plot
75 %{__make}
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 %{__make} install DESTDIR=$RPM_BUILD_ROOT
81
82 mv -f $RPM_BUILD_ROOT%{_prefix}/doc ./html-doc
83 gzip -9nf CREDITS ChangeLog README TODO
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post
89 /sbin/ldconfig
90 %{_bindir}/libwmf-fontmap >/dev/null
91
92 %postun -p /sbin/ldconfig
93
94 %files
95 %defattr(644,root,root,755)
96 %doc *.gz
97 %attr(755,root,root) %{_bindir}/libwmf-fontmap
98 %attr(755,root,root) %{_bindir}/wmf2eps
99 %attr(755,root,root) %{_bindir}/wmf2fig
100 %attr(755,root,root) %{_bindir}/wmf2gd
101 %attr(755,root,root) %{_bindir}/wmf2magick
102 %attr(755,root,root) %{_bindir}/wmf2plot
103 %attr(755,root,root) %{_bindir}/wmf2svg
104 %attr(755,root,root) %{_bindir}/wmf2x
105 %attr(755,root,root) %{_libdir}/*.so.*.*
106 %dir %{_datadir}/libwmf
107 %dir %{_datadir}/libwmf/fonts
108 %ghost %{_datadir}/libwmf/fonts/fontmap
109
110 %files devel
111 %defattr(644,root,root,755)
112 %doc html-doc examples
113 %attr(755,root,root) %{_bindir}/libwmf-config
114 %attr(755,root,root) %{_libdir}/*.so
115 %attr(755,root,root) %{_libdir}/*.la
116 %{_includedir}/*
117
118 %files static
119 %defattr(644,root,root,755)
120 %{_libdir}/*.a
This page took 0.564184 seconds and 4 git commands to generate.