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
7 Group: Development/Libraries
8 Source0: http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-%{version}.tar.bz2
9 # Source0-md5: e901ffe556d706b7d43b272f83be7f09
10 URL: http://www.freedesktop.org/wiki/HarfBuzz
11 BuildRequires: crossmingw32-cairo >= 1.8.0
12 BuildRequires: crossmingw32-freetype >= 2.3.8
13 BuildRequires: crossmingw32-glib2 >= 2.16
14 BuildRequires: crossmingw32-gcc-c++
15 BuildRequires: pkgconfig >= 1:0.20
16 Requires: crossmingw32-cairo >= 1.8.0
17 Requires: crossmingw32-freetype >= 2.3.8
18 Requires: crossmingw32-glib2 >= 2.16
19 Requires: crossmingw32-gcc-c++
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 # see <harfbuzz/internal/ftserv.h>, the real horror
23 %define specflags -fno-strict-aliasing
25 %define no_install_post_strip 1
27 %define target i386-mingw32
28 %define target_platform i386-pc-mingw32
30 %define _sysprefix /usr
31 %define _prefix %{_sysprefix}/%{target}
32 %define _libdir %{_prefix}/lib
33 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
34 %define _dlldir /usr/share/wine/windows/system
35 %define __cc %{target}-gcc
36 %define __cxx %{target}-g++
39 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
42 # -z options are invalid for mingw linker, most of -f options are Linux-specific
43 %define filterout_ld -Wl,-z,.*
44 %define filterout_c -f[-a-z0-9=]*
45 %define filterout_cxx -f[-a-z0-9=]*
48 Internationalized OpenType text layout and rendering library.
50 This package contains the cross version for Win32.
52 %description -l pl.UTF-8
53 Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType,
54 obsługująca wiele języków.
56 Ten pakiet zawiera wersję skrośną dla Win32.
59 Summary: Static harfbuzz library (cross MinGW32 version)
60 Summary(pl.UTF-8): Statyczna biblioteka harfbuzz (wersja skrośna MinGW32)
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
65 Static harfbuzz library (cross MinGW32 version).
67 %description static -l pl.UTF-8
68 Statyczna biblioteka harfbuzz (wersja skrośna MinGW32).
71 Summary: DLL harfbuzz library for Windows
72 Summary(pl.UTF-8): Biblioteka DLL harfbuzz dla Windows
73 Group: Applications/Emulators
74 Requires: crossmingw32-cairo-dll >= 1.8.0
75 Requires: crossmingw32-freetype-dll >= 2.3.8
76 Requires: crossmingw32-glib2-dll >= 2.16
80 DLL harfbuzz library for Windows.
82 %description dll -l pl.UTF-8
83 Biblioteka DLL harfbuzz dla Windows.
86 %setup -q -n harfbuzz-%{version}
89 export PKG_CONFIG_LIBDIR=%{_pkgconfigdir}
92 --build=i686-pc-linux-gnu \
94 --disable-silent-rules \
100 rm -rf $RPM_BUILD_ROOT
102 # parallel install broken (hb-version.h both in pkginclude_HEADERS and
103 # nodist_pkginclude_HEADERS)
104 %{__make} -j1 install \
105 DESTDIR=$RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT%{_dlldir}
108 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
111 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
112 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
116 rm -rf $RPM_BUILD_ROOT
119 %defattr(644,root,root,755)
120 %doc COPYING ChangeLog README TODO
121 %{_libdir}/libharfbuzz.dll.a
122 %{_libdir}/libharfbuzz.la
123 %{_includedir}/harfbuzz
124 %{_pkgconfigdir}/harfbuzz.pc
127 %defattr(644,root,root,755)
128 %{_libdir}/libharfbuzz.a
131 %defattr(644,root,root,755)
132 %{_dlldir}/libharfbuzz-*.dll