]> git.pld-linux.org Git - packages/crossmingw32-harfbuzz.git/blame - crossmingw32-harfbuzz.spec
- updated to 0.9.9
[packages/crossmingw32-harfbuzz.git] / crossmingw32-harfbuzz.spec
CommitLineData
457aa3ee
JB
1Summary: HarfBuzz - internationalized text shaping library - MinGW32 cross version
2Summary(pl.UTF-8): Rasteryzer fontów TrueType - wersja skrośna dla MinGW32
3Name: crossmingw32-harfbuzz
6b3eee43 4Version: 0.9.9
457aa3ee
JB
5Release: 1
6License: MIT
7Group: Development/Libraries
8Source0: http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-%{version}.tar.bz2
6b3eee43 9# Source0-md5: e901ffe556d706b7d43b272f83be7f09
457aa3ee
JB
10URL: http://www.freedesktop.org/wiki/HarfBuzz
11BuildRequires: crossmingw32-cairo >= 1.8.0
12BuildRequires: crossmingw32-freetype >= 2.3.8
13BuildRequires: crossmingw32-glib2 >= 2.16
14BuildRequires: crossmingw32-gcc-c++
a2a964b7 15BuildRequires: pkgconfig >= 1:0.20
457aa3ee
JB
16Requires: crossmingw32-cairo >= 1.8.0
17Requires: crossmingw32-freetype >= 2.3.8
18Requires: crossmingw32-glib2 >= 2.16
19Requires: crossmingw32-gcc-c++
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22# see <harfbuzz/internal/ftserv.h>, the real horror
23%define specflags -fno-strict-aliasing
24
25%define no_install_post_strip 1
26
27%define target i386-mingw32
28%define target_platform i386-pc-mingw32
29
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++
37
38%ifnarch %{ix86}
39# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
40%define optflags -O2
41%endif
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=]*
46
47%description
48Internationalized OpenType text layout and rendering library.
49
50This package contains the cross version for Win32.
51
52%description -l pl.UTF-8
53Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType,
54obsługująca wiele języków.
55
56Ten pakiet zawiera wersję skrośną dla Win32.
57
58%package static
59Summary: Static harfbuzz library (cross MinGW32 version)
60Summary(pl.UTF-8): Statyczna biblioteka harfbuzz (wersja skrośna MinGW32)
61Group: Development/Libraries
62Requires: %{name} = %{version}-%{release}
63
64%description static
65Static harfbuzz library (cross MinGW32 version).
66
67%description static -l pl.UTF-8
68Statyczna biblioteka harfbuzz (wersja skrośna MinGW32).
69
70%package dll
71Summary: DLL harfbuzz library for Windows
72Summary(pl.UTF-8): Biblioteka DLL harfbuzz dla Windows
73Group: Applications/Emulators
74Requires: crossmingw32-cairo-dll >= 1.8.0
75Requires: crossmingw32-freetype-dll >= 2.3.8
76Requires: crossmingw32-glib2-dll >= 2.16
77Requires: wine
78
79%description dll
80DLL harfbuzz library for Windows.
81
82%description dll -l pl.UTF-8
83Biblioteka DLL harfbuzz dla Windows.
84
85%prep
86%setup -q -n harfbuzz-%{version}
87
88%build
89export PKG_CONFIG_LIBDIR=%{_pkgconfigdir}
90%configure \
91 --target=%{target} \
92 --build=i686-pc-linux-gnu \
93 --host=%{target} \
94 --disable-silent-rules \
95 --enable-static
96
97%{__make}
98
99%install
100rm -rf $RPM_BUILD_ROOT
101
6b3eee43
JB
102# parallel install broken (hb-version.h both in pkginclude_HEADERS and
103# nodist_pkginclude_HEADERS)
104%{__make} -j1 install \
457aa3ee
JB
105 DESTDIR=$RPM_BUILD_ROOT
106
107install -d $RPM_BUILD_ROOT%{_dlldir}
108mv -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
116rm -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
This page took 0.10571 seconds and 4 git commands to generate.