1 Summary: Cairo - multi-platform 2D graphics library - cross MinGW32 version
2 Summary(pl.UTF-8): Cairo - wieloplatformowa biblioteka graficzna 2D - skrośna wersja MinGW32
4 Name: crossmingw32-%{realname}
7 License: LGPL v2.1 or MPL v1.1
8 Group: Development/Libraries
9 Source0: http://cairographics.org/releases/%{realname}-%{version}.tar.gz
10 # Source0-md5: e6c85575ba7094f88b637bdfd835a751
11 Patch0: cairo-link.patch
12 Patch1: cairo-mingw32.patch
13 URL: http://cairographics.org/
14 BuildRequires: autoconf >= 2.59
15 BuildRequires: automake >= 1:1.9.6
16 BuildRequires: crossmingw32-fontconfig >= 2.2.95
17 BuildRequires: crossmingw32-freetype >= 2.3.0
18 BuildRequires: crossmingw32-glib2 >= 2.0
19 BuildRequires: crossmingw32-libpng
20 BuildRequires: crossmingw32-pixman >= 0.22.0
21 BuildRequires: crossmingw32-zlib
22 BuildRequires: libtool
23 BuildRequires: pkgconfig >= 1:0.15
24 Requires: crossmingw32-fontconfig >= 2.2.95
25 Requires: crossmingw32-freetype >= 2.3.0
26 Requires: crossmingw32-libpng
27 Requires: crossmingw32-pixman >= 0.22.0
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define no_install_post_strip 1
32 %define target i386-mingw32
33 %define target_platform i386-pc-mingw32
35 %define _sysprefix /usr
36 %define _prefix %{_sysprefix}/%{target}
37 %define _libdir %{_prefix}/lib
38 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
39 %define _dlldir /usr/share/wine/windows/system
40 %define __cc %{target}-gcc
41 %define __cxx %{target}-g++
44 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
47 # -z options are invalid for mingw linker
48 %define filterout_ld -Wl,-z,.*
51 Cairo provides anti-aliased vector-based rendering for X. Paths
52 consist of line segments and cubic splines and can be rendered at any
53 width with various join and cap styles. All colors may be specified
54 with optional translucence (opacity/alpha) and combined using the
55 extended Porter/Duff compositing algebra as found in the X Render
58 Cairo exports a stateful rendering API similar in spirit to the path
59 construction, text, and painting operators of PostScript, (with the
60 significant addition of translucence in the imaging model). When
61 complete, the API is intended to support the complete imaging model of
64 This package contains the cross version for Win32.
66 %description -l pl.UTF-8
67 Cairo obsługuje oparty na wektorach rendering z antyaliasingiem dla X.
68 Ścieżki składają się z odcinków i splajnów kubicznych, a renderowane
69 mogą być z dowolną grubością i różnymi stylami połączeń i zakończeń.
70 Wszystkie kolory mogą być podane z opcjonalną półprzezroczystością
71 (podaną przez współczynnik nieprzezroczystości lub alpha) i łączone
72 przy użyciu rozszerzonego algorytmu składania Portera-Duffa, który
73 można znaleźć w rozszerzeniu X Render.
75 Cairo eksportuje stanowe API renderujące w duchu podobne do operatorów
76 konstruowania ścieżek, tekstu i rysowania z PostScriptu (ze znacznym
77 dodatkiem półprzezroczystości w modelu obrazu). Kiedy API zostanie
78 ukończone, ma obsługiwać pełny model obrazu z PDF w wersji 1.4.
80 Ten pakiet zawiera wersję skrośną dla Win32.
83 Summary: Static Cairo library (cross MinGW32 version)
84 Summary(pl.UTF-8): Statyczna biblioteka Cairo (wersja skrośna MinGW32)
85 Group: Development/Libraries
86 Requires: %{name} = %{version}-%{release}
89 Static Cairo library (cross MinGW32 version).
91 %description static -l pl.UTF-8
92 Statyczna biblioteka Cairo (wersja skrośna MinGW32).
95 Summary: DLL Cairo library for Windows
96 Summary(pl.UTF-8): Biblioteka DLL Cairo dla Windows
97 Group: Applications/Emulators
98 Requires: crossmingw32-fontconfig-dll >= 2.2.95
99 Requires: crossmingw32-freetype-dll >= 2.3.0
100 Requires: crossmingw32-libpng-dll
101 Requires: crossmingw32-pixman-dll >= 0.22.0
104 DLL Cairo library for Windows.
106 %description dll -l pl.UTF-8
107 Biblioteka DLL Cairo dla Windows.
110 Summary: Cairo GObject functions library - cross MinGW32 version
111 Summary(pl.UTF-8): Biblioteka funkcji Cairo GObject - wersja skrośna MinGW32
112 Group: Development/Libraries
113 Requires: %{name} = %{version}-%{release}
114 Requires: crossmingw32-glib2 >= 2.0
117 Cairo GObject functions library - cross MinGW32 version.
119 %description gobject -l pl.UTF-8
120 Biblioteka funkcji Cairo GObject - wersja skrośna MinGW32.
122 %package gobject-static
123 Summary: Static Cairo GObject library (cross MinGW32 version)
124 Summary(pl.UTF-8): Statyczna biblioteka Cairo GObject (wersja skrośna MinGW32)
125 Group: Development/Libraries
126 Requires: %{name}-gobject = %{version}-%{release}
128 %description gobject-static
129 Static Cairo GObject library (cross MinGW32 version).
131 %description gobject-static -l pl.UTF-8
132 Statyczna biblioteka Cairo GObject (wersja skrośna MinGW32).
135 Summary: DLL Cairo GObject library for Windows
136 Summary(pl.UTF-8): Biblioteka DLL Cairo GObject dla Windows
137 Group: Applications/Emulators
138 Requires: %{name}-dll = %{version}-%{release}
139 Requires: crossmingw32-glib2-dll >= 2.0
141 %description gobject-dll
142 DLL Cairo GObject library for Windows.
144 %description gobject-dll -l pl.UTF-8
145 Biblioteka DLL Cairo GObject dla Windows.
148 %setup -q -n %{realname}-%{version}
153 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
155 %{__aclocal} -I build
160 CPPFLAGS="%{rpmcppflags} -Dffs=__builtin_ffs" \
161 lt_cv_deplibs_check_method=pass_all \
165 --disable-silent-rules \
167 --disable-xlib-render \
177 rm -rf $RPM_BUILD_ROOT
180 DESTDIR=$RPM_BUILD_ROOT
182 install -d $RPM_BUILD_ROOT%{_dlldir}
183 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
186 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
187 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
190 rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
193 rm -rf $RPM_BUILD_ROOT
196 %defattr(644,root,root,755)
197 # COPYING contains only notes, not LGPL/MPL texts
198 %doc AUTHORS COPYING ChangeLog NEWS README
199 %{_libdir}/libcairo.dll.a
200 %{_libdir}/libcairo.la
201 %{_libdir}/libcairo-script-interpreter.dll.a
202 %{_libdir}/libcairo-script-interpreter.la
204 %exclude %{_includedir}/cairo/cairo-gobject.h
205 %{_pkgconfigdir}/cairo.pc
206 %{_pkgconfigdir}/cairo-fc.pc
207 %{_pkgconfigdir}/cairo-ft.pc
208 %{_pkgconfigdir}/cairo-pdf.pc
209 %{_pkgconfigdir}/cairo-png.pc
210 %{_pkgconfigdir}/cairo-ps.pc
211 %{_pkgconfigdir}/cairo-script.pc
212 %{_pkgconfigdir}/cairo-svg.pc
213 %{_pkgconfigdir}/cairo-win32.pc
214 %{_pkgconfigdir}/cairo-win32-font.pc
217 %defattr(644,root,root,755)
218 %{_libdir}/libcairo.a
219 %{_libdir}/libcairo-script-interpreter.a
222 %defattr(644,root,root,755)
223 %{_dlldir}/libcairo-2.dll
224 %{_dlldir}/libcairo-script-interpreter-2.dll
227 %defattr(644,root,root,755)
228 %{_libdir}/libcairo-gobject.dll.a
229 %{_libdir}/libcairo-gobject.la
230 %{_includedir}/cairo/cairo-gobject.h
231 %{_pkgconfigdir}/cairo-gobject.pc
233 %files gobject-static
234 %defattr(644,root,root,755)
235 %{_libdir}/libcairo-gobject.a
238 %defattr(644,root,root,755)
239 %{_dlldir}/libcairo-gobject-2.dll