]> git.pld-linux.org Git - packages/crossmingw32-pango.git/blob - crossmingw32-pango.spec
- new based on pango.spec
[packages/crossmingw32-pango.git] / crossmingw32-pango.spec
1 #
2 # TODO:
3 # - update arch_confdir patch
4 #
5 # Conditional build:
6 %bcond_with     arch_confdir    # build with arch-dependant config dir
7 #
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}
13 Version:        1.14.10
14 Release:        1
15 License:        LGPL
16 Group:          X11/Libraries
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
37 Obsoletes:      libpango24
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %define         no_install_post_strip   1
41
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}
47
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++
53
54 %description
55 System for layout and rendering of internationalized text.
56
57 %description -l pl.UTF-8
58 System obsługi i renderowania międzynarodowego tekstu.
59
60 %description -l pt_BR.UTF-8
61 Pango é um sistema para layout e renderização de texto
62 internacionalizado.
63
64 %prep
65 %setup -q -n %{_realname}-%{version}
66 %patch0 -p1
67 %patch1 -p1
68 %patch2 -p1
69 %{?with_arch_confdir:%patch3 -p1}
70
71 %build
72 export PKG_CONFIG_PATH=%{_prefix}/lib/pkgconfig
73 %{__libtoolize}
74 %{__aclocal}
75 %{__autoheader}
76 %{__autoconf}
77 %{__automake}
78 %configure \
79         AR="%{target}-ar" \
80         RANLIB="%{target}-ranlib" \
81         --target=%{target} \
82         --host=%{target}
83
84 %{__make}
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT \
91         pkgconfigdir=%{_pkgconfigdir}
92
93 #> $RPM_BUILD_ROOT%{_sysconfdir}/pango%{?with_arch_confdir:-%{_host_cpu}}/pango.modules
94
95 # useless (modules loaded through libgmodule)
96 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/1.5.0/modules/*.{la,a}
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %files
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
106 %{_pkgconfigdir}/*
107 %{_includedir}/*
This page took 0.075391 seconds and 4 git commands to generate.