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.bz2
10 # Source0-md5: 824d000eb737af6e16c826dd3b2d6c90
11 Patch0: %{realname}-bitstream-cyberbit.patch
12 Patch1: %{realname}-mingw32.patch
13 URL: http://fontconfig.org/
14 BuildRequires: autoconf >= 2.61
15 BuildRequires: automake >= 1:1.11
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 BuildRequires: sed >= 4.0
22 Requires: crossmingw32-expat
23 Requires: crossmingw32-freetype >= 2.1.5
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define no_install_post_strip 1
28 %define target i386-mingw32
29 %define target_platform i386-pc-mingw32
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 %define __pkgconfig_provides %{nil}
39 %define __pkgconfig_requires %{nil}
42 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
45 # -z options are invalid for mingw linker, most of -f options are Linux-specific
46 %define filterout_ld -Wl,-z,.*
47 %define filterout_c -f[-a-z0-9=]*
50 Fontconfig is designed to locate fonts within the system and select
51 them according to requirements specified by applications.
53 This package contains the cross version for Win32.
55 %description -l pl.UTF-8
56 Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
57 systemie i wybierania ich w zależności od potrzeb aplikacji.
59 Paket ten zawiera wersję skrośną dla Win32.
62 Summary: Static freetype library (cross MinGW32 version)
63 Summary(pl.UTF-8): Statyczna biblioteka freetype (wersja skrośna MinGW32)
64 Group: Development/Libraries
65 Requires: %{name} = %{version}-%{release}
68 Static freetype library (cross MinGW32 version).
70 %description static -l pl.UTF-8
71 Statyczna biblioteka freetype (wersja skrośna MinGW32).
74 Summary: DLL freetype library for Windows
75 Summary(pl.UTF-8): Biblioteka DLL freetype dla Windows
76 Group: Applications/Emulators
77 Requires: crossmingw32-expat-dll
78 Requires: crossmingw32-freetype-dll >= 2.1.5
82 DLL freetype library for Windows.
84 %description dll -l pl.UTF-8
85 Biblioteka DLL freetype dla Windows.
88 %setup -q -n %{realname}-%{version}
92 # uses POSIX-specific dirent interfaces
93 %{__sed} -i -e 's/test-migration//' test/Makefile.am
96 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
105 --with-arch=%{target} \
106 --with-freetype-config="pkg-config freetype2" \
108 --disable-silent-rules \
114 rm -rf $RPM_BUILD_ROOT
116 # fc_cachedir=/dummy is to avoid creating ${DESTDIR}LOCAL_APPDATA_FONTCONFIG_CACHE dir
117 %{__make} -j1 install \
118 DESTDIR=$RPM_BUILD_ROOT \
121 install -d $RPM_BUILD_ROOT%{_dlldir}
122 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
125 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
126 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
130 %{__rm} -r $RPM_BUILD_ROOT/etc/fonts \
131 $RPM_BUILD_ROOT%{_datadir}/{fontconfig,xml/fontconfig}
134 rm -rf $RPM_BUILD_ROOT
137 %defattr(644,root,root,755)
138 %doc AUTHORS COPYING ChangeLog README
139 %{_libdir}/libfontconfig.dll.a
140 %{_libdir}/libfontconfig.la
141 %{_libdir}/fontconfig.def
142 %dir %{_includedir}/fontconfig
143 %{_includedir}/fontconfig/*.h
144 %{_pkgconfigdir}/fontconfig.pc
147 %defattr(644,root,root,755)
148 %{_libdir}/libfontconfig.a
151 %defattr(644,root,root,755)
152 %{_dlldir}/libfontconfig-*.dll