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