]>
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 | |
a24fe502 | 4 | Version: 2.7.4 |
04479a18 | 5 | Release: 1 |
457aa3ee JB |
6 | License: MIT |
7 | Group: Development/Libraries | |
25e43991 | 8 | Source0: https://github.com/harfbuzz/harfbuzz/archive/%{version}/harfbuzz-%{version}.tar.gz |
a24fe502 | 9 | # Source0-md5: 1f3427129437783b55fafdf33b4a73aa |
24a2a94f | 10 | Patch0: harfbuzz-win32.patch |
aeeadf5c | 11 | URL: https://harfbuzz.github.io/ |
15a364e6 | 12 | BuildRequires: autoconf >= 2.64 |
628d6da6 | 13 | BuildRequires: automake >= 1:1.13.0 |
25e43991 | 14 | BuildRequires: crossmingw32-w32api >= 5.0.2-8 |
a278f832 JB |
15 | # cairo is used only for utilities, which are not packaged |
16 | #BuildRequires: crossmingw32-cairo >= 1.8.0 | |
cc0c1158 | 17 | BuildRequires: crossmingw32-freetype >= 2.9 |
aab13c71 | 18 | BuildRequires: crossmingw32-glib2 >= 2.38 |
16e576c1 | 19 | BuildRequires: crossmingw32-gcc-c++ >= 1:4.7 |
aef0043c | 20 | BuildRequires: crossmingw32-pthreads-w32 |
25e43991 | 21 | BuildRequires: gtk-doc >= 1.15 |
15a364e6 | 22 | BuildRequires: libtool >= 2:2.2 |
a24fe502 | 23 | BuildRequires: pkgconfig >= 1:0.28 |
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 | 139 | %{__libtoolize} |
25e43991 | 140 | %{__gtkdocize} |
15a364e6 JB |
141 | %{__aclocal} -I m4 |
142 | %{__autoconf} | |
143 | %{__autoheader} | |
144 | %{__automake} | |
457aa3ee | 145 | export PKG_CONFIG_LIBDIR=%{_pkgconfigdir} |
16e576c1 | 146 | # MingW32 headers require GNU extensions (-std=c++11 doesn't work) |
457aa3ee | 147 | %configure \ |
16e576c1 JB |
148 | CPPFLAGS="%{rpmcppflags} -D_GNU_SOURCE" \ |
149 | CXXFLAGS="%{rpmcxxflags} -std=gnu++11" \ | |
28f73191 | 150 | PTHREAD_LIBS="-lpthread" \ |
457aa3ee JB |
151 | --target=%{target} \ |
152 | --build=i686-pc-linux-gnu \ | |
153 | --host=%{target} \ | |
2bcfc9b2 | 154 | --disable-gtk-doc \ |
457aa3ee | 155 | --disable-silent-rules \ |
15a364e6 | 156 | --enable-static \ |
a278f832 | 157 | --without-cairo \ |
15a364e6 JB |
158 | --with-freetype \ |
159 | --with-glib \ | |
160 | --without-graphite2 \ | |
2bcfc9b2 | 161 | --with-html-dir=%{_gtkdocdir} \ |
15a364e6 JB |
162 | --without-icu \ |
163 | --with-uniscribe | |
457aa3ee JB |
164 | |
165 | %{__make} | |
166 | ||
167 | %install | |
168 | rm -rf $RPM_BUILD_ROOT | |
169 | ||
15a364e6 | 170 | %{__make} install \ |
457aa3ee JB |
171 | DESTDIR=$RPM_BUILD_ROOT |
172 | ||
173 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
4443bb20 | 174 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} |
457aa3ee | 175 | |
75593f22 JB |
176 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
177 | ||
457aa3ee JB |
178 | %if 0%{!?debug:1} |
179 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
180 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
181 | %endif | |
182 | ||
4f4c0d10 | 183 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/cmake/harfbuzz |
4443bb20 | 184 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/hb*.exe |
2bcfc9b2 JB |
185 | %{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir} |
186 | ||
457aa3ee JB |
187 | %clean |
188 | rm -rf $RPM_BUILD_ROOT | |
189 | ||
190 | %files | |
191 | %defattr(644,root,root,755) | |
25e43991 | 192 | %doc COPYING README TODO |
457aa3ee | 193 | %{_libdir}/libharfbuzz.dll.a |
6155f209 JB |
194 | %dir %{_includedir}/harfbuzz |
195 | %{_includedir}/harfbuzz/hb.h | |
1c30992b JB |
196 | %{_includedir}/harfbuzz/hb-aat.h |
197 | %{_includedir}/harfbuzz/hb-aat-layout.h | |
6155f209 JB |
198 | %{_includedir}/harfbuzz/hb-blob.h |
199 | %{_includedir}/harfbuzz/hb-buffer.h | |
200 | %{_includedir}/harfbuzz/hb-common.h | |
201 | %{_includedir}/harfbuzz/hb-deprecated.h | |
aeeadf5c | 202 | %{_includedir}/harfbuzz/hb-draw.h |
6155f209 JB |
203 | %{_includedir}/harfbuzz/hb-face.h |
204 | %{_includedir}/harfbuzz/hb-font.h | |
205 | %{_includedir}/harfbuzz/hb-ft.h | |
206 | %{_includedir}/harfbuzz/hb-glib.h | |
6ffab0b4 | 207 | %{_includedir}/harfbuzz/hb-map.h |
628d6da6 | 208 | %{_includedir}/harfbuzz/hb-ot-color.h |
68950e38 | 209 | %{_includedir}/harfbuzz/hb-ot-deprecated.h |
6155f209 JB |
210 | %{_includedir}/harfbuzz/hb-ot-font.h |
211 | %{_includedir}/harfbuzz/hb-ot-layout.h | |
212 | %{_includedir}/harfbuzz/hb-ot-math.h | |
519041b4 JB |
213 | %{_includedir}/harfbuzz/hb-ot-meta.h |
214 | %{_includedir}/harfbuzz/hb-ot-metrics.h | |
c0791695 | 215 | %{_includedir}/harfbuzz/hb-ot-name.h |
6155f209 | 216 | %{_includedir}/harfbuzz/hb-ot-shape.h |
6155f209 JB |
217 | %{_includedir}/harfbuzz/hb-ot-var.h |
218 | %{_includedir}/harfbuzz/hb-ot.h | |
219 | %{_includedir}/harfbuzz/hb-set.h | |
220 | %{_includedir}/harfbuzz/hb-shape-plan.h | |
221 | %{_includedir}/harfbuzz/hb-shape.h | |
3875715e | 222 | %{_includedir}/harfbuzz/hb-style.h |
6155f209 JB |
223 | %{_includedir}/harfbuzz/hb-unicode.h |
224 | %{_includedir}/harfbuzz/hb-uniscribe.h | |
225 | %{_includedir}/harfbuzz/hb-version.h | |
457aa3ee JB |
226 | %{_pkgconfigdir}/harfbuzz.pc |
227 | ||
228 | %files static | |
229 | %defattr(644,root,root,755) | |
230 | %{_libdir}/libharfbuzz.a | |
231 | ||
232 | %files dll | |
233 | %defattr(644,root,root,755) | |
6155f209 JB |
234 | %{_dlldir}/libharfbuzz-0.dll |
235 | ||
236 | %files subset | |
237 | %defattr(644,root,root,755) | |
238 | %{_libdir}/libharfbuzz-subset.dll.a | |
6155f209 | 239 | %{_includedir}/harfbuzz/hb-subset.h |
6155f209 JB |
240 | %{_pkgconfigdir}/harfbuzz-subset.pc |
241 | ||
242 | %files subset-static | |
243 | %defattr(644,root,root,755) | |
244 | %{_libdir}/libharfbuzz-subset.a | |
245 | ||
246 | %files subset-dll | |
247 | %defattr(644,root,root,755) | |
248 | %{_dlldir}/libharfbuzz-subset-0.dll |