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: https://www.freedesktop.org/software/fontconfig/release/%{realname}-%{version}.tar.bz2
10 # Source0-md5: 872f757ec180e8c51918ff39705c40de
11 Patch0: %{realname}-bitstream-cyberbit.patch
12 URL: http://fontconfig.org/
13 BuildRequires: autoconf >= 2.61
14 BuildRequires: automake >= 1:1.11
15 BuildRequires: crossmingw32-expat
16 BuildRequires: crossmingw32-freetype >= 2.1.5
17 BuildRequires: crossmingw32-gcc
18 BuildRequires: libtool >= 2:2.2
19 BuildRequires: pkgconfig >= 1:0.15
20 BuildRequires: sed >= 4.0
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++
37 %define __pkgconfig_provides %{nil}
38 %define __pkgconfig_requires %{nil}
41 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
44 # -z options are invalid for mingw linker, most of -f options are Linux-specific
45 %define filterout_ld -Wl,-z,.*
46 %define filterout_c -f[-a-z0-9=]*
49 Fontconfig is designed to locate fonts within the system and select
50 them according to requirements specified by applications.
52 This package contains the cross version for Win32.
54 %description -l pl.UTF-8
55 Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
56 systemie i wybierania ich w zależności od potrzeb aplikacji.
58 Paket ten zawiera wersję skrośną dla Win32.
61 Summary: Static freetype library (cross MinGW32 version)
62 Summary(pl.UTF-8): Statyczna biblioteka freetype (wersja skrośna MinGW32)
63 Group: Development/Libraries
64 Requires: %{name} = %{version}-%{release}
67 Static freetype library (cross MinGW32 version).
69 %description static -l pl.UTF-8
70 Statyczna biblioteka freetype (wersja skrośna MinGW32).
73 Summary: DLL freetype library for Windows
74 Summary(pl.UTF-8): Biblioteka DLL freetype dla Windows
75 Group: Applications/Emulators
76 Requires: crossmingw32-expat-dll
77 Requires: crossmingw32-freetype-dll >= 2.1.5
81 DLL freetype library for Windows.
83 %description dll -l pl.UTF-8
84 Biblioteka DLL freetype dla Windows.
87 %setup -q -n %{realname}-%{version}
90 # uses POSIX-specific dirent interfaces
91 %{__sed} -i -e 's/test-migration//' test/Makefile.am
94 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
103 --with-arch=%{target} \
104 --with-freetype-config="pkg-config freetype2" \
106 --disable-silent-rules \
112 rm -rf $RPM_BUILD_ROOT
114 # fc_cachedir=/dummy is to avoid creating ${DESTDIR}LOCAL_APPDATA_FONTCONFIG_CACHE dir
115 %{__make} -j1 install \
116 DESTDIR=$RPM_BUILD_ROOT \
119 install -d $RPM_BUILD_ROOT%{_dlldir}
120 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
123 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
124 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
128 %{__rm} -r $RPM_BUILD_ROOT/etc/fonts \
129 $RPM_BUILD_ROOT%{_datadir}/{fontconfig,xml/fontconfig}
132 rm -rf $RPM_BUILD_ROOT
135 %defattr(644,root,root,755)
136 %doc AUTHORS COPYING ChangeLog README
137 %{_libdir}/libfontconfig.dll.a
138 %{_libdir}/libfontconfig.la
139 %{_libdir}/fontconfig.def
140 %dir %{_includedir}/fontconfig
141 %{_includedir}/fontconfig/*.h
142 %{_pkgconfigdir}/fontconfig.pc
145 %defattr(644,root,root,755)
146 %{_libdir}/libfontconfig.a
149 %defattr(644,root,root,755)
150 %{_dlldir}/libfontconfig-*.dll