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