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: d69aa42da134038d2145d8f31a085620
11 Patch0: %{realname}-bitstream-cyberbit.patch
12 URL: http://fontconfig.org/
13 BuildRequires: autoconf >= 2.61
14 BuildRequires: automake
15 BuildRequires: crossmingw32-expat
16 BuildRequires: crossmingw32-freetype >= 2.1.5
17 BuildRequires: crossmingw32-gcc
18 BuildRequires: libtool
19 BuildRequires: pkgconfig >= 1:0.15
20 Requires: crossmingw32-expat
21 Requires: crossmingw32-freetype >= 2.1.5
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define no_install_post_strip 1
26 %define target i386-mingw32
27 %define target_platform i386-pc-mingw32
29 %define _sysprefix /usr
30 %define _prefix %{_sysprefix}/%{target}
31 %define _libdir %{_prefix}/lib
32 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
33 %define _dlldir /usr/share/wine/windows/system
34 %define __cc %{target}-gcc
35 %define __cxx %{target}-g++
36 %define __pkgconfig_provides %{nil}
37 %define __pkgconfig_requires %{nil}
40 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
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=]*
48 Fontconfig is designed to locate fonts within the system and select
49 them according to requirements specified by applications.
51 This package contains the cross version for Win32.
53 %description -l pl.UTF-8
54 Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
55 systemie i wybierania ich w zależności od potrzeb aplikacji.
57 Paket ten zawiera wersję skrośną dla Win32.
60 Summary: Static freetype library (cross MinGW32 version)
61 Summary(pl.UTF-8): Statyczna biblioteka freetype (wersja skrośna MinGW32)
62 Group: Development/Libraries
63 Requires: %{name} = %{version}-%{release}
66 Static freetype library (cross MinGW32 version).
68 %description static -l pl.UTF-8
69 Statyczna biblioteka freetype (wersja skrośna MinGW32).
72 Summary: DLL freetype library for Windows
73 Summary(pl.UTF-8): Biblioteka DLL freetype dla Windows
74 Group: Applications/Emulators
75 Requires: crossmingw32-expat-dll
76 Requires: crossmingw32-freetype-dll >= 2.1.5
80 DLL freetype library for Windows.
82 %description dll -l pl.UTF-8
83 Biblioteka DLL freetype dla Windows.
86 %setup -q -n %{realname}-%{version}
90 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
99 --with-arch=%{target} \
100 --with-freetype-config="pkg-config freetype2" \
102 --disable-silent-rules
107 rm -rf $RPM_BUILD_ROOT
109 %{__make} -j1 install \
110 DESTDIR=$RPM_BUILD_ROOT
112 install -d $RPM_BUILD_ROOT%{_dlldir}
113 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
116 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
117 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
121 %{__rm} -r $RPM_BUILD_ROOT/etc/fonts \
122 $RPM_BUILD_ROOT%{_datadir}/{fontconfig,xml/fontconfig}
125 rm -rf $RPM_BUILD_ROOT
128 %defattr(644,root,root,755)
129 %doc AUTHORS COPYING ChangeLog README
130 %{_libdir}/libfontconfig.dll.a
131 %{_libdir}/libfontconfig.la
132 %{_libdir}/fontconfig.def
133 %dir %{_includedir}/fontconfig
134 %{_includedir}/fontconfig/*.h
135 %{_pkgconfigdir}/fontconfig.pc
138 %defattr(644,root,root,755)
139 %{_libdir}/libfontconfig.a
142 %defattr(644,root,root,755)
143 %{_dlldir}/libfontconfig-*.dll