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: baccea934fac603c8192adbcd096e28c
10 Patch0: harfbuzz-mingw32.patch
11 URL: http://www.freedesktop.org/wiki/HarfBuzz
12 BuildRequires: autoconf >= 2.64
13 BuildRequires: automake >= 1:1.13
14 # cairo is used only for utilities, which are not packaged
15 #BuildRequires: crossmingw32-cairo >= 1.8.0
16 BuildRequires: crossmingw32-freetype >= 2.3.8
17 BuildRequires: crossmingw32-glib2 >= 2.16
18 BuildRequires: crossmingw32-gcc-c++
19 BuildRequires: libtool >= 2:2.2
20 BuildRequires: pkgconfig >= 1:0.20
21 Requires: crossmingw32-freetype >= 2.3.8
22 Requires: crossmingw32-glib2 >= 2.16
23 Requires: crossmingw32-gcc-c++
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 # see <harfbuzz/internal/ftserv.h>, the real horror
27 %define specflags -fno-strict-aliasing
29 %define no_install_post_strip 1
31 %define target i386-mingw32
32 %define target_platform i386-pc-mingw32
34 %define _sysprefix /usr
35 %define _prefix %{_sysprefix}/%{target}
36 %define _libdir %{_prefix}/lib
37 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
38 %define _dlldir /usr/share/wine/windows/system
39 %define __cc %{target}-gcc
40 %define __cxx %{target}-g++
41 %define __pkgconfig_provides %{nil}
42 %define __pkgconfig_requires %{nil}
45 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
48 # -z options are invalid for mingw linker, most of -f options are Linux-specific
49 %define filterout_ld -Wl,-z,.*
50 %define filterout_c -f[-a-z0-9=]*
51 %define filterout_cxx -f[-a-z0-9=]*
54 Internationalized OpenType text layout and rendering library.
56 This package contains the cross version for Win32.
58 %description -l pl.UTF-8
59 Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType,
60 obsługująca wiele języków.
62 Ten pakiet zawiera wersję skrośną dla Win32.
65 Summary: Static harfbuzz library (cross MinGW32 version)
66 Summary(pl.UTF-8): Statyczna biblioteka harfbuzz (wersja skrośna MinGW32)
67 Group: Development/Libraries
68 Requires: %{name} = %{version}-%{release}
71 Static harfbuzz library (cross MinGW32 version).
73 %description static -l pl.UTF-8
74 Statyczna biblioteka harfbuzz (wersja skrośna MinGW32).
77 Summary: DLL harfbuzz library for Windows
78 Summary(pl.UTF-8): Biblioteka DLL harfbuzz dla Windows
79 Group: Applications/Emulators
80 Requires: crossmingw32-freetype-dll >= 2.3.8
81 Requires: crossmingw32-glib2-dll >= 2.16
85 DLL harfbuzz library for Windows.
87 %description dll -l pl.UTF-8
88 Biblioteka DLL harfbuzz dla Windows.
91 %setup -q -n harfbuzz-%{version}
100 export PKG_CONFIG_LIBDIR=%{_pkgconfigdir}
103 --build=i686-pc-linux-gnu \
106 --disable-silent-rules \
111 --without-graphite2 \
112 --with-html-dir=%{_gtkdocdir} \
119 rm -rf $RPM_BUILD_ROOT
122 DESTDIR=$RPM_BUILD_ROOT
124 install -d $RPM_BUILD_ROOT%{_dlldir}
125 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
128 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
129 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
132 %{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}
135 rm -rf $RPM_BUILD_ROOT
138 %defattr(644,root,root,755)
139 %doc COPYING ChangeLog README TODO
140 %{_libdir}/libharfbuzz.dll.a
141 %{_libdir}/libharfbuzz.la
142 %{_includedir}/harfbuzz
143 %{_pkgconfigdir}/harfbuzz.pc
146 %defattr(644,root,root,755)
147 %{_libdir}/libharfbuzz.a
150 %defattr(644,root,root,755)
151 %{_dlldir}/libharfbuzz-*.dll