X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=pango%2Fmingw-pango.spec;h=8e185a373843622eb673f5426d26a0a38fdb3cdf;hb=8e6f1295d0f6b1fc41367e700811dd05f638ab83;hp=d761ed63d34259b9ca96f5a7b1e299b58669f0f3;hpb=ae8f34545f03a94f98b08586b8c3bc4d24d13819;p=fedora-mingw.git diff --git a/pango/mingw-pango.spec b/pango/mingw-pango.spec index d761ed6..8e185a3 100644 --- a/pango/mingw-pango.spec +++ b/pango/mingw-pango.spec @@ -6,7 +6,7 @@ Name: mingw-pango Version: 1.21.6 -Release: 2%{?dist} +Release: 4%{?dist} Summary: MinGW Windows Pango library License: LGPLv2+ @@ -25,6 +25,11 @@ BuildRequires: mingw-gettext BuildRequires: mingw-cairo BuildRequires: mingw-freetype BuildRequires: mingw-fontconfig +BuildRequires: mingw-glib2 +BuildRequires: pkgconfig + +Requires(post): wine + %description MinGW Windows Pango library. @@ -35,8 +40,7 @@ MinGW Windows Pango library. %build # Need to run the correct version of glib-mkenums. -PATH=%{_mingw_bindir}:$PATH - +PATH=%{_mingw_bindir}:$PATH \ %{_mingw_configure} make @@ -46,12 +50,23 @@ rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install +mkdir -p $RPM_BUILD_ROOT%{_mingw_sysconfdir}/pango/ + rm -f $RPM_BUILD_ROOT/%{_mingw_libdir}/charset.alias + %clean rm -rf $RPM_BUILD_ROOT +%post +wine %{_mingw_bindir}/pango-querymodules.exe \ + > %{_mingw_sysconfdir}/pango/pango.modules + +%preun +rm -f %{_mingw_sysconfdir}/pango/pango.modules + + %files %defattr(-,root,root) %{_mingw_bindir}/libpango-1.0-0.dll @@ -79,8 +94,16 @@ rm -rf $RPM_BUILD_ROOT %{_mingw_libdir}/pkgconfig/pangowin32.pc %{_mingw_datadir}/gtk-doc/html/pango/ %{_mingw_mandir}/man1/pango-querymodules.1* +%{_mingw_sysconfdir}/pango/ + %changelog +* Thu Sep 11 2008 Daniel P. Berrange - 1.21.6-4 +- Add dep on pkgconfig + +* Thu Sep 11 2008 Richard W.M. Jones - 1.21.6-3 +- post/preun scripts to update the pango.modules list. + * Wed Sep 10 2008 Richard W.M. Jones - 1.21.6-2 - Run the correct glib-mkenums.