]> git.pld-linux.org Git - packages/crossmingw32-pango.git/blame - crossmingw32-pango.spec
- finally not used
[packages/crossmingw32-pango.git] / crossmingw32-pango.spec
CommitLineData
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 8Summary: System for layout and rendering of internationalized text - cross Mingw32 version
9Summary(pl.UTF-8):System renderowania międzynarodowego tekstu - wersja skrośna dla Mingw32
10Summary(pt_BR.UTF-8):Sistema para layout e renderização de texto internacionalizado
d58b03b4 11%define _realname pango
3f65fa11 12Name: crossmingw32-%{_realname}
d58b03b4 13%define _mainver 1.15
14Version: %{_mainver}.6
3f65fa11 15Release: 1
16License: LGPL
17Group: X11/Libraries
d58b03b4 18Source0: http://ftp.gnome.org/pub/gnome/sources/pango/%{_mainver}/%{_realname}-%{version}.tar.bz2
19# Source0-md5: b122a41e2ba832a24013c153dd52c982
3f65fa11 20Patch0: %{name}-noexamples.patch
21Patch1: %{name}-static.patch
22Patch2: %{_realname}-xfonts.patch
23Patch3: %{_realname}-arch_confdir.patch
d58b03b4 24Patch4: %{name}-cairo.patch
25Patch5: %{name}-static_and_dll.patch
3f65fa11 26URL: http://www.pango.org/
27BuildRequires: autoconf >= 2.59-9
28BuildRequires: automake >= 1:1.7
29BuildRequires: crossmingw32-cairo >= 1.2.4
30BuildRequires: crossmingw32-fontconfig >= 2.4.0
31BuildRequires: crossmingw32-freetype >= 2.1.7
32BuildRequires: crossmingw32-glib2 >= 2.12.9
33BuildRequires: crossmingw32-pkgconfig
34BuildRequires: libtool >= 1:1.4.2-9
35BuildRequires: perl-base
36BuildRequires: rpmbuild(macros) >= 1.197
37Requires: crossmingw32-cairo >= 1.2.4
38Requires: crossmingw32-freetype >= 2.1.7
39Requires: crossmingw32-glib2 >= 2.12.9
3f65fa11 40BuildRoot: %{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
57System for layout and rendering of internationalized text.
58
59%description -l pl.UTF-8
60System obsługi i renderowania międzynarodowego tekstu.
61
62%description -l pt_BR.UTF-8
63Pango é um sistema para layout e renderização de texto
64internacionalizado.
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 76export 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
93rm -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 102rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/1.6.0/modules/*.{la,a}
3f65fa11 103
104%clean
105rm -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}/*
This page took 0.041544 seconds and 4 git commands to generate.