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 v1.1
12 Group: Development/Libraries
13 Source0: http://cairographics.org/releases/%{realname}-%{version}.tar.gz
14 # Source0-md5: 4e64139ef6f668df24450f3b81dd0771
15 Patch0: cairo-link.patch
16 URL: http://cairographics.org/
17 BuildRequires: autoconf >= 2.58
18 BuildRequires: automake >= 1:1.8
19 BuildRequires: crossmingw32-fontconfig
20 BuildRequires: crossmingw32-freetype >= 2.3.0
21 %{?with_glitz:BuildRequires: crossmingw32-glitz >= 0.5.1}
22 BuildRequires: crossmingw32-libpng
23 BuildRequires: crossmingw32-pixman >= 0.12.0
24 BuildRequires: crossmingw32-zlib
25 BuildRequires: libtool
26 BuildRequires: pkgconfig >= 1:0.15
27 Requires: crossmingw32-fontconfig
28 Requires: crossmingw32-freetype >= 2.3.0
29 %{?with_glitz:Requires: crossmingw32-glitz >= 0.5.1}
30 Requires: crossmingw32-libpng
31 Requires: crossmingw32-pixman >= 0.12.0
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 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
51 # -z options are invalid for mingw linker
52 %define filterout_ld -Wl,-z,.*
55 Cairo provides anti-aliased vector-based rendering for X. Paths
56 consist of line segments and cubic splines and can be rendered at any
57 width with various join and cap styles. All colors may be specified
58 with optional translucence (opacity/alpha) and combined using the
59 extended Porter/Duff compositing algebra as found in the X Render
62 Cairo exports a stateful rendering API similar in spirit to the path
63 construction, text, and painting operators of PostScript, (with the
64 significant addition of translucence in the imaging model). When
65 complete, the API is intended to support the complete imaging model of
68 This package contains the cross version for Win32.
70 %description -l pl.UTF-8
71 Cairo obsługuje oparty na wektorach rendering z antyaliasingiem dla X.
72 Ścieżki składają się z odcinków i splajnów kubicznych, a renderowane
73 mogą być z dowolną grubością i różnymi stylami połączeń i zakończeń.
74 Wszystkie kolory mogą być podane z opcjonalną półprzezroczystością
75 (podaną przez współczynnik nieprzezroczystości lub alpha) i łączone
76 przy użyciu rozszerzonego algorytmu składania Portera-Duffa, który
77 można znaleźć w rozszerzeniu X Render.
79 Cairo eksportuje stanowe API renderujące w duchu podobne do operatorów
80 konstruowania ścieżek, tekstu i rysowania z PostScriptu (ze znacznym
81 dodatkiem półprzezroczystości w modelu obrazu). Kiedy API zostanie
82 ukończone, ma obsługiwać pełny model obrazu z PDF w wersji 1.4.
84 Ten pakiet zawiera wersję skrośną dla Win32.
87 Summary: Static Cairo library (cross mingw32 version)
88 Summary(pl.UTF-8): Statyczna biblioteka Cairo (wersja skrośna mingw32)
89 Group: Development/Libraries
90 Requires: %{name} = %{version}-%{release}
93 Static Cairo library (cross mingw32 version).
95 %description static -l pl.UTF-8
96 Statyczna biblioteka Cairo (wersja skrośna mingw32).
99 Summary: DLL Cairo library for Windows
100 Summary(pl.UTF-8): Biblioteka DLL Cairo dla Windows
101 Group: Applications/Emulators
102 Requires: crossmingw32-fontconfig-dll
103 Requires: crossmingw32-freetype-dll >= 2.3.0
104 %{?with_glitz:Requires: crossmingw32-glitz-dll >= 0.5.1}
105 Requires: crossmingw32-libpng-dll
106 Requires: crossmingw32-pixman-dll >= 0.12.0
109 DLL Cairo library for Windows.
111 %description dll -l pl.UTF-8
112 Biblioteka DLL Cairo dla Windows.
115 %setup -q -n %{realname}-%{version}
119 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
121 %{__aclocal} -I build
126 lt_cv_deplibs_check_method=pass_all \
131 --disable-xlib-render \
133 %{?with_glitz:--enable-glitz} \
142 rm -rf $RPM_BUILD_ROOT
145 DESTDIR=$RPM_BUILD_ROOT
147 install -d $RPM_BUILD_ROOT%{_dlldir}
148 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
151 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
152 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
155 rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
158 rm -rf $RPM_BUILD_ROOT
161 %defattr(644,root,root,755)
162 # COPYING contains only notes, not LGPL/MPL texts
163 %doc AUTHORS COPYING ChangeLog NEWS README
164 %{_libdir}/libcairo.dll.a
165 %{_libdir}/libcairo.la
167 %{_pkgconfigdir}/cairo.pc
168 %{_pkgconfigdir}/cairo-ft.pc
169 %{_pkgconfigdir}/cairo-pdf.pc
170 %{_pkgconfigdir}/cairo-png.pc
171 %{_pkgconfigdir}/cairo-ps.pc
172 %{_pkgconfigdir}/cairo-svg.pc
173 %{_pkgconfigdir}/cairo-win32.pc
174 %{_pkgconfigdir}/cairo-win32-font.pc
177 %defattr(644,root,root,755)
178 %{_libdir}/libcairo.a
181 %defattr(644,root,root,755)
182 %{_dlldir}/libcairo-*.dll