]> git.pld-linux.org Git - packages/crossmingw32-harfbuzz.git/blob - crossmingw32-harfbuzz.spec
- updated to 8.4.0
[packages/crossmingw32-harfbuzz.git] / crossmingw32-harfbuzz.spec
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
4 Version:        8.4.0
5 Release:        1
6 License:        MIT
7 Group:          Development/Libraries
8 Source0:        https://github.com/harfbuzz/harfbuzz/releases/download/%{version}/harfbuzz-%{version}.tar.xz
9 # Source0-md5:  961e77201ff4738382ea06e9f15ade70
10 URL:            https://harfbuzz.github.io/
11 BuildRequires:  autoconf >= 2.64
12 BuildRequires:  automake >= 1:1.13.0
13 BuildRequires:  crossmingw32-w32api >= 5.0.2-8
14 BuildRequires:  crossmingw32-cairo >= 1.10.0
15 BuildRequires:  crossmingw32-freetype >= 2.11
16 BuildRequires:  crossmingw32-glib2 >= 2.38
17 BuildRequires:  crossmingw32-gcc-c++ >= 1:4.7
18 BuildRequires:  crossmingw32-pthreads-w32
19 BuildRequires:  gtk-doc >= 1.15
20 BuildRequires:  libtool >= 2:2.2
21 BuildRequires:  pkgconfig >= 1:0.28
22 BuildRequires:  tar >= 1:1.22
23 BuildRequires:  xz
24 Requires:       crossmingw32-freetype >= 2.11
25 Requires:       crossmingw32-glib2 >= 2.38
26 Requires:       crossmingw32-gcc-c++ >= 1:4.7
27 Requires:       crossmingw32-pthreads-w32
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 %define         _enable_debug_packages  0
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++
46 %define         __pkgconfig_provides    %{nil}
47 %define         __pkgconfig_requires    %{nil}
48
49 %ifnarch %{ix86}
50 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
51 %define         optflags        -O2 -march=i486
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
85 Requires:       crossmingw32-freetype-dll >= 2.11
86 Requires:       crossmingw32-glib2-dll >= 2.38
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
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.10.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
116 Requires:       %{name}-cairo = %{version}-%{release}
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.10.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
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
178 %prep
179 %setup -q -n harfbuzz-%{version}
180
181 %build
182 %{__libtoolize}
183 %{__gtkdocize}
184 %{__aclocal} -I m4
185 %{__autoconf}
186 %{__autoheader}
187 %{__automake}
188 export PKG_CONFIG_LIBDIR=%{_pkgconfigdir}
189 # MingW32 headers require GNU extensions (-std=c++11 doesn't work)
190 %configure \
191         CPPFLAGS="%{rpmcppflags} -D_GNU_SOURCE" \
192         CXXFLAGS="%{rpmcxxflags} -std=gnu++11" \
193         PTHREAD_LIBS="-lpthread" \
194         --target=%{target} \
195         --build=i686-pc-linux-gnu \
196         --host=%{target} \
197         --disable-gtk-doc \
198         --disable-silent-rules \
199         --enable-static \
200         --with-cairo \
201         --with-freetype \
202         --with-glib \
203         --without-graphite2 \
204         --with-html-dir=%{_gtkdocdir} \
205         --without-icu \
206         --with-uniscribe
207
208 %{__make}
209
210 %install
211 rm -rf $RPM_BUILD_ROOT
212
213 %{__make} install \
214         DESTDIR=$RPM_BUILD_ROOT
215
216 install -d $RPM_BUILD_ROOT%{_dlldir}
217 %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
218
219 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
220
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
226 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/cmake/harfbuzz
227 %{__rm} $RPM_BUILD_ROOT%{_bindir}/hb*.exe
228 %{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}
229
230 %clean
231 rm -rf $RPM_BUILD_ROOT
232
233 %files
234 %defattr(644,root,root,755)
235 %doc AUTHORS COPYING NEWS README.md THANKS
236 %{_libdir}/libharfbuzz.dll.a
237 %dir %{_includedir}/harfbuzz
238 %{_includedir}/harfbuzz/hb.h
239 %{_includedir}/harfbuzz/hb-aat.h
240 %{_includedir}/harfbuzz/hb-aat-layout.h
241 %{_includedir}/harfbuzz/hb-blob.h
242 %{_includedir}/harfbuzz/hb-buffer.h
243 %{_includedir}/harfbuzz/hb-common.h
244 %{_includedir}/harfbuzz/hb-cplusplus.hh
245 %{_includedir}/harfbuzz/hb-deprecated.h
246 %{_includedir}/harfbuzz/hb-draw.h
247 %{_includedir}/harfbuzz/hb-face.h
248 %{_includedir}/harfbuzz/hb-features.h
249 %{_includedir}/harfbuzz/hb-font.h
250 %{_includedir}/harfbuzz/hb-ft.h
251 %{_includedir}/harfbuzz/hb-glib.h
252 %{_includedir}/harfbuzz/hb-map.h
253 %{_includedir}/harfbuzz/hb-ot-color.h
254 %{_includedir}/harfbuzz/hb-ot-deprecated.h
255 %{_includedir}/harfbuzz/hb-ot-font.h
256 %{_includedir}/harfbuzz/hb-ot-layout.h
257 %{_includedir}/harfbuzz/hb-ot-math.h
258 %{_includedir}/harfbuzz/hb-ot-meta.h
259 %{_includedir}/harfbuzz/hb-ot-metrics.h
260 %{_includedir}/harfbuzz/hb-ot-name.h
261 %{_includedir}/harfbuzz/hb-ot-shape.h
262 %{_includedir}/harfbuzz/hb-ot-var.h
263 %{_includedir}/harfbuzz/hb-ot.h
264 %{_includedir}/harfbuzz/hb-paint.h
265 %{_includedir}/harfbuzz/hb-set.h
266 %{_includedir}/harfbuzz/hb-shape-plan.h
267 %{_includedir}/harfbuzz/hb-shape.h
268 %{_includedir}/harfbuzz/hb-style.h
269 %{_includedir}/harfbuzz/hb-unicode.h
270 %{_includedir}/harfbuzz/hb-uniscribe.h
271 %{_includedir}/harfbuzz/hb-version.h
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)
280 %{_dlldir}/libharfbuzz-0.dll
281
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
296 %files subset
297 %defattr(644,root,root,755)
298 %{_libdir}/libharfbuzz-subset.dll.a
299 %{_includedir}/harfbuzz/hb-subset.h
300 %{_includedir}/harfbuzz/hb-subset-repacker.h
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
This page took 1.167266 seconds and 4 git commands to generate.