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: ab54ec1d4ddd836313fdbc0cd5299d6d
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 Fontconfig is designed to locate fonts within the system and select
40 them according to requirements specified by applications.
42 This package contains the cross version for Win32.
44 %description -l pl.UTF-8
45 Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
46 systemie i wybierania ich w zależności od potrzeb aplikacji.
48 Paket ten zawiera wersję skrośną dla Win32.
51 Summary: Static freetype library (cross mingw32 version)
52 Summary(pl.UTF-8): Statyczna biblioteka freetype (wersja skrośna mingw32)
53 Group: Development/Libraries
54 Requires: %{name} = %{version}-%{release}
57 Static freetype library (cross mingw32 version).
59 %description static -l pl.UTF-8
60 Statyczna biblioteka freetype (wersja skrośna mingw32).
63 Summary: DLL freetype library for Windows
64 Summary(pl.UTF-8): Biblioteka DLL freetype dla Windows
65 Group: Applications/Emulators
66 Requires: crossmingw32-expat-dll
67 Requires: crossmingw32-freetype-dll >= 2.1.5
71 DLL freetype library for Windows.
73 %description dll -l pl.UTF-8
74 Biblioteka DLL freetype dla Windows.
77 %setup -q -n %{realname}-%{version}
82 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
91 --with-arch=%{target} \
97 rm -rf $RPM_BUILD_ROOT
99 %{__make} -j1 install \
100 DESTDIR=$RPM_BUILD_ROOT
102 install -d $RPM_BUILD_ROOT%{_dlldir}
103 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
106 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
107 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
110 rm -rf $RPM_BUILD_ROOT%{_datadir}/man
112 rm -rf $RPM_BUILD_ROOT/etc/fonts
115 rm -rf $RPM_BUILD_ROOT
118 %defattr(644,root,root,755)
119 %doc AUTHORS COPYING ChangeLog README
120 %{_libdir}/libfontconfig.dll.a
121 %{_libdir}/libfontconfig.la
122 %{_libdir}/fontconfig.def
123 %dir %{_includedir}/fontconfig
124 %{_includedir}/fontconfig/*.h
125 %{_pkgconfigdir}/fontconfig.pc
128 %defattr(644,root,root,755)
129 %{_libdir}/libfontconfig.a
132 %defattr(644,root,root,755)
133 %{_dlldir}/libfontconfig-*.dll