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