]>
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 |
651dec7a JB |
3 | %define realname pango |
4 | Name: crossmingw32-%{realname} | |
34b88ab7 | 5 | Version: 1.22.3 |
3f65fa11 | 6 | Release: 1 |
651dec7a | 7 | License: LGPL v2+ |
7f666847 | 8 | Group: Development/Libraries |
68a79632 | 9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/pango/1.22/%{realname}-%{version}.tar.bz2 |
34b88ab7 | 10 | # Source0-md5: 8909ddbde2f2e91eb0c79202e1051a84 |
651dec7a | 11 | Patch0: %{realname}-xfonts.patch |
3f65fa11 | 12 | URL: http://www.pango.org/ |
13 | BuildRequires: autoconf >= 2.59-9 | |
e95b5099 | 14 | BuildRequires: automake >= 1:1.9 |
68a79632 | 15 | BuildRequires: crossmingw32-cairo >= 1.8.0 |
3f65fa11 | 16 | BuildRequires: crossmingw32-fontconfig >= 2.4.0 |
17 | BuildRequires: crossmingw32-freetype >= 2.1.7 | |
cbb22f57 | 18 | BuildRequires: crossmingw32-gcc |
68a79632 | 19 | BuildRequires: crossmingw32-glib2 >= 2.18.0 |
3f65fa11 | 20 | BuildRequires: libtool >= 1:1.4.2-9 |
21 | BuildRequires: perl-base | |
d933a474 | 22 | BuildRequires: pkgconfig >= 1:0.15 |
3f65fa11 | 23 | BuildRequires: rpmbuild(macros) >= 1.197 |
68a79632 | 24 | Requires: crossmingw32-cairo >= 1.8.0 |
7f666847 | 25 | Requires: crossmingw32-fontconfig >= 2.4.0 |
3f65fa11 | 26 | Requires: crossmingw32-freetype >= 2.1.7 |
68a79632 | 27 | Requires: crossmingw32-glib2 >= 2.18.0 |
3f65fa11 | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %define no_install_post_strip 1 | |
31 | ||
32 | %define target i386-mingw32 | |
33 | %define target_platform i386-pc-mingw32 | |
3f65fa11 | 34 | |
35 | %define _sysprefix /usr | |
36 | %define _prefix %{_sysprefix}/%{target} | |
6ae3ec0b | 37 | %define _libdir %{_prefix}/lib |
3f65fa11 | 38 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
7f666847 | 39 | %define _dlldir /usr/share/wine/windows/system |
3f65fa11 | 40 | %define __cc %{target}-gcc |
41 | %define __cxx %{target}-g++ | |
42 | ||
68a79632 JB |
43 | %ifnarch %{ix86} |
44 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
45 | %define optflags -O2 | |
46 | %endif | |
47 | # -z options are invalid for mingw linker | |
48 | %define filterout_ld -Wl,-z,.* | |
49 | ||
3f65fa11 | 50 | %description |
7f666847 JB |
51 | System for layout and rendering of internationalized text (cross |
52 | mingw32 version). | |
3f65fa11 | 53 | |
54 | %description -l pl.UTF-8 | |
7f666847 JB |
55 | System obsługi i renderowania międzynarodowego tekstu (wersja skrośna |
56 | mingw32). | |
3f65fa11 | 57 | |
7f666847 JB |
58 | %package dll |
59 | Summary: DLL pango libraries for Windows | |
60 | Summary(pl.UTF-8): Biblioteki DLL pango dla Windows | |
61 | Group: Applications/Emulators | |
68a79632 | 62 | Requires: crossmingw32-cairo-dll >= 1.8.0 |
7f666847 JB |
63 | Requires: crossmingw32-fontconfig-dll >= 2.4.0 |
64 | Requires: crossmingw32-freetype-dll >= 2.1.7 | |
68a79632 | 65 | Requires: crossmingw32-glib2-dll >= 2.18.0 |
7f666847 JB |
66 | Requires: wine |
67 | ||
68 | %description dll | |
69 | DLL pango libraries for Windows. | |
70 | ||
71 | %description dll -l pl.UTF-8 | |
72 | Biblioteki DLL pango dla Windows. | |
3f65fa11 | 73 | |
74 | %prep | |
651dec7a | 75 | %setup -q -n %{realname}-%{version} |
7f666847 | 76 | %patch0 -p1 |
3f65fa11 | 77 | |
78 | %build | |
23d68763 | 79 | export PKG_CONFIG_LIBDIR=%{_pkgconfigdir} |
3f65fa11 | 80 | %{__libtoolize} |
81 | %{__aclocal} | |
82 | %{__autoheader} | |
83 | %{__autoconf} | |
84 | %{__automake} | |
85 | %configure \ | |
3f65fa11 | 86 | --target=%{target} \ |
68a79632 | 87 | --host=%{target} |
d58b03b4 | 88 | |
3f65fa11 | 89 | %{__make} |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
6ae3ec0b JB |
94 | # missing from make install but required by it |
95 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/pango | |
96 | ||
bf8c422a | 97 | %{__make} -j1 install \ |
7f666847 | 98 | DESTDIR=$RPM_BUILD_ROOT |
3f65fa11 | 99 | |
7f666847 JB |
100 | install -d $RPM_BUILD_ROOT%{_dlldir} |
101 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
3f65fa11 | 102 | |
7f666847 JB |
103 | %if 0%{!?debug:1} |
104 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
105 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
106 | %endif | |
107 | ||
108 | rm -rf $RPM_BUILD_ROOT%{_datadir}/{gtk-doc,man} | |
3f65fa11 | 109 | # useless (modules loaded through libgmodule) |
6ae3ec0b | 110 | rm -f $RPM_BUILD_ROOT%{_libdir}/pango/1.6.0/modules/*.{la,a} |
3f65fa11 | 111 | |
112 | %clean | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %files | |
116 | %defattr(644,root,root,755) | |
d58b03b4 | 117 | %doc AUTHORS NEWS README |
6ae3ec0b JB |
118 | %{_libdir}/libpango-1.0.dll.a |
119 | %{_libdir}/libpangocairo-1.0.dll.a | |
120 | %{_libdir}/libpangoft2-1.0.dll.a | |
121 | %{_libdir}/libpangowin32-1.0.dll.a | |
122 | %{_libdir}/libpango-1.0.la | |
123 | %{_libdir}/libpangocairo-1.0.la | |
124 | %{_libdir}/libpangoft2-1.0.la | |
125 | %{_libdir}/libpangowin32-1.0.la | |
126 | %{_libdir}/pango-1.0.def | |
127 | %{_libdir}/pangocairo-1.0.def | |
128 | %{_libdir}/pangoft2-1.0.def | |
129 | %{_libdir}/pangowin32-1.0.def | |
7f666847 | 130 | %{_includedir}/pango-1.0 |
6ae3ec0b JB |
131 | %{_pkgconfigdir}/pango.pc |
132 | %{_pkgconfigdir}/pangocairo.pc | |
133 | %{_pkgconfigdir}/pangoft2.pc | |
134 | %{_pkgconfigdir}/pangowin32.pc | |
7f666847 JB |
135 | |
136 | %files dll | |
137 | %defattr(644,root,root,755) | |
6ae3ec0b JB |
138 | %{_dlldir}/libpango-1.0-*.dll |
139 | %{_dlldir}/libpangocairo-1.0-*.dll | |
140 | %{_dlldir}/libpangoft2-1.0-*.dll | |
141 | %{_dlldir}/libpangowin32-1.0-*.dll |