3 %bcond_with glitz # build with glitz backend
5 Summary: Cairo - multi-platform 2D graphics library - cross Mingw32 version
6 Summary(pl.UTF-8): Cairo - wieloplatformowa biblioteka graficzna 2D - skrośna wersja Mingw32
8 Name: crossmingw32-%{realname}
11 License: LGPL v2.1 or MPL 1.1
12 Group: Development/Libraries
13 Source0: http://cairographics.org/releases/%{realname}-%{version}.tar.gz
14 # Source0-md5: a198d509f9e3a35b78de8bb02174ebb9
15 Patch0: cairo-lt.patch
16 Patch1: cairo-am.patch
17 URL: http://cairographics.org/
18 BuildRequires: autoconf >= 2.58
19 BuildRequires: automake >= 1:1.8
20 BuildRequires: crossmingw32-fontconfig
21 BuildRequires: crossmingw32-freetype >= 2.1.10
22 %{?with_glitz:BuildRequires: crossmingw32-glitz >= 0.5.1}
23 BuildRequires: crossmingw32-libpng
24 BuildRequires: crossmingw32-pixman >= 0.10.0
25 BuildRequires: crossmingw32-zlib
26 BuildRequires: libtool
27 BuildRequires: pkgconfig >= 1:0.15
28 Requires: crossmingw32-fontconfig
29 Requires: crossmingw32-freetype >= 2.1.10
30 %{?with_glitz:Requires: crossmingw32-glitz >= 0.5.1}
31 Requires: crossmingw32-libpng
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define no_install_post_strip 1
36 %define target i386-mingw32
37 %define target_platform i386-pc-mingw32
39 %define _sysprefix /usr
40 %define _prefix %{_sysprefix}/%{target}
41 %define _libdir %{_prefix}/lib
42 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
43 %define _dlldir /usr/share/wine/windows/system
44 %define __cc %{target}-gcc
45 %define __cxx %{target}-g++
48 Cairo provides anti-aliased vector-based rendering for X. Paths
49 consist of line segments and cubic splines and can be rendered at any
50 width with various join and cap styles. All colors may be specified
51 with optional translucence (opacity/alpha) and combined using the
52 extended Porter/Duff compositing algebra as found in the X Render
55 Cairo exports a stateful rendering API similar in spirit to the path
56 construction, text, and painting operators of PostScript, (with the
57 significant addition of translucence in the imaging model). When
58 complete, the API is intended to support the complete imaging model of
61 This package contains the cross version for Win32.
63 %description -l pl.UTF-8
64 Cairo obsługuje oparty na wektorach rendering z antyaliasingiem dla X.
65 Ścieżki składają się z odcinków i splajnów kubicznych, a renderowane
66 mogą być z dowolną grubością i różnymi stylami połączeń i zakończeń.
67 Wszystkie kolory mogą być podane z opcjonalną półprzezroczystością
68 (podaną przez współczynnik nieprzezroczystości lub alpha) i łączone
69 przy użyciu rozszerzonego algorytmu składania Portera-Duffa, który
70 można znaleźć w rozszerzeniu X Render.
72 Cairo eksportuje stanowe API renderujące w duchu podobne do operatorów
73 konstruowania ścieżek, tekstu i rysowania z PostScriptu (ze znacznym
74 dodatkiem półprzezroczystości w modelu obrazu). Kiedy API zostanie
75 ukończone, ma obsługiwać pełny model obrazu z PDF w wersji 1.4.
77 Ten pakiet zawiera wersję skrośną dla Win32.
80 Summary: Static Cairo library (cross mingw32 version)
81 Summary(pl.UTF-8): Statyczna biblioteka Cairo (wersja skrośna mingw32)
82 Group: Development/Libraries
83 Requires: %{name} = %{version}-%{release}
86 Static Cairo library (cross mingw32 version).
88 %description static -l pl.UTF-8
89 Statyczna biblioteka Cairo (wersja skrośna mingw32).
92 Summary: DLL Cairo library for Windows
93 Summary(pl.UTF-8): Biblioteka DLL Cairo dla Windows
94 Group: Applications/Emulators
95 Requires: crossmingw32-fontconfig-dll
96 Requires: crossmingw32-freetype-dll >= 2.1.10
97 %{?with_glitz:Requires: crossmingw32-glitz-dll >= 0.5.1}
98 Requires: crossmingw32-libpng-dll
99 Requires: crossmingw32-pixman-dll >= 0.10.0
102 DLL Cairo library for Windows.
104 %description dll -l pl.UTF-8
105 Biblioteka DLL Cairo dla Windows.
108 %setup -q -n %{realname}-%{version}
113 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
120 lt_cv_deplibs_check_method=pass_all \
125 --disable-xlib-render \
127 %{?with_glitz:--enable-glitz} \
137 rm -rf $RPM_BUILD_ROOT
140 DESTDIR=$RPM_BUILD_ROOT
142 install -d $RPM_BUILD_ROOT%{_dlldir}
143 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
146 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
147 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
150 rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
153 rm -rf $RPM_BUILD_ROOT
156 %defattr(644,root,root,755)
157 # COPYING contains only notes, not LGPL/MPL texts
158 %doc AUTHORS COPYING ChangeLog NEWS README
159 %{_libdir}/libcairo.dll.a
160 %{_libdir}/libcairo.la
162 %{_pkgconfigdir}/cairo.pc
163 %{_pkgconfigdir}/cairo-ft.pc
164 %{_pkgconfigdir}/cairo-pdf.pc
165 %{_pkgconfigdir}/cairo-png.pc
166 %{_pkgconfigdir}/cairo-ps.pc
167 %{_pkgconfigdir}/cairo-svg.pc
168 %{_pkgconfigdir}/cairo-win32.pc
169 %{_pkgconfigdir}/cairo-win32-font.pc
172 %defattr(644,root,root,755)
173 %{_libdir}/libcairo.a
176 %defattr(644,root,root,755)
177 %{_dlldir}/libcairo-*.dll