]> git.pld-linux.org Git - packages/libwmf.git/blob - libwmf.spec
- Use proper gsfontdir
[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 # Source0-md5:  269fb225cd44f40cc877fb6c63706112
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         --with-gsfontdir=%{_fontsdir}/Type1
95
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %{__make} install DESTDIR=$RPM_BUILD_ROOT
102
103 mv -f $RPM_BUILD_ROOT%{_datadir}/doc ./html-doc
104
105 # no static modules and *.la for gtk+ loaders
106 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2*/*/loaders/*.{a,la}
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %post
112 /sbin/ldconfig
113 %{_bindir}/libwmf-fontmap >/dev/null
114
115 %postun -p /sbin/ldconfig
116
117 %files
118 %defattr(644,root,root,755)
119 %doc CREDITS ChangeLog README TODO
120 %attr(755,root,root) %{_bindir}/libwmf-fontmap
121 %attr(755,root,root) %{_bindir}/wmf2eps
122 %attr(755,root,root) %{_bindir}/wmf2fig
123 %attr(755,root,root) %{_bindir}/wmf2gd
124 %attr(755,root,root) %{_bindir}/wmf2svg
125 %attr(755,root,root) %{_bindir}/wmf2x
126 %attr(755,root,root) %{_libdir}/*.so.*.*
127 %dir %{_datadir}/libwmf
128 %dir %{_datadir}/libwmf/fonts
129 %ghost %{_datadir}/libwmf/fonts/fontmap
130
131 %files devel
132 %defattr(644,root,root,755)
133 %doc html-doc examples
134 %attr(755,root,root) %{_bindir}/libwmf-config
135 %attr(755,root,root) %{_libdir}/*.so
136 %{_libdir}/*.la
137 %{_includedir}/*
138
139 %files static
140 %defattr(644,root,root,755)
141 %{_libdir}/*.a
142
143 %if %{?_without_gtk:0}%{!?_without_gtk:1}
144 %files gtk-loader
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_libdir}/gtk-2*/*/loaders/*.so
147 %endif
This page took 0.55375 seconds and 4 git commands to generate.