]> git.pld-linux.org Git - packages/libwmf.git/blame - libwmf.spec
- release 18
[packages/libwmf.git] / libwmf.spec
CommitLineData
1df5f0ec
JB
1#
2# Conditional build:
7cbac751
JB
3%bcond_without gtk # without gtk-loader package (which requires gtk+2-devel)
4%bcond_without static_libs # don't build static version of library
5#
eb46013d 6Summary: libwmf - library to convert WMF files
7Summary(pl.UTF-8): libwmf - biblioteka z funkcjami do konwersji plików WMF
afa7958e 8Name: libwmf
250d2bc8 9Version: 0.2.8.4
ee4d6fd7 10Release: 18
a4db6984 11Epoch: 2
354591b1 12License: LGPL v2+
a4db6984 13Group: Applications/Text
354591b1 14Source0: http://downloads.sourceforge.net/wvware/%{name}-%{version}.tar.gz
250d2bc8 15# Source0-md5: d1177739bf1ceb07f57421f0cee191e0
c27bd194 16Patch0: %{name}-fontmap-pld.patch
75d7a789
JB
17Patch1: %{name}-includes.patch
18Patch2: %{name}-segv.patch
0ee65d77 19Patch3: %{name}-png12.patch
30b77d29 20Patch4: %{name}-0.2.8.4-useafterfree.patch
26b0bf12
KK
21Patch5: %{name}-0.2.8.4-CVE-2007-0455.patch
22Patch6: %{name}-0.2.8.4-CVE-2007-3472.patch
23Patch7: %{name}-0.2.8.4-CVE-2007-3473.patch
24Patch8: %{name}-0.2.8.4-CVE-2007-3477.patch
25Patch9: %{name}-0.2.8.4-CVE-2007-2756.patch
26Patch10: %{name}-0.2.8.4-CAN-2004-0941.patch
27Patch11: %{name}-0.2.8.4-CVE-2009-3546.patch
ce43a3a7 28Patch12: %{name}-pixbufloaderdir.patch
3d37805d 29URL: http://wvware.sourceforge.net/
31c15663 30BuildRequires: autoconf >= 2.59-9
8e6ccf36 31BuildRequires: automake
505c61b2
JB
32BuildRequires: expat-devel
33BuildRequires: freetype-devel >= 2.0
0ee65d77 34%{?with_gtk:BuildRequires: gtk+2-devel >= 1:2.10.0}
505c61b2 35BuildRequires: libjpeg-devel
896ba6df 36BuildRequires: libpng-devel >= 2:1.4.0
1df5f0ec 37BuildRequires: libtool >= 1:1.4.2-9
09da5af6 38BuildRequires: pkgconfig
31c15663
JB
39BuildRequires: xorg-lib-libX11-devel
40Requires(post): ghostscript-fonts-std
e59882f1 41Requires(post): sed
09da5af6 42Requires: %{name}-libs = %{epoch}:%{version}-%{release}
74a90dc1 43Requires: fonts-Type1-urw
e59882f1 44Requires: sed
5c0e4f51 45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
85ffcc3a 46
2880e2bc
TP
47%define specflags_ia32 -fomit-frame-pointer
48
85ffcc3a 49%description
eb46013d 50libwmf is a library for Unix like machines that can convert WMF files
21dd8d5b 51into other formats, currently it supports fig, eps, a gd binding to
c0ff1c08 52convert to png, and an X one to draw direct to an X Window or pixmap.
21dd8d5b 53
8e6b90ae
JR
54%description -l pl.UTF-8
55libwmf jest biblioteką dla systemów uniksowych, która konwertuje pliki
eb46013d 56WMF na inne formaty. Aktualnie obsługuje formaty fig i eps, format png
8e6b90ae 57poprzez bibliotekę gd oraz - poprzez biblioteki X Window - rysowanie w
5c0e4f51 58okienku oraz format xpm.
985cf28f 59
7e6ce155
JB
60%package libs
61Summary: libwmf - libraries
336b114b 62Summary(pl.UTF-8): libwmf - biblioteki
7e6ce155 63Group: Libraries
71787c9b 64Conflicts: libwmf < 2:0.2.8.4
7e6ce155
JB
65
66%description libs
67This package contains libwmf libraries.
68
8e6b90ae 69%description libs -l pl.UTF-8
7e6ce155
JB
70Ten pakiet zawiera biblioteki libwmf.
71
985cf28f
JB
72%package devel
73Summary: libwmf - header files
336b114b 74Summary(pl.UTF-8): libwmf - pliki nagłówkowe
985cf28f 75Group: Development/Libraries
d5a54140 76Requires: %{name}-libs = %{epoch}:%{version}-%{release}
032176d1 77# libwmflite(.la) has no additional deps
31c15663 78# libwmf(.la) needs freetype-devel, expat-devel, libjpeg-devel, libpng-devel, xorg-lib-libX11-devel
985cf28f
JB
79
80%description devel
81This package contains libwmf header files.
82
8e6b90ae
JR
83%description devel -l pl.UTF-8
84Pakiet zawiera pliki nagłówkowe do biblioteki libwmf.
21dd8d5b 85
985cf28f
JB
86%package static
87Summary: libwmf - static libraries
336b114b 88Summary(pl.UTF-8): libwmf - biblioteki statyczne
985cf28f 89Group: Development/Libraries
ded81787 90Requires: %{name}-devel = %{epoch}:%{version}-%{release}
985cf28f
JB
91
92%description static
93This package contains libwmf static libraries.
94
8e6b90ae
JR
95%description static -l pl.UTF-8
96Pakiet zawiera statyczną wersję biblioteki libwmf.
85ffcc3a 97
1df5f0ec
JB
98%package gtk-loader
99Summary: WMF loader for gdk_pixbuf 2.x library
336b114b 100Summary(pl.UTF-8): Moduł wczytujący WMF dla biblioteki gdk_pixbuf 2.x
1df5f0ec 101Group: X11/Libraries
ded81787 102Requires: %{name} = %{epoch}:%{version}-%{release}
1df5f0ec
JB
103
104%description gtk-loader
105WMF loader for gdk_pixbuf 2.x library.
106
8e6b90ae
JR
107%description gtk-loader -l pl.UTF-8
108Moduł wczytujący WMF dla biblioteki gdk_pixbuf 2.x
1df5f0ec 109
85ffcc3a 110%prep
c27bd194 111%setup -q
8e6ccf36
JB
112%patch0 -p1
113%patch1 -p1
114%patch2 -p1
0ee65d77 115%patch3 -p1
30b77d29 116%patch4 -p1
26b0bf12
KK
117%patch5 -p1
118%patch6 -p1
119%patch7 -p1
120%patch8 -p1
121%patch9 -p1
122%patch10 -p1
123%patch11 -p1
ce43a3a7 124%patch12 -p1
85ffcc3a 125
126%build
ce43a3a7 127%{__rm} configure.in
2d865440 128%{__libtoolize}
424cda8a 129%{__aclocal}
e1bcb62e 130%{__autoheader}
b88dd915 131%{__autoconf}
424cda8a 132%{__automake}
ce2f27e7 133%configure \
8603d009 134 %{!?with_static_libs:--disable-static} \
672aa96d
TP
135 --with-sysfontmap=%{_fontsdir}/ghostscript-fonts-std.font \
136 --with-gsfontmap=%{_fontsdir}/Type1/Fontmap \
ce2f27e7 137 --with-gsfontdir=%{_fontsdir}/Type1
41fa5092 138
c59653f2 139%{__make}
85ffcc3a 140
141%install
afa7958e 142rm -rf $RPM_BUILD_ROOT
89af0de0 143
af419d74 144%{__make} -j1 install \
8603d009 145 DESTDIR=$RPM_BUILD_ROOT
85ffcc3a 146
ce43a3a7 147%{__rm} -rf html-doc
8e6ccf36 148mv -f $RPM_BUILD_ROOT%{_datadir}/doc ./html-doc
85ffcc3a 149
baf033a2 150# no static modules and *.la for GTK+ loaders - shut up check-files
ce43a3a7 151%{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.{a,la}
7cbac751 152
85ffcc3a 153%clean
afa7958e 154rm -rf $RPM_BUILD_ROOT
85ffcc3a 155
c27bd194 156%post
d5a54140 157%{_bindir}/libwmf-fontmap > /dev/null
c27bd194 158
d5a54140
ER
159%post libs -p /sbin/ldconfig
160%postun libs -p /sbin/ldconfig
985cf28f 161
85ffcc3a 162%files
afa7958e 163%defattr(644,root,root,755)
41fa5092 164%doc CREDITS ChangeLog README TODO
c27bd194
JB
165%attr(755,root,root) %{_bindir}/libwmf-fontmap
166%attr(755,root,root) %{_bindir}/wmf2eps
167%attr(755,root,root) %{_bindir}/wmf2fig
168%attr(755,root,root) %{_bindir}/wmf2gd
c27bd194
JB
169%attr(755,root,root) %{_bindir}/wmf2svg
170%attr(755,root,root) %{_bindir}/wmf2x
c27bd194
JB
171%dir %{_datadir}/libwmf
172%dir %{_datadir}/libwmf/fonts
173%ghost %{_datadir}/libwmf/fonts/fontmap
985cf28f 174
7e6ce155
JB
175%files libs
176%defattr(644,root,root,755)
354591b1
JB
177%attr(755,root,root) %{_libdir}/libwmf-0.2.so.*.*.*
178%attr(755,root,root) %ghost %{_libdir}/libwmf-0.2.so.7
179%attr(755,root,root) %{_libdir}/libwmflite-0.2.so.*.*.*
180%attr(755,root,root) %ghost %{_libdir}/libwmflite-0.2.so.7
7e6ce155 181
985cf28f
JB
182%files devel
183%defattr(644,root,root,755)
c27bd194
JB
184%doc html-doc examples
185%attr(755,root,root) %{_bindir}/libwmf-config
354591b1
JB
186%attr(755,root,root) %{_libdir}/libwmf.so
187%attr(755,root,root) %{_libdir}/libwmflite.so
188%{_libdir}/libwmf.la
189%{_libdir}/libwmflite.la
190%{_includedir}/libwmf
985cf28f 191
8603d009 192%if %{with static_libs}
985cf28f
JB
193%files static
194%defattr(644,root,root,755)
354591b1
JB
195%{_libdir}/libwmf.a
196%{_libdir}/libwmflite.a
681a4a3f 197%endif
1df5f0ec 198
8603d009 199%if %{with gtk}
1df5f0ec
JB
200%files gtk-loader
201%defattr(644,root,root,755)
ce43a3a7 202%{_libdir}/gdk-pixbuf-2.0/*/loaders/io-wmf.so
1df5f0ec 203%endif
This page took 0.055433 seconds and 4 git commands to generate.