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: 1223cefac2bc77298ff5c7422bb148d5
10 URL: http://www.freedesktop.org/wiki/HarfBuzz
11 BuildRequires: autoconf >= 2.64
12 BuildRequires: automake >= 1:1.11.1
13 # cairo is used only for utilities, which are not packaged
14 #BuildRequires: crossmingw32-cairo >= 1.8.0
15 BuildRequires: crossmingw32-freetype >= 2.4.2
16 BuildRequires: crossmingw32-glib2 >= 2.16
17 BuildRequires: crossmingw32-gcc-c++
18 BuildRequires: libtool >= 2:2.2
19 BuildRequires: pkgconfig >= 1:0.20
20 Requires: crossmingw32-freetype >= 2.4.2
21 Requires: crossmingw32-glib2 >= 2.16
22 Requires: crossmingw32-gcc-c++
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 # see <harfbuzz/internal/ftserv.h>, the real horror
26 %define specflags -fno-strict-aliasing
28 %define no_install_post_strip 1
30 %define target i386-mingw32
31 %define target_platform i386-pc-mingw32
33 %define _sysprefix /usr
34 %define _prefix %{_sysprefix}/%{target}
35 %define _libdir %{_prefix}/lib
36 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
37 %define _dlldir /usr/share/wine/windows/system
38 %define __cc %{target}-gcc
39 %define __cxx %{target}-g++
40 %define __pkgconfig_provides %{nil}
41 %define __pkgconfig_requires %{nil}
44 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
47 # -z options are invalid for mingw linker, most of -f options are Linux-specific
48 %define filterout_ld -Wl,-z,.*
49 %define filterout_c -f[-a-z0-9=]*
50 %define filterout_cxx -f[-a-z0-9=]*
53 Internationalized OpenType text layout and rendering library.
55 This package contains the cross version for Win32.
57 %description -l pl.UTF-8
58 Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType,
59 obsługująca wiele języków.
61 Ten pakiet zawiera wersję skrośną dla Win32.
64 Summary: Static harfbuzz library (cross MinGW32 version)
65 Summary(pl.UTF-8): Statyczna biblioteka harfbuzz (wersja skrośna MinGW32)
66 Group: Development/Libraries
67 Requires: %{name} = %{version}-%{release}
70 Static harfbuzz library (cross MinGW32 version).
72 %description static -l pl.UTF-8
73 Statyczna biblioteka harfbuzz (wersja skrośna MinGW32).
76 Summary: DLL harfbuzz library for Windows
77 Summary(pl.UTF-8): Biblioteka DLL harfbuzz dla Windows
78 Group: Applications/Emulators
79 Requires: crossmingw32-freetype-dll >= 2.4.2
80 Requires: crossmingw32-glib2-dll >= 2.16
84 DLL harfbuzz library for Windows.
86 %description dll -l pl.UTF-8
87 Biblioteka DLL harfbuzz dla Windows.
90 %setup -q -n harfbuzz-%{version}
98 export PKG_CONFIG_LIBDIR=%{_pkgconfigdir}
101 --build=i686-pc-linux-gnu \
104 --disable-silent-rules \
109 --without-graphite2 \
110 --with-html-dir=%{_gtkdocdir} \
117 rm -rf $RPM_BUILD_ROOT
120 DESTDIR=$RPM_BUILD_ROOT
122 install -d $RPM_BUILD_ROOT%{_dlldir}
123 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
126 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
127 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
130 %{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}
133 rm -rf $RPM_BUILD_ROOT
136 %defattr(644,root,root,755)
137 %doc COPYING ChangeLog README TODO
138 %{_libdir}/libharfbuzz.dll.a
139 %{_libdir}/libharfbuzz.la
140 %{_includedir}/harfbuzz
141 %{_pkgconfigdir}/harfbuzz.pc
144 %defattr(644,root,root,755)
145 %{_libdir}/libharfbuzz.a
148 %defattr(644,root,root,755)
149 %{_dlldir}/libharfbuzz-*.dll