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