]>
Commit | Line | Data |
---|---|---|
3f65fa11 | 1 | Summary: System for layout and rendering of internationalized text - cross Mingw32 version |
7f666847 | 2 | Summary(pl.UTF-8): System renderowania międzynarodowego tekstu - wersja skrośna dla Mingw32 |
d58b03b4 | 3 | %define _realname pango |
3f65fa11 | 4 | Name: crossmingw32-%{_realname} |
7f666847 | 5 | Version: 1.16.0 |
3f65fa11 | 6 | Release: 1 |
7 | License: LGPL | |
7f666847 JB |
8 | Group: Development/Libraries |
9 | Source0: http://ftp.gnome.org/pub/gnome/sources/pango/1.16/%{_realname}-%{version}.tar.bz2 | |
10 | # Source0-md5: 3ff23998479e98c5dd9a7eaf08f6249d | |
11 | Patch0: %{_realname}-xfonts.patch | |
3f65fa11 | 12 | URL: http://www.pango.org/ |
13 | BuildRequires: autoconf >= 2.59-9 | |
14 | BuildRequires: automake >= 1:1.7 | |
15 | BuildRequires: crossmingw32-cairo >= 1.2.4 | |
16 | BuildRequires: crossmingw32-fontconfig >= 2.4.0 | |
17 | BuildRequires: crossmingw32-freetype >= 2.1.7 | |
18 | BuildRequires: crossmingw32-glib2 >= 2.12.9 | |
3f65fa11 | 19 | BuildRequires: libtool >= 1:1.4.2-9 |
20 | BuildRequires: perl-base | |
7f666847 | 21 | BuildRequires: pkgconfig |
3f65fa11 | 22 | BuildRequires: rpmbuild(macros) >= 1.197 |
23 | Requires: crossmingw32-cairo >= 1.2.4 | |
7f666847 | 24 | Requires: crossmingw32-fontconfig >= 2.4.0 |
3f65fa11 | 25 | Requires: crossmingw32-freetype >= 2.1.7 |
26 | Requires: crossmingw32-glib2 >= 2.12.9 | |
3f65fa11 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %define no_install_post_strip 1 | |
30 | ||
31 | %define target i386-mingw32 | |
32 | %define target_platform i386-pc-mingw32 | |
33 | %define arch %{_prefix}/%{target} | |
3f65fa11 | 34 | |
35 | %define _sysprefix /usr | |
36 | %define _prefix %{_sysprefix}/%{target} | |
37 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
7f666847 | 38 | %define _dlldir /usr/share/wine/windows/system |
3f65fa11 | 39 | %define __cc %{target}-gcc |
40 | %define __cxx %{target}-g++ | |
41 | ||
42 | %description | |
7f666847 JB |
43 | System for layout and rendering of internationalized text (cross |
44 | mingw32 version). | |
3f65fa11 | 45 | |
46 | %description -l pl.UTF-8 | |
7f666847 JB |
47 | System obsługi i renderowania międzynarodowego tekstu (wersja skrośna |
48 | mingw32). | |
3f65fa11 | 49 | |
7f666847 JB |
50 | %package dll |
51 | Summary: DLL pango libraries for Windows | |
52 | Summary(pl.UTF-8): Biblioteki DLL pango dla Windows | |
53 | Group: Applications/Emulators | |
54 | Requires: crossmingw32-cairo-dll >= 1.2.4 | |
55 | Requires: crossmingw32-fontconfig-dll >= 2.4.0 | |
56 | Requires: crossmingw32-freetype-dll >= 2.1.7 | |
57 | Requires: crossmingw32-glib2-dll >= 2.12.9 | |
58 | Requires: wine | |
59 | ||
60 | %description dll | |
61 | DLL pango libraries for Windows. | |
62 | ||
63 | %description dll -l pl.UTF-8 | |
64 | Biblioteki DLL pango dla Windows. | |
3f65fa11 | 65 | |
66 | %prep | |
67 | %setup -q -n %{_realname}-%{version} | |
7f666847 | 68 | %patch0 -p1 |
3f65fa11 | 69 | |
70 | %build | |
d58b03b4 | 71 | export PKG_CONFIG_PATH=%{_pkgconfigdir} |
3f65fa11 | 72 | %{__libtoolize} |
73 | %{__aclocal} | |
74 | %{__autoheader} | |
75 | %{__autoconf} | |
76 | %{__automake} | |
77 | %configure \ | |
3f65fa11 | 78 | --target=%{target} \ |
d58b03b4 | 79 | --host=%{target} \ |
80 | --with-fribidi \ | |
81 | --enable-static | |
82 | ||
3f65fa11 | 83 | %{__make} |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
7f666847 | 89 | DESTDIR=$RPM_BUILD_ROOT |
3f65fa11 | 90 | |
7f666847 JB |
91 | install -d $RPM_BUILD_ROOT%{_dlldir} |
92 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
3f65fa11 | 93 | |
7f666847 JB |
94 | %if 0%{!?debug:1} |
95 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
96 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
97 | %endif | |
98 | ||
99 | rm -rf $RPM_BUILD_ROOT%{_datadir}/{gtk-doc,man} | |
3f65fa11 | 100 | # useless (modules loaded through libgmodule) |
d58b03b4 | 101 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/1.6.0/modules/*.{la,a} |
3f65fa11 | 102 | |
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %files | |
107 | %defattr(644,root,root,755) | |
d58b03b4 | 108 | %doc AUTHORS NEWS README |
7f666847 JB |
109 | %{_libdir}/libpango*-1.0.dll.a |
110 | %{_libdir}/libpango*-1.0.la | |
111 | %{_libdir}/pango*-1.0.def | |
112 | %{_includedir}/pango-1.0 | |
113 | %{_pkgconfigdir}/pango*.pc | |
114 | ||
115 | %files dll | |
116 | %defattr(644,root,root,755) | |
117 | %{_dlldir}/libpango*-1.0-*.dll |