]>
Commit | Line | Data |
---|---|---|
457aa3ee JB |
1 | Summary: HarfBuzz - internationalized text shaping library - MinGW32 cross version |
2 | Summary(pl.UTF-8): Rasteryzer fontów TrueType - wersja skrośna dla MinGW32 | |
3 | Name: crossmingw32-harfbuzz | |
4abc89ca | 4 | Version: 8.3.1 |
04479a18 | 5 | Release: 1 |
457aa3ee JB |
6 | License: MIT |
7 | Group: Development/Libraries | |
987d6046 | 8 | Source0: https://github.com/harfbuzz/harfbuzz/releases/download/%{version}/harfbuzz-%{version}.tar.xz |
4abc89ca | 9 | # Source0-md5: fc4c1c0cb2e8a190db5007936f290047 |
aeeadf5c | 10 | URL: https://harfbuzz.github.io/ |
15a364e6 | 11 | BuildRequires: autoconf >= 2.64 |
628d6da6 | 12 | BuildRequires: automake >= 1:1.13.0 |
25e43991 | 13 | BuildRequires: crossmingw32-w32api >= 5.0.2-8 |
22973638 | 14 | BuildRequires: crossmingw32-cairo >= 1.8.0 |
8d1c99cd | 15 | BuildRequires: crossmingw32-freetype >= 2.11 |
aab13c71 | 16 | BuildRequires: crossmingw32-glib2 >= 2.38 |
16e576c1 | 17 | BuildRequires: crossmingw32-gcc-c++ >= 1:4.7 |
aef0043c | 18 | BuildRequires: crossmingw32-pthreads-w32 |
25e43991 | 19 | BuildRequires: gtk-doc >= 1.15 |
15a364e6 | 20 | BuildRequires: libtool >= 2:2.2 |
a24fe502 | 21 | BuildRequires: pkgconfig >= 1:0.28 |
987d6046 JB |
22 | BuildRequires: tar >= 1:1.22 |
23 | BuildRequires: xz | |
8d1c99cd | 24 | Requires: crossmingw32-freetype >= 2.11 |
aab13c71 | 25 | Requires: crossmingw32-glib2 >= 2.38 |
16e576c1 | 26 | Requires: crossmingw32-gcc-c++ >= 1:4.7 |
aef0043c | 27 | Requires: crossmingw32-pthreads-w32 |
457aa3ee JB |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | # see <harfbuzz/internal/ftserv.h>, the real horror | |
31 | %define specflags -fno-strict-aliasing | |
32 | ||
33 | %define no_install_post_strip 1 | |
37ea45e8 | 34 | %define _enable_debug_packages 0 |
457aa3ee JB |
35 | |
36 | %define target i386-mingw32 | |
37 | %define target_platform i386-pc-mingw32 | |
38 | ||
39 | %define _sysprefix /usr | |
40 | %define _prefix %{_sysprefix}/%{target} | |
41 | %define _libdir %{_prefix}/lib | |
42 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
43 | %define _dlldir /usr/share/wine/windows/system | |
44 | %define __cc %{target}-gcc | |
45 | %define __cxx %{target}-g++ | |
16d7336b | 46 | %define __pkgconfig_provides %{nil} |
94aebac6 | 47 | %define __pkgconfig_requires %{nil} |
457aa3ee JB |
48 | |
49 | %ifnarch %{ix86} | |
50 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
aef0043c | 51 | %define optflags -O2 -march=i486 |
457aa3ee JB |
52 | %endif |
53 | # -z options are invalid for mingw linker, most of -f options are Linux-specific | |
54 | %define filterout_ld -Wl,-z,.* | |
55 | %define filterout_c -f[-a-z0-9=]* | |
56 | %define filterout_cxx -f[-a-z0-9=]* | |
57 | ||
58 | %description | |
59 | Internationalized OpenType text layout and rendering library. | |
60 | ||
61 | This package contains the cross version for Win32. | |
62 | ||
63 | %description -l pl.UTF-8 | |
64 | Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType, | |
65 | obsługująca wiele języków. | |
66 | ||
67 | Ten pakiet zawiera wersję skrośną dla Win32. | |
68 | ||
69 | %package static | |
70 | Summary: Static harfbuzz library (cross MinGW32 version) | |
71 | Summary(pl.UTF-8): Statyczna biblioteka harfbuzz (wersja skrośna MinGW32) | |
72 | Group: Development/Libraries | |
73 | Requires: %{name} = %{version}-%{release} | |
74 | ||
75 | %description static | |
76 | Static harfbuzz library (cross MinGW32 version). | |
77 | ||
78 | %description static -l pl.UTF-8 | |
79 | Statyczna biblioteka harfbuzz (wersja skrośna MinGW32). | |
80 | ||
81 | %package dll | |
82 | Summary: DLL harfbuzz library for Windows | |
83 | Summary(pl.UTF-8): Biblioteka DLL harfbuzz dla Windows | |
84 | Group: Applications/Emulators | |
8d1c99cd | 85 | Requires: crossmingw32-freetype-dll >= 2.11 |
aab13c71 | 86 | Requires: crossmingw32-glib2-dll >= 2.38 |
457aa3ee JB |
87 | Requires: wine |
88 | ||
89 | %description dll | |
90 | DLL harfbuzz library for Windows. | |
91 | ||
92 | %description dll -l pl.UTF-8 | |
93 | Biblioteka DLL harfbuzz dla Windows. | |
94 | ||
22973638 JB |
95 | %package cairo |
96 | Summary: HarfBuzz text shaping library - cairo integration - MinGW32 cross version | |
97 | Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - integracja z cairo - wersja skrośna dla MinGW32 | |
98 | Group: Development/Libraries | |
99 | Requires: %{name} = %{version}-%{release} | |
100 | Requires: crossmingw32-cairo >= 1.8.0 | |
101 | ||
102 | %description cairo | |
103 | HarfBuzz text shaping library - cairo integration. | |
104 | ||
105 | This package contains the cross version for Win32. | |
106 | ||
107 | %description cairo -l pl.UTF-8 | |
108 | Biblioteka HarfBuzz do rysowania tekstu - integracja z cairo. | |
109 | ||
110 | Ten pakiet zawiera wersję skrośną dla Win32. | |
111 | ||
112 | %package cairo-static | |
113 | Summary: Static HarfBuzz cairo library (cross MinGW32 version) | |
114 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz cairo (wersja skrośna MinGW32) | |
115 | Group: Development/Libraries | |
b915dee4 | 116 | Requires: %{name}-cairo = %{version}-%{release} |
22973638 JB |
117 | |
118 | %description cairo-static | |
119 | Static HarfBuzz cairo library (cross MinGW32 version). | |
120 | ||
121 | %description cairo-static -l pl.UTF-8 | |
122 | Biblioteka statyczna HarfBuzz cairo (wersja skrośna MinGW32). | |
123 | ||
124 | %package cairo-dll | |
125 | Summary: DLL harfbuzz cairo library for Windows | |
126 | Summary(pl.UTF-8): Biblioteka DLL harfbuzz cairo dla Windows | |
127 | Group: Applications/Emulators | |
128 | Requires: %{name}-dll = %{version}-%{release} | |
129 | Requires: crossmingw32-cairo-dll >= 1.8.0 | |
130 | Requires: wine | |
131 | ||
132 | %description cairo-dll | |
133 | DLL harfbuzz cairo library for Windows. | |
134 | ||
135 | %description cairo-dll -l pl.UTF-8 | |
136 | Biblioteka DLL harfbuzz cairo dla Windows. | |
137 | ||
6155f209 JB |
138 | %package subset |
139 | Summary: HarfBuzz text shaping library - font subsetter - MinGW32 cross version | |
140 | Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - font subsetter - wersja skrośna dla MinGW32 | |
141 | Group: Development/Libraries | |
142 | Requires: %{name} = %{version}-%{release} | |
143 | ||
144 | %description subset | |
145 | HarfBuzz text shaping library - font subsetter. | |
146 | ||
147 | This package contains the cross version for Win32. | |
148 | ||
149 | %description subset -l pl.UTF-8 | |
150 | Biblioteka HarfBuzz do rysowania tekstu - font subsetter. | |
151 | ||
152 | Ten pakiet zawiera wersję skrośną dla Win32. | |
153 | ||
154 | %package subset-static | |
155 | Summary: Static HarfBuzz subset library (cross MinGW32 version) | |
156 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz subset (wersja skrośna MinGW32) | |
157 | Group: Development/Libraries | |
158 | Requires: %{name}-subset = %{version}-%{release} | |
159 | ||
160 | %description subset-static | |
161 | Static HarfBuzz subset library (cross MinGW32 version). | |
162 | ||
163 | %description subset-static -l pl.UTF-8 | |
164 | Biblioteka statyczna HarfBuzz subset (wersja skrośna MinGW32). | |
165 | ||
166 | %package subset-dll | |
167 | Summary: DLL HarfBuzz subset library for Windows | |
168 | Summary(pl.UTF-8): Biblioteka DLL HarfBuzz subset dla Windows | |
169 | Group: Applications/Emulators | |
170 | Requires: %{name}-dll = %{version}-%{release} | |
171 | ||
172 | %description subset-dll | |
173 | DLL HarfBuzz subset library for Windows. | |
174 | ||
175 | %description subset-dll -l pl.UTF-8 | |
176 | Biblioteka DLL HarfBuzz subset dla Windows. | |
177 | ||
457aa3ee JB |
178 | %prep |
179 | %setup -q -n harfbuzz-%{version} | |
180 | ||
181 | %build | |
15a364e6 | 182 | %{__libtoolize} |
25e43991 | 183 | %{__gtkdocize} |
15a364e6 JB |
184 | %{__aclocal} -I m4 |
185 | %{__autoconf} | |
186 | %{__autoheader} | |
187 | %{__automake} | |
457aa3ee | 188 | export PKG_CONFIG_LIBDIR=%{_pkgconfigdir} |
16e576c1 | 189 | # MingW32 headers require GNU extensions (-std=c++11 doesn't work) |
457aa3ee | 190 | %configure \ |
16e576c1 JB |
191 | CPPFLAGS="%{rpmcppflags} -D_GNU_SOURCE" \ |
192 | CXXFLAGS="%{rpmcxxflags} -std=gnu++11" \ | |
28f73191 | 193 | PTHREAD_LIBS="-lpthread" \ |
457aa3ee JB |
194 | --target=%{target} \ |
195 | --build=i686-pc-linux-gnu \ | |
196 | --host=%{target} \ | |
2bcfc9b2 | 197 | --disable-gtk-doc \ |
457aa3ee | 198 | --disable-silent-rules \ |
15a364e6 | 199 | --enable-static \ |
22973638 | 200 | --with-cairo \ |
15a364e6 JB |
201 | --with-freetype \ |
202 | --with-glib \ | |
203 | --without-graphite2 \ | |
2bcfc9b2 | 204 | --with-html-dir=%{_gtkdocdir} \ |
15a364e6 JB |
205 | --without-icu \ |
206 | --with-uniscribe | |
457aa3ee JB |
207 | |
208 | %{__make} | |
209 | ||
210 | %install | |
211 | rm -rf $RPM_BUILD_ROOT | |
212 | ||
15a364e6 | 213 | %{__make} install \ |
457aa3ee JB |
214 | DESTDIR=$RPM_BUILD_ROOT |
215 | ||
216 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
4443bb20 | 217 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} |
457aa3ee | 218 | |
75593f22 JB |
219 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
220 | ||
457aa3ee JB |
221 | %if 0%{!?debug:1} |
222 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
223 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
224 | %endif | |
225 | ||
4f4c0d10 | 226 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/cmake/harfbuzz |
4443bb20 | 227 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/hb*.exe |
2bcfc9b2 JB |
228 | %{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir} |
229 | ||
457aa3ee JB |
230 | %clean |
231 | rm -rf $RPM_BUILD_ROOT | |
232 | ||
233 | %files | |
234 | %defattr(644,root,root,755) | |
7541b0f3 | 235 | %doc AUTHORS COPYING NEWS README.md THANKS |
457aa3ee | 236 | %{_libdir}/libharfbuzz.dll.a |
6155f209 JB |
237 | %dir %{_includedir}/harfbuzz |
238 | %{_includedir}/harfbuzz/hb.h | |
1c30992b JB |
239 | %{_includedir}/harfbuzz/hb-aat.h |
240 | %{_includedir}/harfbuzz/hb-aat-layout.h | |
6155f209 JB |
241 | %{_includedir}/harfbuzz/hb-blob.h |
242 | %{_includedir}/harfbuzz/hb-buffer.h | |
243 | %{_includedir}/harfbuzz/hb-common.h | |
6733e12a | 244 | %{_includedir}/harfbuzz/hb-cplusplus.hh |
6155f209 | 245 | %{_includedir}/harfbuzz/hb-deprecated.h |
aeeadf5c | 246 | %{_includedir}/harfbuzz/hb-draw.h |
6155f209 | 247 | %{_includedir}/harfbuzz/hb-face.h |
4abc89ca | 248 | %{_includedir}/harfbuzz/hb-features.h |
6155f209 JB |
249 | %{_includedir}/harfbuzz/hb-font.h |
250 | %{_includedir}/harfbuzz/hb-ft.h | |
251 | %{_includedir}/harfbuzz/hb-glib.h | |
6ffab0b4 | 252 | %{_includedir}/harfbuzz/hb-map.h |
628d6da6 | 253 | %{_includedir}/harfbuzz/hb-ot-color.h |
68950e38 | 254 | %{_includedir}/harfbuzz/hb-ot-deprecated.h |
6155f209 JB |
255 | %{_includedir}/harfbuzz/hb-ot-font.h |
256 | %{_includedir}/harfbuzz/hb-ot-layout.h | |
257 | %{_includedir}/harfbuzz/hb-ot-math.h | |
519041b4 JB |
258 | %{_includedir}/harfbuzz/hb-ot-meta.h |
259 | %{_includedir}/harfbuzz/hb-ot-metrics.h | |
c0791695 | 260 | %{_includedir}/harfbuzz/hb-ot-name.h |
6155f209 | 261 | %{_includedir}/harfbuzz/hb-ot-shape.h |
6155f209 JB |
262 | %{_includedir}/harfbuzz/hb-ot-var.h |
263 | %{_includedir}/harfbuzz/hb-ot.h | |
22973638 | 264 | %{_includedir}/harfbuzz/hb-paint.h |
6155f209 JB |
265 | %{_includedir}/harfbuzz/hb-set.h |
266 | %{_includedir}/harfbuzz/hb-shape-plan.h | |
267 | %{_includedir}/harfbuzz/hb-shape.h | |
3875715e | 268 | %{_includedir}/harfbuzz/hb-style.h |
6155f209 JB |
269 | %{_includedir}/harfbuzz/hb-unicode.h |
270 | %{_includedir}/harfbuzz/hb-uniscribe.h | |
271 | %{_includedir}/harfbuzz/hb-version.h | |
457aa3ee JB |
272 | %{_pkgconfigdir}/harfbuzz.pc |
273 | ||
274 | %files static | |
275 | %defattr(644,root,root,755) | |
276 | %{_libdir}/libharfbuzz.a | |
277 | ||
278 | %files dll | |
279 | %defattr(644,root,root,755) | |
6155f209 JB |
280 | %{_dlldir}/libharfbuzz-0.dll |
281 | ||
22973638 JB |
282 | %files cairo |
283 | %defattr(644,root,root,755) | |
284 | %{_libdir}/libharfbuzz-cairo.dll.a | |
285 | %{_includedir}/harfbuzz/hb-cairo.h | |
286 | %{_pkgconfigdir}/harfbuzz-cairo.pc | |
287 | ||
288 | %files cairo-static | |
289 | %defattr(644,root,root,755) | |
290 | %{_libdir}/libharfbuzz-cairo.a | |
291 | ||
292 | %files cairo-dll | |
293 | %defattr(644,root,root,755) | |
294 | %{_dlldir}/libharfbuzz-cairo-0.dll | |
295 | ||
6155f209 JB |
296 | %files subset |
297 | %defattr(644,root,root,755) | |
298 | %{_libdir}/libharfbuzz-subset.dll.a | |
6155f209 | 299 | %{_includedir}/harfbuzz/hb-subset.h |
6d38eb5a | 300 | %{_includedir}/harfbuzz/hb-subset-repacker.h |
6155f209 JB |
301 | %{_pkgconfigdir}/harfbuzz-subset.pc |
302 | ||
303 | %files subset-static | |
304 | %defattr(644,root,root,755) | |
305 | %{_libdir}/libharfbuzz-subset.a | |
306 | ||
307 | %files subset-dll | |
308 | %defattr(644,root,root,755) | |
309 | %{_dlldir}/libharfbuzz-subset-0.dll |