]>
Commit | Line | Data |
---|---|---|
6145ff55 | 1 | # |
6145ff55 | 2 | %define _realname fontconfig |
3 | Summary: Font configuration and customization tools - cross Mingw32 versoin | |
2279380a | 4 | Summary(pl.UTF-8): Narzędzia do konfigurowania fontów - wersja skrośna dla Mingw32 |
6145ff55 | 5 | Name: crossmingw32-%{_realname} |
6 | Version: 2.4.2 | |
7 | Release: 1 | |
8 | License: MIT | |
2279380a | 9 | Group: Development/Libraries |
6145ff55 | 10 | Source0: http://fontconfig.org/release/%{_realname}-%{version}.tar.gz |
11 | # Source0-md5: f035852f521b54677f2b5c9e2f6d54a4 | |
db2135b4 | 12 | Patch0: %{_realname}-blacklist.patch |
cd53326d | 13 | Patch1: %{_realname}-bitstream-cyberbit.patch |
6145ff55 | 14 | URL: http://fontconfig.org/ |
15 | BuildRequires: autoconf | |
16 | BuildRequires: automake | |
17 | BuildRequires: crossmingw32-expat | |
18 | BuildRequires: crossmingw32-freetype >= 2.1.5 | |
2279380a JB |
19 | BuildRequires: crossmingw32-gcc |
20 | BuildRequires: libtool | |
c16afa79 | 21 | BuildRequires: pkgconfig >= 1:0.15 |
2279380a | 22 | Requires: crossmingw32-expat |
6145ff55 | 23 | Requires: crossmingw32-freetype >= 2.1.5 |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %define no_install_post_strip 1 | |
27 | ||
28 | %define target i386-mingw32 | |
29 | %define target_platform i386-pc-mingw32 | |
6145ff55 | 30 | |
31 | %define _sysprefix /usr | |
32 | %define _prefix %{_sysprefix}/%{target} | |
6145ff55 | 33 | %define _pkgconfigdir %{_libdir}/pkgconfig |
2279380a | 34 | %define _dlldir /usr/share/wine/windows/system |
6145ff55 | 35 | %define __cc %{target}-gcc |
36 | %define __cxx %{target}-g++ | |
37 | ||
38 | %description | |
39 | Fontconfig is designed to locate fonts within the system and select | |
40 | them according to requirements specified by applications. | |
41 | ||
2279380a | 42 | This package contains the cross version for Win32. |
6145ff55 | 43 | |
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. | |
47 | ||
2279380a JB |
48 | Paket ten zawiera wersję skrośną dla Win32. |
49 | ||
50 | %package static | |
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} | |
55 | ||
56 | %description static | |
57 | Static freetype library (cross mingw32 version). | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczna biblioteka freetype (wersja skrośna mingw32). | |
6145ff55 | 61 | |
2279380a JB |
62 | %package dll |
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 | |
68 | Requires: wine | |
6145ff55 | 69 | |
2279380a JB |
70 | %description dll |
71 | DLL freetype library for Windows. | |
72 | ||
73 | %description dll -l pl.UTF-8 | |
74 | Biblioteka DLL freetype dla Windows. | |
6145ff55 | 75 | |
76 | %prep | |
77 | %setup -q -n %{_realname}-%{version} | |
db2135b4 | 78 | %patch0 -p1 |
db2135b4 | 79 | %patch1 -p1 |
6145ff55 | 80 | |
81 | %build | |
c16afa79 | 82 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
6145ff55 | 83 | %{__libtoolize} |
84 | %{__aclocal} | |
85 | %{__autoconf} | |
86 | %{__autoheader} | |
87 | %{__automake} | |
88 | %configure \ | |
6145ff55 | 89 | --target=%{target} \ |
9702f257 | 90 | --host=%{target} \ |
91 | --with-arch=%{target} \ | |
6145ff55 | 92 | --disable-docs |
93 | ||
94 | %{__make} | |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
6145ff55 | 98 | |
1ba03cbc | 99 | %{__make} -j1 install \ |
6145ff55 | 100 | DESTDIR=$RPM_BUILD_ROOT |
101 | ||
2279380a JB |
102 | install -d $RPM_BUILD_ROOT%{_dlldir} |
103 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
104 | ||
105 | %if 0%{!?debug:1} | |
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 | |
108 | %endif | |
109 | ||
110 | rm -rf $RPM_BUILD_ROOT%{_datadir}/man | |
111 | # runtime | |
112 | rm -rf $RPM_BUILD_ROOT/etc/fonts | |
6145ff55 | 113 | |
114 | %clean | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
6145ff55 | 117 | %files |
118 | %defattr(644,root,root,755) | |
2279380a JB |
119 | %doc AUTHORS COPYING ChangeLog README |
120 | %{_libdir}/libfontconfig.dll.a | |
121 | %{_libdir}/libfontconfig.la | |
122 | %{_libdir}/fontconfig.def | |
9702f257 | 123 | %dir %{_includedir}/fontconfig |
124 | %{_includedir}/fontconfig/*.h | |
6145ff55 | 125 | %{_pkgconfigdir}/fontconfig.pc |
2279380a JB |
126 | |
127 | %files static | |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/libfontconfig.a | |
130 | ||
131 | %files dll | |
132 | %defattr(644,root,root,755) | |
133 | %{_dlldir}/libfontconfig-*.dll |