]>
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 | |
c811daa2 | 4 | Version: 0.9.8 |
457aa3ee JB |
5 | Release: 1 |
6 | License: MIT | |
7 | Group: Development/Libraries | |
8 | Source0: http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-%{version}.tar.bz2 | |
c811daa2 JB |
9 | # Source0-md5: 13b569f0acedbdb6ffe1fb8fbb4914cc |
10 | Patch0: harfbuzz-void.patch | |
457aa3ee JB |
11 | URL: http://www.freedesktop.org/wiki/HarfBuzz |
12 | BuildRequires: crossmingw32-cairo >= 1.8.0 | |
13 | BuildRequires: crossmingw32-freetype >= 2.3.8 | |
14 | BuildRequires: crossmingw32-glib2 >= 2.16 | |
15 | BuildRequires: crossmingw32-gcc-c++ | |
a2a964b7 | 16 | BuildRequires: pkgconfig >= 1:0.20 |
457aa3ee JB |
17 | Requires: crossmingw32-cairo >= 1.8.0 |
18 | Requires: crossmingw32-freetype >= 2.3.8 | |
19 | Requires: crossmingw32-glib2 >= 2.16 | |
20 | Requires: crossmingw32-gcc-c++ | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | # see <harfbuzz/internal/ftserv.h>, the real horror | |
24 | %define specflags -fno-strict-aliasing | |
25 | ||
26 | %define no_install_post_strip 1 | |
27 | ||
28 | %define target i386-mingw32 | |
29 | %define target_platform i386-pc-mingw32 | |
30 | ||
31 | %define _sysprefix /usr | |
32 | %define _prefix %{_sysprefix}/%{target} | |
33 | %define _libdir %{_prefix}/lib | |
34 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
35 | %define _dlldir /usr/share/wine/windows/system | |
36 | %define __cc %{target}-gcc | |
37 | %define __cxx %{target}-g++ | |
38 | ||
39 | %ifnarch %{ix86} | |
40 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
41 | %define optflags -O2 | |
42 | %endif | |
43 | # -z options are invalid for mingw linker, most of -f options are Linux-specific | |
44 | %define filterout_ld -Wl,-z,.* | |
45 | %define filterout_c -f[-a-z0-9=]* | |
46 | %define filterout_cxx -f[-a-z0-9=]* | |
47 | ||
48 | %description | |
49 | Internationalized OpenType text layout and rendering library. | |
50 | ||
51 | This package contains the cross version for Win32. | |
52 | ||
53 | %description -l pl.UTF-8 | |
54 | Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType, | |
55 | obsługująca wiele języków. | |
56 | ||
57 | Ten pakiet zawiera wersję skrośną dla Win32. | |
58 | ||
59 | %package static | |
60 | Summary: Static harfbuzz library (cross MinGW32 version) | |
61 | Summary(pl.UTF-8): Statyczna biblioteka harfbuzz (wersja skrośna MinGW32) | |
62 | Group: Development/Libraries | |
63 | Requires: %{name} = %{version}-%{release} | |
64 | ||
65 | %description static | |
66 | Static harfbuzz library (cross MinGW32 version). | |
67 | ||
68 | %description static -l pl.UTF-8 | |
69 | Statyczna biblioteka harfbuzz (wersja skrośna MinGW32). | |
70 | ||
71 | %package dll | |
72 | Summary: DLL harfbuzz library for Windows | |
73 | Summary(pl.UTF-8): Biblioteka DLL harfbuzz dla Windows | |
74 | Group: Applications/Emulators | |
75 | Requires: crossmingw32-cairo-dll >= 1.8.0 | |
76 | Requires: crossmingw32-freetype-dll >= 2.3.8 | |
77 | Requires: crossmingw32-glib2-dll >= 2.16 | |
78 | Requires: wine | |
79 | ||
80 | %description dll | |
81 | DLL harfbuzz library for Windows. | |
82 | ||
83 | %description dll -l pl.UTF-8 | |
84 | Biblioteka DLL harfbuzz dla Windows. | |
85 | ||
86 | %prep | |
87 | %setup -q -n harfbuzz-%{version} | |
c811daa2 | 88 | %patch0 -p1 |
457aa3ee JB |
89 | |
90 | %build | |
91 | export PKG_CONFIG_LIBDIR=%{_pkgconfigdir} | |
92 | %configure \ | |
93 | --target=%{target} \ | |
94 | --build=i686-pc-linux-gnu \ | |
95 | --host=%{target} \ | |
96 | --disable-silent-rules \ | |
97 | --enable-static | |
98 | ||
99 | %{__make} | |
100 | ||
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %{__make} install \ | |
105 | DESTDIR=$RPM_BUILD_ROOT | |
106 | ||
107 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
108 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
109 | ||
110 | %if 0%{!?debug:1} | |
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 | |
113 | %endif | |
114 | ||
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %files | |
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 | |
125 | ||
126 | %files static | |
127 | %defattr(644,root,root,755) | |
128 | %{_libdir}/libharfbuzz.a | |
129 | ||
130 | %files dll | |
131 | %defattr(644,root,root,755) | |
132 | %{_dlldir}/libharfbuzz-*.dll |