]>
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 | |
08ddd3b1 | 4 | Version: 1.0.1 |
6f6a2adf | 5 | Release: 1 |
457aa3ee JB |
6 | License: MIT |
7 | Group: Development/Libraries | |
8 | Source0: http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-%{version}.tar.bz2 | |
08ddd3b1 | 9 | # Source0-md5: b9c144965dfde96672a7c6bdd4f9bf64 |
457aa3ee | 10 | URL: http://www.freedesktop.org/wiki/HarfBuzz |
15a364e6 | 11 | BuildRequires: autoconf >= 2.64 |
d1ab3879 | 12 | BuildRequires: automake >= 1:1.13 |
a278f832 JB |
13 | # cairo is used only for utilities, which are not packaged |
14 | #BuildRequires: crossmingw32-cairo >= 1.8.0 | |
08ddd3b1 | 15 | BuildRequires: crossmingw32-freetype >= 2.4.2 |
457aa3ee JB |
16 | BuildRequires: crossmingw32-glib2 >= 2.16 |
17 | BuildRequires: crossmingw32-gcc-c++ | |
15a364e6 | 18 | BuildRequires: libtool >= 2:2.2 |
a2a964b7 | 19 | BuildRequires: pkgconfig >= 1:0.20 |
08ddd3b1 | 20 | Requires: crossmingw32-freetype >= 2.4.2 |
457aa3ee JB |
21 | Requires: crossmingw32-glib2 >= 2.16 |
22 | Requires: crossmingw32-gcc-c++ | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | # see <harfbuzz/internal/ftserv.h>, the real horror | |
26 | %define specflags -fno-strict-aliasing | |
27 | ||
28 | %define no_install_post_strip 1 | |
29 | ||
30 | %define target i386-mingw32 | |
31 | %define target_platform i386-pc-mingw32 | |
32 | ||
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++ | |
16d7336b | 40 | %define __pkgconfig_provides %{nil} |
94aebac6 | 41 | %define __pkgconfig_requires %{nil} |
457aa3ee JB |
42 | |
43 | %ifnarch %{ix86} | |
44 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
45 | %define optflags -O2 | |
46 | %endif | |
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=]* | |
51 | ||
52 | %description | |
53 | Internationalized OpenType text layout and rendering library. | |
54 | ||
55 | This package contains the cross version for Win32. | |
56 | ||
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. | |
60 | ||
61 | Ten pakiet zawiera wersję skrośną dla Win32. | |
62 | ||
63 | %package static | |
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} | |
68 | ||
69 | %description static | |
70 | Static harfbuzz library (cross MinGW32 version). | |
71 | ||
72 | %description static -l pl.UTF-8 | |
73 | Statyczna biblioteka harfbuzz (wersja skrośna MinGW32). | |
74 | ||
75 | %package dll | |
76 | Summary: DLL harfbuzz library for Windows | |
77 | Summary(pl.UTF-8): Biblioteka DLL harfbuzz dla Windows | |
78 | Group: Applications/Emulators | |
08ddd3b1 | 79 | Requires: crossmingw32-freetype-dll >= 2.4.2 |
457aa3ee JB |
80 | Requires: crossmingw32-glib2-dll >= 2.16 |
81 | Requires: wine | |
82 | ||
83 | %description dll | |
84 | DLL harfbuzz library for Windows. | |
85 | ||
86 | %description dll -l pl.UTF-8 | |
87 | Biblioteka DLL harfbuzz dla Windows. | |
88 | ||
89 | %prep | |
90 | %setup -q -n harfbuzz-%{version} | |
91 | ||
92 | %build | |
15a364e6 JB |
93 | %{__libtoolize} |
94 | %{__aclocal} -I m4 | |
95 | %{__autoconf} | |
96 | %{__autoheader} | |
97 | %{__automake} | |
457aa3ee JB |
98 | export PKG_CONFIG_LIBDIR=%{_pkgconfigdir} |
99 | %configure \ | |
100 | --target=%{target} \ | |
101 | --build=i686-pc-linux-gnu \ | |
102 | --host=%{target} \ | |
2bcfc9b2 | 103 | --disable-gtk-doc \ |
457aa3ee | 104 | --disable-silent-rules \ |
15a364e6 | 105 | --enable-static \ |
a278f832 | 106 | --without-cairo \ |
15a364e6 JB |
107 | --with-freetype \ |
108 | --with-glib \ | |
109 | --without-graphite2 \ | |
2bcfc9b2 | 110 | --with-html-dir=%{_gtkdocdir} \ |
15a364e6 JB |
111 | --without-icu \ |
112 | --with-uniscribe | |
457aa3ee JB |
113 | |
114 | %{__make} | |
115 | ||
116 | %install | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
15a364e6 | 119 | %{__make} install \ |
457aa3ee JB |
120 | DESTDIR=$RPM_BUILD_ROOT |
121 | ||
122 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
123 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
124 | ||
125 | %if 0%{!?debug:1} | |
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 | |
128 | %endif | |
129 | ||
2bcfc9b2 JB |
130 | %{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir} |
131 | ||
457aa3ee JB |
132 | %clean |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %files | |
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 | |
142 | ||
143 | %files static | |
144 | %defattr(644,root,root,755) | |
145 | %{_libdir}/libharfbuzz.a | |
146 | ||
147 | %files dll | |
148 | %defattr(644,root,root,755) | |
149 | %{_dlldir}/libharfbuzz-*.dll |