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.xz
10 # Source0-md5: bddd5c5b734ab4b9683eb0ba363070d4
11 Patch0: cairo-link.patch
12 Patch1: cairo-mingw32.patch
13 URL: http://cairographics.org/
14 BuildRequires: autoconf >= 2.63
15 BuildRequires: automake >= 1:1.11
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 >= 2:2.2
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, most of -f options are Linux-specific
48 # note: although C++ code is not used, failing configure check disables DLL building
49 %define filterout_ld -Wl,-z,.*
50 %define filterout_c -f[-a-z0-9=]*
51 %define filterout_cxx -f[-a-z0-9=]*
54 Cairo provides anti-aliased vector-based rendering for X. Paths
55 consist of line segments and cubic splines and can be rendered at any
56 width with various join and cap styles. All colors may be specified
57 with optional translucence (opacity/alpha) and combined using the
58 extended Porter/Duff compositing algebra as found in the X Render
61 Cairo exports a stateful rendering API similar in spirit to the path
62 construction, text, and painting operators of PostScript, (with the
63 significant addition of translucence in the imaging model). When
64 complete, the API is intended to support the complete imaging model of
67 This package contains the cross version for Win32.
69 %description -l pl.UTF-8
70 Cairo obsługuje oparty na wektorach rendering z antyaliasingiem dla X.
71 Ścieżki składają się z odcinków i splajnów kubicznych, a renderowane
72 mogą być z dowolną grubością i różnymi stylami połączeń i zakończeń.
73 Wszystkie kolory mogą być podane z opcjonalną półprzezroczystością
74 (podaną przez współczynnik nieprzezroczystości lub alpha) i łączone
75 przy użyciu rozszerzonego algorytmu składania Portera-Duffa, który
76 można znaleźć w rozszerzeniu X Render.
78 Cairo eksportuje stanowe API renderujące w duchu podobne do operatorów
79 konstruowania ścieżek, tekstu i rysowania z PostScriptu (ze znacznym
80 dodatkiem półprzezroczystości w modelu obrazu). Kiedy API zostanie
81 ukończone, ma obsługiwać pełny model obrazu z PDF w wersji 1.4.
83 Ten pakiet zawiera wersję skrośną dla Win32.
86 Summary: Static Cairo library (cross MinGW32 version)
87 Summary(pl.UTF-8): Statyczna biblioteka Cairo (wersja skrośna MinGW32)
88 Group: Development/Libraries
89 Requires: %{name} = %{version}-%{release}
92 Static Cairo library (cross MinGW32 version).
94 %description static -l pl.UTF-8
95 Statyczna biblioteka Cairo (wersja skrośna MinGW32).
98 Summary: DLL Cairo library for Windows
99 Summary(pl.UTF-8): Biblioteka DLL Cairo dla Windows
100 Group: Applications/Emulators
101 Requires: crossmingw32-fontconfig-dll >= 2.2.95
102 Requires: crossmingw32-freetype-dll >= 2.3.0
103 Requires: crossmingw32-libpng-dll
104 Requires: crossmingw32-pixman-dll >= 0.22.0
107 DLL Cairo library for Windows.
109 %description dll -l pl.UTF-8
110 Biblioteka DLL Cairo dla Windows.
113 Summary: Cairo GObject functions library - cross MinGW32 version
114 Summary(pl.UTF-8): Biblioteka funkcji Cairo GObject - wersja skrośna MinGW32
115 Group: Development/Libraries
116 Requires: %{name} = %{version}-%{release}
117 Requires: crossmingw32-glib2 >= 2.0
120 Cairo GObject functions library - cross MinGW32 version.
122 %description gobject -l pl.UTF-8
123 Biblioteka funkcji Cairo GObject - wersja skrośna MinGW32.
125 %package gobject-static
126 Summary: Static Cairo GObject library (cross MinGW32 version)
127 Summary(pl.UTF-8): Statyczna biblioteka Cairo GObject (wersja skrośna MinGW32)
128 Group: Development/Libraries
129 Requires: %{name}-gobject = %{version}-%{release}
131 %description gobject-static
132 Static Cairo GObject library (cross MinGW32 version).
134 %description gobject-static -l pl.UTF-8
135 Statyczna biblioteka Cairo GObject (wersja skrośna MinGW32).
138 Summary: DLL Cairo GObject library for Windows
139 Summary(pl.UTF-8): Biblioteka DLL Cairo GObject dla Windows
140 Group: Applications/Emulators
141 Requires: %{name}-dll = %{version}-%{release}
142 Requires: crossmingw32-glib2-dll >= 2.0
144 %description gobject-dll
145 DLL Cairo GObject library for Windows.
147 %description gobject-dll -l pl.UTF-8
148 Biblioteka DLL Cairo GObject dla Windows.
151 %setup -q -n %{realname}-%{version}
156 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
158 %{__aclocal} -I build
163 CPPFLAGS="%{rpmcppflags} -Dffs=__builtin_ffs" \
164 lt_cv_deplibs_check_method=pass_all \
168 --disable-silent-rules \
170 --disable-xlib-render \
182 rm -rf $RPM_BUILD_ROOT
185 DESTDIR=$RPM_BUILD_ROOT
187 install -d $RPM_BUILD_ROOT%{_dlldir}
188 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
191 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
192 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
195 rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
198 rm -rf $RPM_BUILD_ROOT
201 %defattr(644,root,root,755)
202 # COPYING contains only notes, not LGPL/MPL texts
203 %doc AUTHORS COPYING ChangeLog NEWS README
204 %{_libdir}/libcairo.dll.a
205 %{_libdir}/libcairo.la
206 %{_libdir}/libcairo-script-interpreter.dll.a
207 %{_libdir}/libcairo-script-interpreter.la
209 %exclude %{_includedir}/cairo/cairo-gobject.h
210 %{_pkgconfigdir}/cairo.pc
211 %{_pkgconfigdir}/cairo-fc.pc
212 %{_pkgconfigdir}/cairo-ft.pc
213 %{_pkgconfigdir}/cairo-pdf.pc
214 %{_pkgconfigdir}/cairo-png.pc
215 %{_pkgconfigdir}/cairo-ps.pc
216 %{_pkgconfigdir}/cairo-script.pc
217 %{_pkgconfigdir}/cairo-svg.pc
218 %{_pkgconfigdir}/cairo-tee.pc
219 %{_pkgconfigdir}/cairo-win32.pc
220 %{_pkgconfigdir}/cairo-win32-font.pc
221 %{_pkgconfigdir}/cairo-xml.pc
224 %defattr(644,root,root,755)
225 %{_libdir}/libcairo.a
226 %{_libdir}/libcairo-script-interpreter.a
229 %defattr(644,root,root,755)
230 %{_dlldir}/libcairo-2.dll
231 %{_dlldir}/libcairo-script-interpreter-2.dll
234 %defattr(644,root,root,755)
235 %{_libdir}/libcairo-gobject.dll.a
236 %{_libdir}/libcairo-gobject.la
237 %{_includedir}/cairo/cairo-gobject.h
238 %{_pkgconfigdir}/cairo-gobject.pc
240 %files gobject-static
241 %defattr(644,root,root,755)
242 %{_libdir}/libcairo-gobject.a
245 %defattr(644,root,root,755)
246 %{_dlldir}/libcairo-gobject-2.dll