]>
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 | |
519041b4 | 4 | Version: 2.6.1 |
6ffab0b4 | 5 | Release: 1 |
457aa3ee JB |
6 | License: MIT |
7 | Group: Development/Libraries | |
17b1148b | 8 | Source0: https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-%{version}.tar.xz |
519041b4 | 9 | # Source0-md5: 89b758a2eb14d56a94406cf914b62388 |
24a2a94f | 10 | Patch0: harfbuzz-win32.patch |
8dfe0280 | 11 | URL: https://www.freedesktop.org/wiki/HarfBuzz |
15a364e6 | 12 | BuildRequires: autoconf >= 2.64 |
628d6da6 | 13 | BuildRequires: automake >= 1:1.13.0 |
a278f832 JB |
14 | # cairo is used only for utilities, which are not packaged |
15 | #BuildRequires: crossmingw32-cairo >= 1.8.0 | |
cc0c1158 | 16 | BuildRequires: crossmingw32-freetype >= 2.9 |
aab13c71 | 17 | BuildRequires: crossmingw32-glib2 >= 2.38 |
16e576c1 | 18 | BuildRequires: crossmingw32-gcc-c++ >= 1:4.7 |
aef0043c | 19 | BuildRequires: crossmingw32-pthreads-w32 |
15a364e6 | 20 | BuildRequires: libtool >= 2:2.2 |
a2a964b7 | 21 | BuildRequires: pkgconfig >= 1:0.20 |
17b1148b JB |
22 | BuildRequires: tar >= 1:1.22 |
23 | BuildRequires: xz | |
cc0c1158 | 24 | Requires: crossmingw32-freetype >= 2.9 |
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 | |
34 | ||
35 | %define target i386-mingw32 | |
36 | %define target_platform i386-pc-mingw32 | |
37 | ||
38 | %define _sysprefix /usr | |
39 | %define _prefix %{_sysprefix}/%{target} | |
40 | %define _libdir %{_prefix}/lib | |
41 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
42 | %define _dlldir /usr/share/wine/windows/system | |
43 | %define __cc %{target}-gcc | |
44 | %define __cxx %{target}-g++ | |
16d7336b | 45 | %define __pkgconfig_provides %{nil} |
94aebac6 | 46 | %define __pkgconfig_requires %{nil} |
457aa3ee JB |
47 | |
48 | %ifnarch %{ix86} | |
49 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
aef0043c | 50 | %define optflags -O2 -march=i486 |
457aa3ee JB |
51 | %endif |
52 | # -z options are invalid for mingw linker, most of -f options are Linux-specific | |
53 | %define filterout_ld -Wl,-z,.* | |
54 | %define filterout_c -f[-a-z0-9=]* | |
55 | %define filterout_cxx -f[-a-z0-9=]* | |
56 | ||
57 | %description | |
58 | Internationalized OpenType text layout and rendering library. | |
59 | ||
60 | This package contains the cross version for Win32. | |
61 | ||
62 | %description -l pl.UTF-8 | |
63 | Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType, | |
64 | obsługująca wiele języków. | |
65 | ||
66 | Ten pakiet zawiera wersję skrośną dla Win32. | |
67 | ||
68 | %package static | |
69 | Summary: Static harfbuzz library (cross MinGW32 version) | |
70 | Summary(pl.UTF-8): Statyczna biblioteka harfbuzz (wersja skrośna MinGW32) | |
71 | Group: Development/Libraries | |
72 | Requires: %{name} = %{version}-%{release} | |
73 | ||
74 | %description static | |
75 | Static harfbuzz library (cross MinGW32 version). | |
76 | ||
77 | %description static -l pl.UTF-8 | |
78 | Statyczna biblioteka harfbuzz (wersja skrośna MinGW32). | |
79 | ||
80 | %package dll | |
81 | Summary: DLL harfbuzz library for Windows | |
82 | Summary(pl.UTF-8): Biblioteka DLL harfbuzz dla Windows | |
83 | Group: Applications/Emulators | |
cc0c1158 | 84 | Requires: crossmingw32-freetype-dll >= 2.9 |
aab13c71 | 85 | Requires: crossmingw32-glib2-dll >= 2.38 |
457aa3ee JB |
86 | Requires: wine |
87 | ||
88 | %description dll | |
89 | DLL harfbuzz library for Windows. | |
90 | ||
91 | %description dll -l pl.UTF-8 | |
92 | Biblioteka DLL harfbuzz dla Windows. | |
93 | ||
6155f209 JB |
94 | %package subset |
95 | Summary: HarfBuzz text shaping library - font subsetter - MinGW32 cross version | |
96 | Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - font subsetter - wersja skrośna dla MinGW32 | |
97 | Group: Development/Libraries | |
98 | Requires: %{name} = %{version}-%{release} | |
99 | ||
100 | %description subset | |
101 | HarfBuzz text shaping library - font subsetter. | |
102 | ||
103 | This package contains the cross version for Win32. | |
104 | ||
105 | %description subset -l pl.UTF-8 | |
106 | Biblioteka HarfBuzz do rysowania tekstu - font subsetter. | |
107 | ||
108 | Ten pakiet zawiera wersję skrośną dla Win32. | |
109 | ||
110 | %package subset-static | |
111 | Summary: Static HarfBuzz subset library (cross MinGW32 version) | |
112 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz subset (wersja skrośna MinGW32) | |
113 | Group: Development/Libraries | |
114 | Requires: %{name}-subset = %{version}-%{release} | |
115 | ||
116 | %description subset-static | |
117 | Static HarfBuzz subset library (cross MinGW32 version). | |
118 | ||
119 | %description subset-static -l pl.UTF-8 | |
120 | Biblioteka statyczna HarfBuzz subset (wersja skrośna MinGW32). | |
121 | ||
122 | %package subset-dll | |
123 | Summary: DLL HarfBuzz subset library for Windows | |
124 | Summary(pl.UTF-8): Biblioteka DLL HarfBuzz subset dla Windows | |
125 | Group: Applications/Emulators | |
126 | Requires: %{name}-dll = %{version}-%{release} | |
127 | ||
128 | %description subset-dll | |
129 | DLL HarfBuzz subset library for Windows. | |
130 | ||
131 | %description subset-dll -l pl.UTF-8 | |
132 | Biblioteka DLL HarfBuzz subset dla Windows. | |
133 | ||
457aa3ee JB |
134 | %prep |
135 | %setup -q -n harfbuzz-%{version} | |
24a2a94f | 136 | %patch0 -p1 |
457aa3ee JB |
137 | |
138 | %build | |
15a364e6 JB |
139 | %{__libtoolize} |
140 | %{__aclocal} -I m4 | |
141 | %{__autoconf} | |
142 | %{__autoheader} | |
143 | %{__automake} | |
457aa3ee | 144 | export PKG_CONFIG_LIBDIR=%{_pkgconfigdir} |
16e576c1 | 145 | # MingW32 headers require GNU extensions (-std=c++11 doesn't work) |
457aa3ee | 146 | %configure \ |
16e576c1 JB |
147 | CPPFLAGS="%{rpmcppflags} -D_GNU_SOURCE" \ |
148 | CXXFLAGS="%{rpmcxxflags} -std=gnu++11" \ | |
28f73191 | 149 | PTHREAD_LIBS="-lpthread" \ |
457aa3ee JB |
150 | --target=%{target} \ |
151 | --build=i686-pc-linux-gnu \ | |
152 | --host=%{target} \ | |
2bcfc9b2 | 153 | --disable-gtk-doc \ |
457aa3ee | 154 | --disable-silent-rules \ |
15a364e6 | 155 | --enable-static \ |
a278f832 | 156 | --without-cairo \ |
15a364e6 JB |
157 | --with-freetype \ |
158 | --with-glib \ | |
159 | --without-graphite2 \ | |
2bcfc9b2 | 160 | --with-html-dir=%{_gtkdocdir} \ |
15a364e6 JB |
161 | --without-icu \ |
162 | --with-uniscribe | |
457aa3ee JB |
163 | |
164 | %{__make} | |
165 | ||
166 | %install | |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
15a364e6 | 169 | %{__make} install \ |
457aa3ee JB |
170 | DESTDIR=$RPM_BUILD_ROOT |
171 | ||
172 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
4443bb20 | 173 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} |
457aa3ee JB |
174 | |
175 | %if 0%{!?debug:1} | |
176 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
177 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
178 | %endif | |
179 | ||
4f4c0d10 | 180 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/cmake/harfbuzz |
4443bb20 | 181 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/hb*.exe |
2bcfc9b2 JB |
182 | %{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir} |
183 | ||
457aa3ee JB |
184 | %clean |
185 | rm -rf $RPM_BUILD_ROOT | |
186 | ||
187 | %files | |
188 | %defattr(644,root,root,755) | |
189 | %doc COPYING ChangeLog README TODO | |
190 | %{_libdir}/libharfbuzz.dll.a | |
191 | %{_libdir}/libharfbuzz.la | |
6155f209 JB |
192 | %dir %{_includedir}/harfbuzz |
193 | %{_includedir}/harfbuzz/hb.h | |
1c30992b JB |
194 | %{_includedir}/harfbuzz/hb-aat.h |
195 | %{_includedir}/harfbuzz/hb-aat-layout.h | |
6155f209 JB |
196 | %{_includedir}/harfbuzz/hb-blob.h |
197 | %{_includedir}/harfbuzz/hb-buffer.h | |
198 | %{_includedir}/harfbuzz/hb-common.h | |
199 | %{_includedir}/harfbuzz/hb-deprecated.h | |
200 | %{_includedir}/harfbuzz/hb-face.h | |
201 | %{_includedir}/harfbuzz/hb-font.h | |
202 | %{_includedir}/harfbuzz/hb-ft.h | |
203 | %{_includedir}/harfbuzz/hb-glib.h | |
6ffab0b4 | 204 | %{_includedir}/harfbuzz/hb-map.h |
628d6da6 | 205 | %{_includedir}/harfbuzz/hb-ot-color.h |
68950e38 | 206 | %{_includedir}/harfbuzz/hb-ot-deprecated.h |
6155f209 JB |
207 | %{_includedir}/harfbuzz/hb-ot-font.h |
208 | %{_includedir}/harfbuzz/hb-ot-layout.h | |
209 | %{_includedir}/harfbuzz/hb-ot-math.h | |
519041b4 JB |
210 | %{_includedir}/harfbuzz/hb-ot-meta.h |
211 | %{_includedir}/harfbuzz/hb-ot-metrics.h | |
c0791695 | 212 | %{_includedir}/harfbuzz/hb-ot-name.h |
6155f209 | 213 | %{_includedir}/harfbuzz/hb-ot-shape.h |
6155f209 JB |
214 | %{_includedir}/harfbuzz/hb-ot-var.h |
215 | %{_includedir}/harfbuzz/hb-ot.h | |
216 | %{_includedir}/harfbuzz/hb-set.h | |
217 | %{_includedir}/harfbuzz/hb-shape-plan.h | |
218 | %{_includedir}/harfbuzz/hb-shape.h | |
219 | %{_includedir}/harfbuzz/hb-unicode.h | |
220 | %{_includedir}/harfbuzz/hb-uniscribe.h | |
221 | %{_includedir}/harfbuzz/hb-version.h | |
457aa3ee JB |
222 | %{_pkgconfigdir}/harfbuzz.pc |
223 | ||
224 | %files static | |
225 | %defattr(644,root,root,755) | |
226 | %{_libdir}/libharfbuzz.a | |
227 | ||
228 | %files dll | |
229 | %defattr(644,root,root,755) | |
6155f209 JB |
230 | %{_dlldir}/libharfbuzz-0.dll |
231 | ||
232 | %files subset | |
233 | %defattr(644,root,root,755) | |
234 | %{_libdir}/libharfbuzz-subset.dll.a | |
235 | %{_libdir}/libharfbuzz-subset.la | |
236 | %{_includedir}/harfbuzz/hb-subset.h | |
6155f209 JB |
237 | %{_pkgconfigdir}/harfbuzz-subset.pc |
238 | ||
239 | %files subset-static | |
240 | %defattr(644,root,root,755) | |
241 | %{_libdir}/libharfbuzz-subset.a | |
242 | ||
243 | %files subset-dll | |
244 | %defattr(644,root,root,755) | |
245 | %{_dlldir}/libharfbuzz-subset-0.dll |