File mingw32-pango.spec of Package mingw32-pango
%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
                          %{_mingw32_install_post}
Name:           mingw32-pango
Version:        1.30.1
Release:        0
Summary:        Pango text layout and rendering library
License:        LGPLv2+
Group:          System/Libraries
Url:            http://www.pango.org
Source:         http://ftp.gnome.org/pub/gnome/sources/pango/1.30/pango-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
#!BuildIgnore: post-build-checks
BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-win_iconv-devel
BuildRequires:  mingw32-libintl-devel
BuildRequires:  mingw32-cairo-devel >= 1.8.0
BuildRequires:  mingw32-freetype-devel
BuildRequires:  mingw32-fontconfig-devel
BuildRequires:  mingw32-glib2-devel
BuildRequires:  glib2-devel
BuildRequires:  xz
%description
Pango is a library for laying out and rendering of text, with an emphasis on internationalization. It can be used
anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+
widget toolkit.  The integration of Pango with Cairo provides a complete solution with high quality text handling and
graphics rendering.
%package tools
Summary:        Pango text layout and rendering library (tools)
Group:          System/Libraries
%description tools
Pango is a library for laying out and rendering of text, with an emphasis on internationalization. It can be used
anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+
widget toolkit.  The integration of Pango with Cairo provides a complete solution with high quality text handling and
graphics rendering.
%package devel
Summary:        Pango text layout and rendering library (development files)
Group:          Development/Libraries
%description devel
Pango is a library for laying out and rendering of text, with an emphasis on internationalization. It can be used
anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+
widget toolkit.  The integration of Pango with Cairo provides a complete solution with high quality text handling and
graphics rendering.
%{_mingw32_debug_package}
%prep
%setup -q -n pango-%{version}
%build
# Need to run the correct version of glib-mkenums.
export PATH="%{_mingw32_bindir}:$PATH"
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
	--with-included-modules=yes \
	--enable-shared --disable-static
make %{?_smp_mflags} || make
%install
make DESTDIR=$RPM_BUILD_ROOT install
chmod -x $RPM_BUILD_ROOT%{_mingw32_libdir}/*.def
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_mingw32_bindir}/libpango-1.0-0.dll
%{_mingw32_bindir}/libpangocairo-1.0-0.dll
%{_mingw32_bindir}/libpangoft2-1.0-0.dll
%{_mingw32_bindir}/libpangowin32-1.0-0.dll
%files tools
%defattr(-,root,root)
%{_mingw32_bindir}/pango-querymodules.exe
%{_mingw32_bindir}/pango-view.exe
%{_mingw32_mandir}/man1/pango-querymodules.1*
%{_mingw32_mandir}/man1/pango-view.1*
%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/pango-1.0/
%{_mingw32_libdir}/libpango-1.0.dll.a
%{_mingw32_libdir}/libpangocairo-1.0.dll.a
%{_mingw32_libdir}/libpangoft2-1.0.dll.a
%{_mingw32_libdir}/libpangowin32-1.0.dll.a
%{_mingw32_libdir}/pango-1.0.def
%{_mingw32_libdir}/pangocairo-1.0.def
%{_mingw32_libdir}/pangoft2-1.0.def
%{_mingw32_libdir}/pangowin32-1.0.def
%{_mingw32_libdir}/pkgconfig/pango.pc
%{_mingw32_libdir}/pkgconfig/pangocairo.pc
%{_mingw32_libdir}/pkgconfig/pangoft2.pc
%{_mingw32_libdir}/pkgconfig/pangowin32.pc
%{_mingw32_datadir}/gtk-doc/html/pango/
%changelog