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