X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=pango%2Fmingw-pango.spec;h=8e185a373843622eb673f5426d26a0a38fdb3cdf;hb=16ffcf3cdb53ca9c405ab173577a545ee74486d4;hp=8aeab6adc651426af49ccbb5e9e2b9a1e02594c2;hpb=e2bd35599fbe3ef27ded17e1366866e1ac61ce9f;p=fedora-mingw.git diff --git a/pango/mingw-pango.spec b/pango/mingw-pango.spec index 8aeab6a..8e185a3 100644 --- a/pango/mingw-pango.spec +++ b/pango/mingw-pango.spec @@ -1,8 +1,12 @@ -%include /usr/lib/rpm/mingw-defs +%define __strip %{_mingw_strip} +%define __objdump %{_mingw_objdump} +%define _use_internal_dependency_generator 0 +%define __find_requires %{_mingw_findrequires} +%define __find_provides %{_mingw_findprovides} Name: mingw-pango Version: 1.21.6 -Release: 2%{?dist} +Release: 4%{?dist} Summary: MinGW Windows Pango library License: LGPLv2+ @@ -13,7 +17,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: mingw-filesystem >= 19 +BuildRequires: mingw-filesystem >= 23 BuildRequires: mingw-gcc BuildRequires: mingw-binutils BuildRequires: mingw-iconv @@ -21,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. @@ -31,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 @@ -42,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 @@ -75,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.