]>
Commit | Line | Data |
---|---|---|
210c62f9 | 1 | %define realname fontconfig |
932e0601 | 2 | Summary: Font configuration and customization tools - cross MinGW32 version |
770b3887 | 3 | Summary(pl.UTF-8): Narzędzia do konfigurowania fontów - wersja skrośna dla MinGW32 |
210c62f9 | 4 | Name: crossmingw32-%{realname} |
42dd7eaa JB |
5 | Version: 2.14.0 |
6 | Release: 1 | |
6145ff55 | 7 | License: MIT |
2279380a | 8 | Group: Development/Libraries |
42dd7eaa JB |
9 | Source0: https://www.freedesktop.org/software/fontconfig/release/%{realname}-%{version}.tar.xz |
10 | # Source0-md5: e12700a9d522bdfec06b6b7e72646987 | |
5efa4a16 | 11 | Patch0: %{realname}-bitstream-cyberbit.patch |
6145ff55 | 12 | URL: http://fontconfig.org/ |
63eafe20 | 13 | BuildRequires: autoconf >= 2.61 |
1e50c018 | 14 | BuildRequires: automake >= 1:1.11 |
6145ff55 | 15 | BuildRequires: crossmingw32-expat |
388f89f1 | 16 | BuildRequires: crossmingw32-freetype >= 2.8.1 |
2279380a | 17 | BuildRequires: crossmingw32-gcc |
388f89f1 | 18 | BuildRequires: gettext-tools >= 0.19.8 |
8bd31c8b | 19 | BuildRequires: libtool >= 2:2.2 |
c16afa79 | 20 | BuildRequires: pkgconfig >= 1:0.15 |
c77e5fc8 | 21 | BuildRequires: sed >= 4.0 |
2279380a | 22 | Requires: crossmingw32-expat |
388f89f1 | 23 | Requires: crossmingw32-freetype >= 2.8.1 |
6145ff55 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %define no_install_post_strip 1 | |
e1aa7965 | 27 | %define _enable_debug_packages 0 |
6145ff55 | 28 | |
29 | %define target i386-mingw32 | |
30 | %define target_platform i386-pc-mingw32 | |
6145ff55 | 31 | |
32 | %define _sysprefix /usr | |
33 | %define _prefix %{_sysprefix}/%{target} | |
5dbd50b4 JB |
34 | %define _libdir %{_prefix}/lib |
35 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
2279380a | 36 | %define _dlldir /usr/share/wine/windows/system |
6145ff55 | 37 | %define __cc %{target}-gcc |
38 | %define __cxx %{target}-g++ | |
20a217ae | 39 | %define __pkgconfig_provides %{nil} |
f205dcde | 40 | %define __pkgconfig_requires %{nil} |
6145ff55 | 41 | |
4dd4b193 JB |
42 | %ifnarch %{ix86} |
43 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
44 | %define optflags -O2 | |
45 | %endif | |
c839221c | 46 | # -z options are invalid for mingw linker, most of -f options are Linux-specific |
4dd4b193 | 47 | %define filterout_ld -Wl,-z,.* |
c839221c | 48 | %define filterout_c -f[-a-z0-9=]* |
4dd4b193 | 49 | |
6145ff55 | 50 | %description |
51 | Fontconfig is designed to locate fonts within the system and select | |
52 | them according to requirements specified by applications. | |
53 | ||
2279380a | 54 | This package contains the cross version for Win32. |
6145ff55 | 55 | |
56 | %description -l pl.UTF-8 | |
57 | Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w | |
58 | systemie i wybierania ich w zależności od potrzeb aplikacji. | |
59 | ||
2279380a JB |
60 | Paket ten zawiera wersję skrośną dla Win32. |
61 | ||
62 | %package static | |
770b3887 JB |
63 | Summary: Static freetype library (cross MinGW32 version) |
64 | Summary(pl.UTF-8): Statyczna biblioteka freetype (wersja skrośna MinGW32) | |
2279380a JB |
65 | Group: Development/Libraries |
66 | Requires: %{name} = %{version}-%{release} | |
67 | ||
68 | %description static | |
770b3887 | 69 | Static freetype library (cross MinGW32 version). |
2279380a JB |
70 | |
71 | %description static -l pl.UTF-8 | |
770b3887 | 72 | Statyczna biblioteka freetype (wersja skrośna MinGW32). |
6145ff55 | 73 | |
2279380a JB |
74 | %package dll |
75 | Summary: DLL freetype library for Windows | |
76 | Summary(pl.UTF-8): Biblioteka DLL freetype dla Windows | |
77 | Group: Applications/Emulators | |
78 | Requires: crossmingw32-expat-dll | |
388f89f1 | 79 | Requires: crossmingw32-freetype-dll >= 2.8.1 |
2279380a | 80 | Requires: wine |
6145ff55 | 81 | |
2279380a JB |
82 | %description dll |
83 | DLL freetype library for Windows. | |
84 | ||
85 | %description dll -l pl.UTF-8 | |
86 | Biblioteka DLL freetype dla Windows. | |
6145ff55 | 87 | |
88 | %prep | |
210c62f9 | 89 | %setup -q -n %{realname}-%{version} |
db2135b4 | 90 | %patch0 -p1 |
c77e5fc8 | 91 | |
6145ff55 | 92 | %build |
c16afa79 | 93 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
388f89f1 | 94 | %{__gettextize} |
6145ff55 | 95 | %{__libtoolize} |
63eafe20 | 96 | %{__aclocal} -I m4 |
6145ff55 | 97 | %{__autoconf} |
98 | %{__autoheader} | |
99 | %{__automake} | |
100 | %configure \ | |
6145ff55 | 101 | --target=%{target} \ |
9702f257 | 102 | --host=%{target} \ |
103 | --with-arch=%{target} \ | |
6749a5ab JB |
104 | --with-freetype-config="pkg-config freetype2" \ |
105 | --disable-docs \ | |
f8b07cf4 JB |
106 | --disable-silent-rules \ |
107 | --enable-static | |
6145ff55 | 108 | |
109 | %{__make} | |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
6145ff55 | 113 | |
f8b07cf4 | 114 | # fc_cachedir=/dummy is to avoid creating ${DESTDIR}LOCAL_APPDATA_FONTCONFIG_CACHE dir |
1ba03cbc | 115 | %{__make} -j1 install \ |
f8b07cf4 JB |
116 | DESTDIR=$RPM_BUILD_ROOT \ |
117 | fc_cachedir=/dummy | |
6145ff55 | 118 | |
2279380a | 119 | install -d $RPM_BUILD_ROOT%{_dlldir} |
388f89f1 | 120 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} |
2279380a JB |
121 | |
122 | %if 0%{!?debug:1} | |
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 | |
125 | %endif | |
126 | ||
2279380a | 127 | # runtime |
79c66389 | 128 | %{__rm} -r $RPM_BUILD_ROOT/etc/fonts \ |
388f89f1 JB |
129 | $RPM_BUILD_ROOT%{_datadir}/{fontconfig,locale,xml/fontconfig} |
130 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/fc-*.exe | |
131 | # if needed, use ITS data from native package | |
132 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/gettext/its | |
6145ff55 | 133 | |
134 | %clean | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
6145ff55 | 137 | %files |
138 | %defattr(644,root,root,755) | |
2279380a JB |
139 | %doc AUTHORS COPYING ChangeLog README |
140 | %{_libdir}/libfontconfig.dll.a | |
141 | %{_libdir}/libfontconfig.la | |
142 | %{_libdir}/fontconfig.def | |
9702f257 | 143 | %dir %{_includedir}/fontconfig |
144 | %{_includedir}/fontconfig/*.h | |
6145ff55 | 145 | %{_pkgconfigdir}/fontconfig.pc |
2279380a JB |
146 | |
147 | %files static | |
148 | %defattr(644,root,root,755) | |
149 | %{_libdir}/libfontconfig.a | |
150 | ||
151 | %files dll | |
152 | %defattr(644,root,root,755) | |
153 | %{_dlldir}/libfontconfig-*.dll |