1 %define realname fontconfig
2 Summary: Font configuration and customization tools - cross MinGW32 versoin
3 Summary(pl.UTF-8): Narzędzia do konfigurowania fontów - wersja skrośna dla MinGW32
4 Name: crossmingw32-%{realname}
8 Group: Development/Libraries
9 Source0: http://fontconfig.org/release/%{realname}-%{version}.tar.gz
10 # Source0-md5: c94e380eea42f2f23ca9537035ef1899
11 Patch0: %{realname}-blacklist.patch
12 Patch1: %{realname}-bitstream-cyberbit.patch
13 URL: http://fontconfig.org/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: crossmingw32-expat
17 BuildRequires: crossmingw32-freetype >= 2.1.5
18 BuildRequires: crossmingw32-gcc
19 BuildRequires: libtool
20 BuildRequires: pkgconfig >= 1:0.15
21 Requires: crossmingw32-expat
22 Requires: crossmingw32-freetype >= 2.1.5
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define no_install_post_strip 1
27 %define target i386-mingw32
28 %define target_platform i386-pc-mingw32
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++
39 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
42 # -z options are invalid for mingw linker
43 %define filterout_ld -Wl,-z,.*
46 Fontconfig is designed to locate fonts within the system and select
47 them according to requirements specified by applications.
49 This package contains the cross version for Win32.
51 %description -l pl.UTF-8
52 Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
53 systemie i wybierania ich w zależności od potrzeb aplikacji.
55 Paket ten zawiera wersję skrośną dla Win32.
58 Summary: Static freetype library (cross MinGW32 version)
59 Summary(pl.UTF-8): Statyczna biblioteka freetype (wersja skrośna MinGW32)
60 Group: Development/Libraries
61 Requires: %{name} = %{version}-%{release}
64 Static freetype library (cross MinGW32 version).
66 %description static -l pl.UTF-8
67 Statyczna biblioteka freetype (wersja skrośna MinGW32).
70 Summary: DLL freetype library for Windows
71 Summary(pl.UTF-8): Biblioteka DLL freetype dla Windows
72 Group: Applications/Emulators
73 Requires: crossmingw32-expat-dll
74 Requires: crossmingw32-freetype-dll >= 2.1.5
78 DLL freetype library for Windows.
80 %description dll -l pl.UTF-8
81 Biblioteka DLL freetype dla Windows.
84 %setup -q -n %{realname}-%{version}
89 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
98 --with-arch=%{target} \
99 --with-freetype-config="pkg-config freetype2" \
101 --disable-silent-rules
106 rm -rf $RPM_BUILD_ROOT
108 %{__make} -j1 install \
109 DESTDIR=$RPM_BUILD_ROOT
111 install -d $RPM_BUILD_ROOT%{_dlldir}
112 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
115 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
116 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
120 %{__rm} -r $RPM_BUILD_ROOT/etc/fonts \
121 $RPM_BUILD_ROOT%{_datadir}/{fontconfig,xml/fontconfig}
124 rm -rf $RPM_BUILD_ROOT
127 %defattr(644,root,root,755)
128 %doc AUTHORS COPYING ChangeLog README
129 %{_libdir}/libfontconfig.dll.a
130 %{_libdir}/libfontconfig.la
131 %{_libdir}/fontconfig.def
132 %dir %{_includedir}/fontconfig
133 %{_includedir}/fontconfig/*.h
134 %{_pkgconfigdir}/fontconfig.pc
137 %defattr(644,root,root,755)
138 %{_libdir}/libfontconfig.a
141 %defattr(644,root,root,755)
142 %{_dlldir}/libfontconfig-*.dll