]>
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} | |
e1597bb5 | 5 | Version: 1.48.4 |
a02397c8 | 6 | Release: 1 |
651dec7a | 7 | License: LGPL v2+ |
7f666847 | 8 | Group: Development/Libraries |
7f55e6d0 | 9 | Source0: https://download.gnome.org/sources/pango/1.48/%{realname}-%{version}.tar.xz |
e1597bb5 | 10 | # Source0-md5: 6c3cee28fc36118c1c8733160054c7ed |
0df8b1e0 | 11 | URL: https://pango.gnome.org/ |
ff4fade2 | 12 | # cairo-ft cairo-pdf cairo-png cairo-ps cairo-win32 |
71a8d95e | 13 | BuildRequires: crossmingw32-cairo >= 1.12.10 |
7f55e6d0 | 14 | BuildRequires: crossmingw32-fontconfig >= 2.12.92 |
3f65fa11 | 15 | BuildRequires: crossmingw32-freetype >= 2.1.7 |
55cc36eb | 16 | BuildRequires: crossmingw32-fribidi >= 0.19.7 |
cbb22f57 | 17 | BuildRequires: crossmingw32-gcc |
dfc9c718 | 18 | BuildRequires: crossmingw32-glib2 >= 2.68.0 |
6a054ea2 | 19 | BuildRequires: crossmingw32-harfbuzz >= 2.6.0 |
0fd51910 | 20 | BuildRequires: crossmingw32-w32api >= 5.0.2-6 |
55cc36eb | 21 | # glib-genmarshal, glib-mkenums |
dfc9c718 | 22 | BuildRequires: glib2-devel >= 1:2.68.0 |
8940937b | 23 | BuildRequires: meson >= 0.55.3 |
0fd51910 | 24 | BuildRequires: ninja >= 1.5 |
3f65fa11 | 25 | BuildRequires: perl-base |
d933a474 | 26 | BuildRequires: pkgconfig >= 1:0.15 |
43e93614 | 27 | BuildRequires: rpmbuild(macros) >= 1.736 |
b9a52437 JB |
28 | BuildRequires: tar >= 1:1.22 |
29 | BuildRequires: xz | |
71a8d95e | 30 | Requires: crossmingw32-cairo >= 1.12.10 |
7f55e6d0 | 31 | Requires: crossmingw32-fontconfig >= 2.12.92 |
3f65fa11 | 32 | Requires: crossmingw32-freetype >= 2.1.7 |
55cc36eb | 33 | Requires: crossmingw32-fribidi >= 0.19.7 |
dfc9c718 | 34 | Requires: crossmingw32-glib2 >= 2.68.0 |
6a054ea2 | 35 | Requires: crossmingw32-harfbuzz >= 2.6.0 |
3f65fa11 | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %define no_install_post_strip 1 | |
27aab932 | 39 | %define _enable_debug_packages 0 |
3f65fa11 | 40 | |
41 | %define target i386-mingw32 | |
42 | %define target_platform i386-pc-mingw32 | |
3f65fa11 | 43 | |
44 | %define _sysprefix /usr | |
45 | %define _prefix %{_sysprefix}/%{target} | |
6ae3ec0b | 46 | %define _libdir %{_prefix}/lib |
3f65fa11 | 47 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
7f666847 | 48 | %define _dlldir /usr/share/wine/windows/system |
1456f3e1 | 49 | %define __pkgconfig_provides %{nil} |
f8458738 | 50 | %define __pkgconfig_requires %{nil} |
0fd51910 | 51 | # for meson 0.50+, keep __cc/__cxx as host compiler and pass %{target}-* in meson-cross.txt |
3f65fa11 | 52 | |
20c23c13 | 53 | %define _ssp_cflags %{nil} |
68a79632 JB |
54 | %ifnarch %{ix86} |
55 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
56 | %define optflags -O2 | |
57 | %endif | |
8eca557b | 58 | # -z options are invalid for mingw linker, most of -f options are Linux-specific |
68a79632 | 59 | %define filterout_ld -Wl,-z,.* |
8eca557b | 60 | %define filterout_c -f[-a-z0-9=]* |
68a79632 | 61 | |
3f65fa11 | 62 | %description |
7f666847 | 63 | System for layout and rendering of internationalized text (cross |
660f0804 | 64 | MinGW32 version). |
3f65fa11 | 65 | |
66 | %description -l pl.UTF-8 | |
7f666847 | 67 | System obsługi i renderowania międzynarodowego tekstu (wersja skrośna |
660f0804 | 68 | MinGW32). |
3f65fa11 | 69 | |
0fd51910 JB |
70 | %package static |
71 | Summary: Static Pango libraries (cross MinGW32 version) | |
72 | Summary(pl.UTF-8): Statyczne biblioteki Pango (wersja skrośna MinGW32) | |
73 | Group: Development/Libraries | |
74 | Requires: %{name} = %{version}-%{release} | |
75 | ||
76 | %description static | |
77 | Static Pango libraries (cross MinGW32 version). | |
78 | ||
79 | %description static -l pl.UTF-8 | |
80 | Statyczne biblioteki Pango (wersja skrośna MinGW32). | |
81 | ||
7f666847 JB |
82 | %package dll |
83 | Summary: DLL pango libraries for Windows | |
84 | Summary(pl.UTF-8): Biblioteki DLL pango dla Windows | |
85 | Group: Applications/Emulators | |
71a8d95e | 86 | Requires: crossmingw32-cairo-dll >= 1.12.10 |
7f55e6d0 | 87 | Requires: crossmingw32-fontconfig-dll >= 2.12.92 |
7f666847 | 88 | Requires: crossmingw32-freetype-dll >= 2.1.7 |
55cc36eb | 89 | Requires: crossmingw32-fribidi-dll >= 0.19.7 |
dfc9c718 | 90 | Requires: crossmingw32-glib2-dll >= 2.68.0 |
6a054ea2 | 91 | Requires: crossmingw32-harfbuzz-dll >= 2.6.0 |
7f666847 JB |
92 | Requires: wine |
93 | ||
94 | %description dll | |
95 | DLL pango libraries for Windows. | |
96 | ||
97 | %description dll -l pl.UTF-8 | |
98 | Biblioteki DLL pango dla Windows. | |
3f65fa11 | 99 | |
100 | %prep | |
651dec7a | 101 | %setup -q -n %{realname}-%{version} |
3f65fa11 | 102 | |
e1597bb5 JB |
103 | # disable unused gi-docgen subproject |
104 | %{__sed} -i -e '/fallback:.*gi-docgen/d' meson.build | |
105 | ||
0fd51910 JB |
106 | cat > meson-cross.txt <<'EOF' |
107 | [host_machine] | |
108 | system = 'windows' | |
109 | cpu_family = 'x86' | |
110 | cpu = 'i386' | |
111 | endian='little' | |
112 | [binaries] | |
113 | c = '%{target}-gcc' | |
114 | cpp = '%{target}-g++' | |
115 | ar = '%{target}-ar' | |
116 | windres = '%{target}-windres' | |
117 | pkgconfig = 'pkg-config' | |
118 | [properties] | |
119 | c_args = ['%(echo %{rpmcflags} | sed -e "s/ \+/ /g;s/ /', '/g")', '-DWINVER=0x0600'] | |
120 | EOF | |
121 | ||
3f65fa11 | 122 | %build |
23d68763 | 123 | export PKG_CONFIG_LIBDIR=%{_pkgconfigdir} |
0fd51910 JB |
124 | %meson build \ |
125 | --cross-file meson-cross.txt \ | |
126 | %{?debug:--debug} \ | |
127 | -Dgtk_doc=false \ | |
7f55e6d0 | 128 | -Dintrospection=disabled |
0fd51910 JB |
129 | |
130 | %ninja_build -C build | |
3f65fa11 | 131 | |
132 | %install | |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
0fd51910 | 135 | %ninja_install -C build |
3f65fa11 | 136 | |
7f666847 | 137 | install -d $RPM_BUILD_ROOT%{_dlldir} |
25b2114c | 138 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} |
3f65fa11 | 139 | |
7f666847 JB |
140 | %if 0%{!?debug:1} |
141 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
142 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
143 | %endif | |
144 | ||
55cc36eb | 145 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/pango-{list,view}.exe |
3f65fa11 | 146 | |
147 | %clean | |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
150 | %files | |
151 | %defattr(644,root,root,755) | |
0fd51910 | 152 | %doc NEWS README.md README.win32 THANKS |
6ae3ec0b JB |
153 | %{_libdir}/libpango-1.0.dll.a |
154 | %{_libdir}/libpangocairo-1.0.dll.a | |
155 | %{_libdir}/libpangoft2-1.0.dll.a | |
156 | %{_libdir}/libpangowin32-1.0.dll.a | |
7f666847 | 157 | %{_includedir}/pango-1.0 |
6ae3ec0b JB |
158 | %{_pkgconfigdir}/pango.pc |
159 | %{_pkgconfigdir}/pangocairo.pc | |
a02397c8 | 160 | %{_pkgconfigdir}/pangofc.pc |
6ae3ec0b | 161 | %{_pkgconfigdir}/pangoft2.pc |
a02397c8 | 162 | %{_pkgconfigdir}/pangoot.pc |
6ae3ec0b | 163 | %{_pkgconfigdir}/pangowin32.pc |
7f666847 | 164 | |
0fd51910 JB |
165 | %files static |
166 | %defattr(644,root,root,755) | |
167 | %{_libdir}/libpango-1.0.a | |
168 | %{_libdir}/libpangocairo-1.0.a | |
169 | %{_libdir}/libpangoft2-1.0.a | |
170 | %{_libdir}/libpangowin32-1.0.a | |
171 | ||
7f666847 JB |
172 | %files dll |
173 | %defattr(644,root,root,755) | |
0fd51910 JB |
174 | %{_dlldir}/libpango-1.0-0.dll |
175 | %{_dlldir}/libpangocairo-1.0-0.dll | |
176 | %{_dlldir}/libpangoft2-1.0-0.dll | |
177 | %{_dlldir}/libpangowin32-1.0-0.dll |