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: https://www.cairographics.org/releases/%{realname}-%{version}.tar.xz
10 # Source0-md5: 9f0db9dbfca0966be8acd682e636d165
11 Patch0: cairo-link.patch
12 Patch1: cairo-mingw32.patch
13 Patch2: cairo-add-cairo-API-to-setup-Win32-surface-for-HDC.patch
14 URL: https://www.cairographics.org/
15 BuildRequires: autoconf >= 2.63
16 BuildRequires: automake >= 1:1.11
17 BuildRequires: crossmingw32-fontconfig >= 2.2.95
18 BuildRequires: crossmingw32-freetype >= 2.3.0
19 BuildRequires: crossmingw32-glib2 >= 2.14
20 BuildRequires: crossmingw32-libpng
21 BuildRequires: crossmingw32-pixman >= 0.30.0
22 BuildRequires: crossmingw32-zlib
23 BuildRequires: libtool >= 2:2.2
24 BuildRequires: pkgconfig >= 1:0.18
25 Requires: crossmingw32-fontconfig >= 2.2.95
26 Requires: crossmingw32-freetype >= 2.3.0
27 Requires: crossmingw32-libpng
28 Requires: crossmingw32-pixman >= 0.30.0
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define no_install_post_strip 1
33 %define target i386-mingw32
34 %define target_platform i386-pc-mingw32
36 %define _sysprefix /usr
37 %define _prefix %{_sysprefix}/%{target}
38 %define _libdir %{_prefix}/lib
39 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
40 %define _dlldir /usr/share/wine/windows/system
41 %define __cc %{target}-gcc
42 %define __cxx %{target}-g++
43 %define __pkgconfig_provides %{nil}
44 %define __pkgconfig_requires %{nil}
47 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
50 # -z options are invalid for mingw linker, most of -f options are Linux-specific
51 # note: although C++ code is not used, failing configure check disables DLL building
52 %define filterout_ld -Wl,-z,.*
53 %define filterout_c -f[-a-z0-9=]*
54 %define filterout_cxx -f[-a-z0-9=]*
57 Cairo provides anti-aliased vector-based rendering for X. Paths
58 consist of line segments and cubic splines and can be rendered at any
59 width with various join and cap styles. All colors may be specified
60 with optional translucence (opacity/alpha) and combined using the
61 extended Porter/Duff compositing algebra as found in the X Render
64 Cairo exports a stateful rendering API similar in spirit to the path
65 construction, text, and painting operators of PostScript, (with the
66 significant addition of translucence in the imaging model). When
67 complete, the API is intended to support the complete imaging model of
70 This package contains the cross version for Win32.
72 %description -l pl.UTF-8
73 Cairo obsługuje oparty na wektorach rendering z antyaliasingiem dla X.
74 Ścieżki składają się z odcinków i splajnów kubicznych, a renderowane
75 mogą być z dowolną grubością i różnymi stylami połączeń i zakończeń.
76 Wszystkie kolory mogą być podane z opcjonalną półprzezroczystością
77 (podaną przez współczynnik nieprzezroczystości lub alpha) i łączone
78 przy użyciu rozszerzonego algorytmu składania Portera-Duffa, który
79 można znaleźć w rozszerzeniu X Render.
81 Cairo eksportuje stanowe API renderujące w duchu podobne do operatorów
82 konstruowania ścieżek, tekstu i rysowania z PostScriptu (ze znacznym
83 dodatkiem półprzezroczystości w modelu obrazu). Kiedy API zostanie
84 ukończone, ma obsługiwać pełny model obrazu z PDF w wersji 1.4.
86 Ten pakiet zawiera wersję skrośną dla Win32.
89 Summary: Static Cairo library (cross MinGW32 version)
90 Summary(pl.UTF-8): Statyczna biblioteka Cairo (wersja skrośna MinGW32)
91 Group: Development/Libraries
92 Requires: %{name} = %{version}-%{release}
95 Static Cairo library (cross MinGW32 version).
97 %description static -l pl.UTF-8
98 Statyczna biblioteka Cairo (wersja skrośna MinGW32).
101 Summary: DLL Cairo library for Windows
102 Summary(pl.UTF-8): Biblioteka DLL Cairo dla Windows
103 Group: Applications/Emulators
104 Requires: crossmingw32-fontconfig-dll >= 2.2.95
105 Requires: crossmingw32-freetype-dll >= 2.3.0
106 Requires: crossmingw32-libpng-dll
107 Requires: crossmingw32-pixman-dll >= 0.30.0
110 DLL Cairo library for Windows.
112 %description dll -l pl.UTF-8
113 Biblioteka DLL Cairo dla Windows.
116 Summary: Cairo GObject functions library - cross MinGW32 version
117 Summary(pl.UTF-8): Biblioteka funkcji Cairo GObject - wersja skrośna MinGW32
118 Group: Development/Libraries
119 Requires: %{name} = %{version}-%{release}
120 Requires: crossmingw32-glib2 >= 2.14
123 Cairo GObject functions library - cross MinGW32 version.
125 %description gobject -l pl.UTF-8
126 Biblioteka funkcji Cairo GObject - wersja skrośna MinGW32.
128 %package gobject-static
129 Summary: Static Cairo GObject library (cross MinGW32 version)
130 Summary(pl.UTF-8): Statyczna biblioteka Cairo GObject (wersja skrośna MinGW32)
131 Group: Development/Libraries
132 Requires: %{name}-gobject = %{version}-%{release}
134 %description gobject-static
135 Static Cairo GObject library (cross MinGW32 version).
137 %description gobject-static -l pl.UTF-8
138 Statyczna biblioteka Cairo GObject (wersja skrośna MinGW32).
141 Summary: DLL Cairo GObject library for Windows
142 Summary(pl.UTF-8): Biblioteka DLL Cairo GObject dla Windows
143 Group: Applications/Emulators
144 Requires: %{name}-dll = %{version}-%{release}
145 Requires: crossmingw32-glib2-dll >= 2.14
147 %description gobject-dll
148 DLL Cairo GObject library for Windows.
150 %description gobject-dll -l pl.UTF-8
151 Biblioteka DLL Cairo GObject dla Windows.
154 %setup -q -n %{realname}-%{version}
160 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
162 %{__aclocal} -I build
167 CPPFLAGS="%{rpmcppflags} -Dffs=__builtin_ffs" \
168 lt_cv_deplibs_check_method=pass_all \
172 --disable-silent-rules \
174 --disable-xlib-render \
186 rm -rf $RPM_BUILD_ROOT
189 DESTDIR=$RPM_BUILD_ROOT
191 install -d $RPM_BUILD_ROOT%{_dlldir}
192 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
195 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
196 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
199 rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
202 rm -rf $RPM_BUILD_ROOT
205 %defattr(644,root,root,755)
206 # COPYING contains only notes, not LGPL/MPL texts
207 %doc AUTHORS COPYING ChangeLog NEWS README
208 %{_libdir}/libcairo.dll.a
209 %{_libdir}/libcairo.la
210 %{_libdir}/libcairo-script-interpreter.dll.a
211 %{_libdir}/libcairo-script-interpreter.la
213 %exclude %{_includedir}/cairo/cairo-gobject.h
214 %{_pkgconfigdir}/cairo.pc
215 %{_pkgconfigdir}/cairo-fc.pc
216 %{_pkgconfigdir}/cairo-ft.pc
217 %{_pkgconfigdir}/cairo-pdf.pc
218 %{_pkgconfigdir}/cairo-png.pc
219 %{_pkgconfigdir}/cairo-ps.pc
220 %{_pkgconfigdir}/cairo-script.pc
221 %{_pkgconfigdir}/cairo-svg.pc
222 %{_pkgconfigdir}/cairo-tee.pc
223 %{_pkgconfigdir}/cairo-win32.pc
224 %{_pkgconfigdir}/cairo-win32-font.pc
225 %{_pkgconfigdir}/cairo-xml.pc
228 %defattr(644,root,root,755)
229 %{_libdir}/libcairo.a
230 %{_libdir}/libcairo-script-interpreter.a
233 %defattr(644,root,root,755)
234 %{_dlldir}/libcairo-2.dll
235 %{_dlldir}/libcairo-script-interpreter-2.dll
238 %defattr(644,root,root,755)
239 %{_libdir}/libcairo-gobject.dll.a
240 %{_libdir}/libcairo-gobject.la
241 %{_includedir}/cairo/cairo-gobject.h
242 %{_pkgconfigdir}/cairo-gobject.pc
244 %files gobject-static
245 %defattr(644,root,root,755)
246 %{_libdir}/libcairo-gobject.a
249 %defattr(644,root,root,755)
250 %{_dlldir}/libcairo-gobject-2.dll