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: 70a2ece66cf473d976e2db0f75bf199e
11 Patch0: cairo-link.patch
12 URL: http://cairographics.org/
13 BuildRequires: autoconf >= 2.59
14 BuildRequires: automake >= 1:1.9.6
15 BuildRequires: crossmingw32-fontconfig >= 2.2.95
16 BuildRequires: crossmingw32-freetype >= 2.3.0
17 BuildRequires: crossmingw32-glib2 >= 2.0
18 BuildRequires: crossmingw32-libpng
19 BuildRequires: crossmingw32-pixman >= 0.18.4
20 BuildRequires: crossmingw32-zlib
21 BuildRequires: libtool
22 BuildRequires: pkgconfig >= 1:0.15
23 Requires: crossmingw32-fontconfig >= 2.2.95
24 Requires: crossmingw32-freetype >= 2.3.0
25 Requires: crossmingw32-libpng
26 Requires: crossmingw32-pixman >= 0.18.4
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define no_install_post_strip 1
31 %define target i386-mingw32
32 %define target_platform i386-pc-mingw32
34 %define _sysprefix /usr
35 %define _prefix %{_sysprefix}/%{target}
36 %define _libdir %{_prefix}/lib
37 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
38 %define _dlldir /usr/share/wine/windows/system
39 %define __cc %{target}-gcc
40 %define __cxx %{target}-g++
43 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
46 # -z options are invalid for mingw linker
47 %define filterout_ld -Wl,-z,.*
50 Cairo provides anti-aliased vector-based rendering for X. Paths
51 consist of line segments and cubic splines and can be rendered at any
52 width with various join and cap styles. All colors may be specified
53 with optional translucence (opacity/alpha) and combined using the
54 extended Porter/Duff compositing algebra as found in the X Render
57 Cairo exports a stateful rendering API similar in spirit to the path
58 construction, text, and painting operators of PostScript, (with the
59 significant addition of translucence in the imaging model). When
60 complete, the API is intended to support the complete imaging model of
63 This package contains the cross version for Win32.
65 %description -l pl.UTF-8
66 Cairo obsługuje oparty na wektorach rendering z antyaliasingiem dla X.
67 Ścieżki składają się z odcinków i splajnów kubicznych, a renderowane
68 mogą być z dowolną grubością i różnymi stylami połączeń i zakończeń.
69 Wszystkie kolory mogą być podane z opcjonalną półprzezroczystością
70 (podaną przez współczynnik nieprzezroczystości lub alpha) i łączone
71 przy użyciu rozszerzonego algorytmu składania Portera-Duffa, który
72 można znaleźć w rozszerzeniu X Render.
74 Cairo eksportuje stanowe API renderujące w duchu podobne do operatorów
75 konstruowania ścieżek, tekstu i rysowania z PostScriptu (ze znacznym
76 dodatkiem półprzezroczystości w modelu obrazu). Kiedy API zostanie
77 ukończone, ma obsługiwać pełny model obrazu z PDF w wersji 1.4.
79 Ten pakiet zawiera wersję skrośną dla Win32.
82 Summary: Static Cairo library (cross MinGW32 version)
83 Summary(pl.UTF-8): Statyczna biblioteka Cairo (wersja skrośna MinGW32)
84 Group: Development/Libraries
85 Requires: %{name} = %{version}-%{release}
88 Static Cairo library (cross MinGW32 version).
90 %description static -l pl.UTF-8
91 Statyczna biblioteka Cairo (wersja skrośna MinGW32).
94 Summary: DLL Cairo library for Windows
95 Summary(pl.UTF-8): Biblioteka DLL Cairo dla Windows
96 Group: Applications/Emulators
97 Requires: crossmingw32-fontconfig-dll >= 2.2.95
98 Requires: crossmingw32-freetype-dll >= 2.3.0
99 Requires: crossmingw32-libpng-dll
100 Requires: crossmingw32-pixman-dll >= 0.18.4
103 DLL Cairo library for Windows.
105 %description dll -l pl.UTF-8
106 Biblioteka DLL Cairo dla Windows.
109 Summary: Cairo GObject functions library - cross MinGW32 version
110 Summary(pl.UTF-8): Biblioteka funkcji Cairo GObject - wersja skrośna MinGW32
111 Group: Development/Libraries
112 Requires: %{name} = %{version}-%{release}
113 Requires: crossmingw32-glib2 >= 2.0
116 Cairo GObject functions library - cross MinGW32 version.
118 %description gobject -l pl.UTF-8
119 Biblioteka funkcji Cairo GObject - wersja skrośna MinGW32.
121 %package gobject-static
122 Summary: Static Cairo GObject library (cross MinGW32 version)
123 Summary(pl.UTF-8): Statyczna biblioteka Cairo GObject (wersja skrośna MinGW32)
124 Group: Development/Libraries
125 Requires: %{name}-gobject = %{version}-%{release}
127 %description gobject-static
128 Static Cairo GObject library (cross MinGW32 version).
130 %description gobject-static -l pl.UTF-8
131 Statyczna biblioteka Cairo GObject (wersja skrośna MinGW32).
134 Summary: DLL Cairo GObject library for Windows
135 Summary(pl.UTF-8): Biblioteka DLL Cairo GObject dla Windows
136 Group: Applications/Emulators
137 Requires: %{name}-dll = %{version}-%{release}
138 Requires: crossmingw32-glib2-dll >= 2.0
140 %description gobject-dll
141 DLL Cairo GObject library for Windows.
143 %description gobject-dll -l pl.UTF-8
144 Biblioteka DLL Cairo GObject dla Windows.
147 %setup -q -n %{realname}-%{version}
151 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
153 %{__aclocal} -I build
158 CPPFLAGS="%{rpmcppflags} -Dffs=__builtin_ffs" \
159 lt_cv_deplibs_check_method=pass_all \
163 --disable-silent-rules \
165 --disable-xlib-render \
175 rm -rf $RPM_BUILD_ROOT
178 DESTDIR=$RPM_BUILD_ROOT
180 install -d $RPM_BUILD_ROOT%{_dlldir}
181 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
184 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
185 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
188 rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
191 rm -rf $RPM_BUILD_ROOT
194 %defattr(644,root,root,755)
195 # COPYING contains only notes, not LGPL/MPL texts
196 %doc AUTHORS COPYING ChangeLog NEWS README
197 %{_libdir}/libcairo.dll.a
198 %{_libdir}/libcairo.la
199 %{_libdir}/libcairo-script-interpreter.dll.a
200 %{_libdir}/libcairo-script-interpreter.la
202 %exclude %{_includedir}/cairo/cairo-gobject.h
203 %{_pkgconfigdir}/cairo.pc
204 %{_pkgconfigdir}/cairo-fc.pc
205 %{_pkgconfigdir}/cairo-ft.pc
206 %{_pkgconfigdir}/cairo-pdf.pc
207 %{_pkgconfigdir}/cairo-png.pc
208 %{_pkgconfigdir}/cairo-ps.pc
209 %{_pkgconfigdir}/cairo-svg.pc
210 %{_pkgconfigdir}/cairo-win32.pc
211 %{_pkgconfigdir}/cairo-win32-font.pc
214 %defattr(644,root,root,755)
215 %{_libdir}/libcairo.a
216 %{_libdir}/libcairo-script-interpreter.a
219 %defattr(644,root,root,755)
220 %{_dlldir}/libcairo-2.dll
221 %{_dlldir}/libcairo-script-interpreter-2.dll
224 %defattr(644,root,root,755)
225 %{_libdir}/libcairo-gobject.dll.a
226 %{_libdir}/libcairo-gobject.la
227 %{_includedir}/cairo/cairo-gobject.h
228 %{_pkgconfigdir}/cairo-gobject.pc
230 %files gobject-static
231 %defattr(644,root,root,755)
232 %{_libdir}/libcairo-gobject.a
235 %defattr(644,root,root,755)
236 %{_dlldir}/libcairo-gobject-2.dll