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