3 # - update arch_confdir patch
6 %bcond_with arch_confdir # build with arch-dependant config dir
8 %define _realname pango
9 Summary: System for layout and rendering of internationalized text - cross Mingw32 version
10 Summary(pl.UTF-8):System renderowania międzynarodowego tekstu - wersja skrośna dla Mingw32
11 Summary(pt_BR.UTF-8):Sistema para layout e renderização de texto internacionalizado
12 Name: crossmingw32-%{_realname}
17 Source0: http://ftp.gnome.org/pub/gnome/sources/pango/1.14/%{_realname}-%{version}.tar.bz2
18 # Source0-md5: e9fc2f8168e74e2fa0aa8238ee0e9c06
19 Patch0: %{name}-noexamples.patch
20 Patch1: %{name}-static.patch
21 Patch2: %{_realname}-xfonts.patch
22 Patch3: %{_realname}-arch_confdir.patch
23 URL: http://www.pango.org/
24 BuildRequires: autoconf >= 2.59-9
25 BuildRequires: automake >= 1:1.7
26 BuildRequires: crossmingw32-cairo >= 1.2.4
27 BuildRequires: crossmingw32-fontconfig >= 2.4.0
28 BuildRequires: crossmingw32-freetype >= 2.1.7
29 BuildRequires: crossmingw32-glib2 >= 2.12.9
30 BuildRequires: crossmingw32-pkgconfig
31 BuildRequires: libtool >= 1:1.4.2-9
32 BuildRequires: perl-base
33 BuildRequires: rpmbuild(macros) >= 1.197
34 Requires: crossmingw32-cairo >= 1.2.4
35 Requires: crossmingw32-freetype >= 2.1.7
36 Requires: crossmingw32-glib2 >= 2.12.9
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define no_install_post_strip 1
42 %define target i386-mingw32
43 %define target_platform i386-pc-mingw32
44 %define arch %{_prefix}/%{target}
45 %define gccarch %{_prefix}/lib/gcc-lib/%{target}
46 %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version}
48 %define _sysprefix /usr
49 %define _prefix %{_sysprefix}/%{target}
50 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
51 %define __cc %{target}-gcc
52 %define __cxx %{target}-g++
55 System for layout and rendering of internationalized text.
57 %description -l pl.UTF-8
58 System obsługi i renderowania międzynarodowego tekstu.
60 %description -l pt_BR.UTF-8
61 Pango é um sistema para layout e renderização de texto
65 %setup -q -n %{_realname}-%{version}
69 %{?with_arch_confdir:%patch3 -p1}
72 export PKG_CONFIG_PATH=%{_prefix}/lib/pkgconfig
80 RANLIB="%{target}-ranlib" \
87 rm -rf $RPM_BUILD_ROOT
90 DESTDIR=$RPM_BUILD_ROOT \
91 pkgconfigdir=%{_pkgconfigdir}
93 #> $RPM_BUILD_ROOT%{_sysconfdir}/pango%{?with_arch_confdir:-%{_host_cpu}}/pango.modules
95 # useless (modules loaded through libgmodule)
96 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/1.5.0/modules/*.{la,a}
99 rm -rf $RPM_BUILD_ROOT
102 %defattr(644,root,root,755)
103 %doc AUTHORS NEWS README examples/HELLO.utf8
104 %attr(755,root,root) %{_libdir}/lib*.la
105 %attr(755,root,root) %{_libdir}/libpango*.a