]> git.pld-linux.org Git - packages/libwmf.git/blob - libwmf.spec
- 0.2.8, added subpackage with gdk_pixbuf 2.x loader plugin
[packages/libwmf.git] / libwmf.spec
1 #
2 # Conditional build:
3 # _without_gtk  - without gtk-loader package (which requires gtk+2-devel)
4 #
5 Summary:        libwmf - library to convert wmf files
6 Summary(pl):    libwmf - biblioteka z funkcjami do konwersji plików wmf
7 Name:           libwmf
8 Version:        0.2.8
9 Release:        1
10 Epoch:          2
11 License:        GPL
12 Vendor:         Caolan McNamara <Caolan.McNamara@ul.ie>
13 Group:          Applications/Text
14 Source0:        ftp://ftp.sourceforge.net/pub/sourceforge/wvware/%{name}-%{version}.tar.gz
15 Patch0:         %{name}-fontmap-pld.patch
16 Patch1:         %{name}-includes.patch
17 Patch2:         %{name}-segv.patch
18 URL:            http://wvware.sourceforge.net/
19 BuildRequires:  XFree86-devel
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  expat-devel
23 BuildRequires:  freetype-devel >= 2.0
24 %{!?_without_gtk:BuildRequires: gtk+2-devel >= 2.1.2}
25 BuildRequires:  libjpeg-devel
26 BuildRequires:  libpng-devel
27 BuildRequires:  libtool >= 1:1.4.2-9
28 PreReq:         ghostscript-fonts-std
29 Requires(post): /sbin/ldconfig
30 Requires(post): sed
31 Requires:       sed
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 libwmf is a library for unix like machines that can convert wmf files
36 into other formats, currently it supports fig, eps, a gd binding to
37 convert to png, and an X one to draw direct to an X window or pixmap.
38
39 %description -l pl
40 libwmf jest bibliotek± dla systemów uniksowych, która konwertuje pliki
41 wmf na inne formaty. Aktualnie obs³uguje formaty fig i eps, format png
42 poprzez bibliotekê gd oraz - poprzez biblioteki X Window - rysowanie w
43 okienku oraz format xpm.
44
45 %package devel
46 Summary:        libwmf - header files
47 Summary(pl):    libwmf - pliki nag³ówkowe
48 Group:          Development/Libraries
49 Requires:       %{name} = %{version}
50
51 %description devel
52 This package contains libwmf header files.
53
54 %description devel -l pl
55 Pakiet zawiera pliki nag³ówkowe do biblioteki libwmf.
56
57 %package static
58 Summary:        libwmf - static libraries
59 Summary(pl):    libwmf - biblioteki statyczne
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{version}
62
63 %description static
64 This package contains libwmf static libraries.
65
66 %description static -l pl
67 Pakiet zawiera statyczn± wersjê biblioteki libwmf.
68
69 %package gtk-loader
70 Summary:        WMF loader for gdk_pixbuf 2.x library
71 Summary(pl):    Modu³ wczytuj±cy WMF dla biblioteki gdk_pixbuf 2.x
72 Group:          X11/Libraries
73 Requires:       %{name} = %{version}
74
75 %description gtk-loader
76 WMF loader for gdk_pixbuf 2.x library.
77
78 %description gtk-loader -l pl
79 Modu³ wczytuj±cy WMF dla biblioteki gdk_pixbuf 2.x
80
81 %prep
82 %setup -q
83 %patch0 -p1
84 %patch1 -p1
85 %patch2 -p1
86
87 %build
88 rm -f missing
89 %{__libtoolize}
90 %{__aclocal}
91 %{__autoconf}
92 %{__automake}
93 %configure
94
95 %{__make}
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99
100 %{__make} install DESTDIR=$RPM_BUILD_ROOT
101
102 mv -f $RPM_BUILD_ROOT%{_datadir}/doc ./html-doc
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 CREDITS ChangeLog README TODO
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}/wmf2svg
121 %attr(755,root,root) %{_bindir}/wmf2x
122 %attr(755,root,root) %{_libdir}/*.so.*.*
123 %dir %{_datadir}/libwmf
124 %dir %{_datadir}/libwmf/fonts
125 %ghost %{_datadir}/libwmf/fonts/fontmap
126
127 %files devel
128 %defattr(644,root,root,755)
129 %doc html-doc examples
130 %attr(755,root,root) %{_bindir}/libwmf-config
131 %attr(755,root,root) %{_libdir}/*.so
132 %{_libdir}/*.la
133 %{_includedir}/*
134
135 %files static
136 %defattr(644,root,root,755)
137 %{_libdir}/*.a
138
139 %if %{?_without_gtk:0}%{!?_without_gtk:1}
140 %files gtk-loader
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/gtk-2*/*/loaders/*.so
143 %{_libdir}/gtk-2*/*/loaders/*.la
144 %endif
This page took 0.131988 seconds and 4 git commands to generate.