]>
Commit | Line | Data |
---|---|---|
3f65fa11 | 1 | # |
2 | # TODO: | |
3 | # - update arch_confdir patch | |
4 | # | |
5 | # Conditional build: | |
6 | %bcond_with arch_confdir # build with arch-dependant config dir | |
7 | # | |
3f65fa11 | 8 | Summary: System for layout and rendering of internationalized text - cross Mingw32 version |
9 | Summary(pl.UTF-8):System renderowania międzynarodowego tekstu - wersja skrośna dla Mingw32 | |
10 | Summary(pt_BR.UTF-8):Sistema para layout e renderização de texto internacionalizado | |
d58b03b4 | 11 | %define _realname pango |
3f65fa11 | 12 | Name: crossmingw32-%{_realname} |
d58b03b4 | 13 | %define _mainver 1.15 |
14 | Version: %{_mainver}.6 | |
3f65fa11 | 15 | Release: 1 |
16 | License: LGPL | |
17 | Group: X11/Libraries | |
d58b03b4 | 18 | Source0: http://ftp.gnome.org/pub/gnome/sources/pango/%{_mainver}/%{_realname}-%{version}.tar.bz2 |
19 | # Source0-md5: b122a41e2ba832a24013c153dd52c982 | |
3f65fa11 | 20 | Patch0: %{name}-noexamples.patch |
21 | Patch1: %{name}-static.patch | |
22 | Patch2: %{_realname}-xfonts.patch | |
23 | Patch3: %{_realname}-arch_confdir.patch | |
d58b03b4 | 24 | Patch4: %{name}-cairo.patch |
25 | Patch5: %{name}-static_and_dll.patch | |
3f65fa11 | 26 | URL: http://www.pango.org/ |
27 | BuildRequires: autoconf >= 2.59-9 | |
28 | BuildRequires: automake >= 1:1.7 | |
29 | BuildRequires: crossmingw32-cairo >= 1.2.4 | |
30 | BuildRequires: crossmingw32-fontconfig >= 2.4.0 | |
31 | BuildRequires: crossmingw32-freetype >= 2.1.7 | |
32 | BuildRequires: crossmingw32-glib2 >= 2.12.9 | |
33 | BuildRequires: crossmingw32-pkgconfig | |
34 | BuildRequires: libtool >= 1:1.4.2-9 | |
35 | BuildRequires: perl-base | |
36 | BuildRequires: rpmbuild(macros) >= 1.197 | |
37 | Requires: crossmingw32-cairo >= 1.2.4 | |
38 | Requires: crossmingw32-freetype >= 2.1.7 | |
39 | Requires: crossmingw32-glib2 >= 2.12.9 | |
3f65fa11 | 40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %define no_install_post_strip 1 | |
43 | ||
44 | %define target i386-mingw32 | |
45 | %define target_platform i386-pc-mingw32 | |
46 | %define arch %{_prefix}/%{target} | |
47 | %define gccarch %{_prefix}/lib/gcc-lib/%{target} | |
48 | %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version} | |
49 | ||
50 | %define _sysprefix /usr | |
51 | %define _prefix %{_sysprefix}/%{target} | |
52 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
53 | %define __cc %{target}-gcc | |
54 | %define __cxx %{target}-g++ | |
55 | ||
56 | %description | |
57 | System for layout and rendering of internationalized text. | |
58 | ||
59 | %description -l pl.UTF-8 | |
60 | System obsługi i renderowania międzynarodowego tekstu. | |
61 | ||
62 | %description -l pt_BR.UTF-8 | |
63 | Pango é um sistema para layout e renderização de texto | |
64 | internacionalizado. | |
65 | ||
66 | %prep | |
67 | %setup -q -n %{_realname}-%{version} | |
d58b03b4 | 68 | #%patch0 -p1 |
69 | #%patch1 -p1 | |
3f65fa11 | 70 | %patch2 -p1 |
71 | %{?with_arch_confdir:%patch3 -p1} | |
d58b03b4 | 72 | %patch4 -p1 |
73 | #%patch5 -p1 | |
3f65fa11 | 74 | |
75 | %build | |
d58b03b4 | 76 | export PKG_CONFIG_PATH=%{_pkgconfigdir} |
3f65fa11 | 77 | %{__libtoolize} |
78 | %{__aclocal} | |
79 | %{__autoheader} | |
80 | %{__autoconf} | |
81 | %{__automake} | |
82 | %configure \ | |
3f65fa11 | 83 | --target=%{target} \ |
d58b03b4 | 84 | --host=%{target} \ |
85 | --with-fribidi \ | |
86 | --enable-static | |
87 | ||
88 | #%{__sed} -i -e 's/^deplibs_check_method=.*/deplibs_check_method="pass_all"/' libtool | |
3f65fa11 | 89 | |
90 | %{__make} | |
91 | ||
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %{__make} install \ | |
96 | DESTDIR=$RPM_BUILD_ROOT \ | |
97 | pkgconfigdir=%{_pkgconfigdir} | |
98 | ||
99 | #> $RPM_BUILD_ROOT%{_sysconfdir}/pango%{?with_arch_confdir:-%{_host_cpu}}/pango.modules | |
100 | ||
101 | # useless (modules loaded through libgmodule) | |
d58b03b4 | 102 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/1.6.0/modules/*.{la,a} |
3f65fa11 | 103 | |
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %files | |
108 | %defattr(644,root,root,755) | |
d58b03b4 | 109 | %doc AUTHORS NEWS README |
110 | %{_libdir}/lib*.la | |
111 | %{_libdir}/libpango*.a | |
112 | %{_bindir}/*.dll | |
3f65fa11 | 113 | %{_pkgconfigdir}/* |
114 | %{_includedir}/* |