- Split libwmflite (WMF parser) into -lite subpackage.
- Build with dependency tracking disabled. - Convert docs to UTF-8.
This commit is contained in:
parent
de166c3fc5
commit
aef561691d
32
libwmf.spec
32
libwmf.spec
@ -1,7 +1,7 @@
|
||||
Summary: Windows Metafile Library
|
||||
Summary: Windows MetaFile Library
|
||||
Name: libwmf
|
||||
Version: 0.2.8.4
|
||||
Release: 17%{?dist}
|
||||
Release: 18%{?dist}
|
||||
Group: System Environment/Libraries
|
||||
License: LGPLv2+
|
||||
Source: http://downloads.sourceforge.net/wvware/%{name}-%{version}.tar.gz
|
||||
@ -15,13 +15,21 @@ Patch4: libwmf-0.2.8.4-multiarchdevel.patch
|
||||
Patch5: libwmf-0.2.8.4-intoverflow.patch
|
||||
Patch6: libwmf-0.2.8.4-reducesymbols.patch
|
||||
Requires: urw-fonts
|
||||
Requires: %{name}-lite = %{version}-%{release}
|
||||
Requires(post): %{_bindir}/update-gdk-pixbuf-loaders
|
||||
Requires(postun): %{_bindir}/update-gdk-pixbuf-loaders
|
||||
BuildRequires: gtk2-devel, libtool, libxml2-devel, gd-devel, libpng-devel
|
||||
BuildRequires: libjpeg-devel, libXt-devel, libX11-devel, dos2unix, libtool
|
||||
|
||||
%description
|
||||
A library for reading and converting Windows MetaFile vector graphics (WMF)
|
||||
A library for reading and converting Windows MetaFile vector graphics (WMF).
|
||||
|
||||
%package lite
|
||||
Summary: Windows Metafile parser library
|
||||
Group: System Environment/Libraries
|
||||
|
||||
%description lite
|
||||
A library for parsing Windows MetaFile vector graphics (WMF).
|
||||
|
||||
%package devel
|
||||
Summary: Support files necessary to compile applications with libwmf
|
||||
@ -42,12 +50,13 @@ using libwmf.
|
||||
%patch4 -p1 -b .multiarchdevel
|
||||
%patch5 -p1 -b .intoverflow
|
||||
%patch6 -p1 -b .reducesymbols.patch
|
||||
f=README ; iconv -f iso-8859-2 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
|
||||
|
||||
%build
|
||||
rm configure.ac
|
||||
ln -s patches/acconfig.h acconfig.h
|
||||
autoreconf -i -f
|
||||
%configure --with-libxml2 --disable-static
|
||||
%configure --with-libxml2 --disable-static --disable-dependency-tracking
|
||||
export tagname=CC
|
||||
make LIBTOOL=/usr/bin/libtool %{?_smp_mflags}
|
||||
dos2unix doc/caolan/*.html
|
||||
@ -71,14 +80,18 @@ sed -i $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/fontmap -e 's#libwmf/fonts#fonts/
|
||||
/sbin/ldconfig
|
||||
%{_bindir}/update-gdk-pixbuf-loaders %{_host} &>/dev/null || :
|
||||
|
||||
%post lite -p /sbin/ldconfig
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
%{_bindir}/update-gdk-pixbuf-loaders %{_host} &>/dev/null || :
|
||||
|
||||
%postun lite -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING README
|
||||
%{_libdir}/lib*.so.*
|
||||
%{_libdir}/libwmf-*.so.*
|
||||
%{_libdir}/gtk-2.0/*/loaders/*.so
|
||||
%{_bindir}/wmf2svg
|
||||
%{_bindir}/wmf2gd
|
||||
@ -88,6 +101,10 @@ sed -i $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/fontmap -e 's#libwmf/fonts#fonts/
|
||||
%{_bindir}/libwmf-fontmap
|
||||
%{_datadir}/libwmf/
|
||||
|
||||
%files lite
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libwmflite-*.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc doc/*.html
|
||||
@ -104,6 +121,11 @@ sed -i $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/fontmap -e 's#libwmf/fonts#fonts/
|
||||
rm -r $RPM_BUILD_ROOT
|
||||
|
||||
%changelog
|
||||
* Wed Feb 13 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.2.8.4-18
|
||||
- Split libwmflite (WMF parser) into -lite subpackage.
|
||||
- Build with dependency tracking disabled.
|
||||
- Convert docs to UTF-8.
|
||||
|
||||
* Wed Aug 29 2007 Caolan McNamara <caolanm@redhat.com> 0.2.8.4-17
|
||||
- rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user