]>
Commit | Line | Data |
---|---|---|
75ae79e7 JB |
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 | |
8401d423 JB |
3 | %define realname cairo |
4 | Name: crossmingw32-%{realname} | |
ead09fb0 | 5 | Version: 1.12.0 |
c00b5b7c | 6 | Release: 1 |
87d9b0f9 | 7 | License: LGPL v2.1 or MPL v1.1 |
ed706dfc | 8 | Group: Development/Libraries |
8401d423 | 9 | Source0: http://cairographics.org/releases/%{realname}-%{version}.tar.gz |
ead09fb0 | 10 | # Source0-md5: e6c85575ba7094f88b637bdfd835a751 |
87d9b0f9 | 11 | Patch0: cairo-link.patch |
ead09fb0 | 12 | Patch1: cairo-mingw32.patch |
c00b5b7c | 13 | URL: http://cairographics.org/ |
75ae79e7 JB |
14 | BuildRequires: autoconf >= 2.59 |
15 | BuildRequires: automake >= 1:1.9.6 | |
16 | BuildRequires: crossmingw32-fontconfig >= 2.2.95 | |
87d9b0f9 | 17 | BuildRequires: crossmingw32-freetype >= 2.3.0 |
75ae79e7 | 18 | BuildRequires: crossmingw32-glib2 >= 2.0 |
c00b5b7c | 19 | BuildRequires: crossmingw32-libpng |
ead09fb0 | 20 | BuildRequires: crossmingw32-pixman >= 0.22.0 |
c00b5b7c | 21 | BuildRequires: crossmingw32-zlib |
22 | BuildRequires: libtool | |
36f07f62 | 23 | BuildRequires: pkgconfig >= 1:0.15 |
75ae79e7 | 24 | Requires: crossmingw32-fontconfig >= 2.2.95 |
87d9b0f9 | 25 | Requires: crossmingw32-freetype >= 2.3.0 |
ed706dfc | 26 | Requires: crossmingw32-libpng |
ead09fb0 | 27 | Requires: crossmingw32-pixman >= 0.22.0 |
c00b5b7c | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %define no_install_post_strip 1 | |
31 | ||
32 | %define target i386-mingw32 | |
33 | %define target_platform i386-pc-mingw32 | |
c00b5b7c | 34 | |
35 | %define _sysprefix /usr | |
36 | %define _prefix %{_sysprefix}/%{target} | |
ab6df3fd | 37 | %define _libdir %{_prefix}/lib |
c00b5b7c | 38 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
ed706dfc | 39 | %define _dlldir /usr/share/wine/windows/system |
c00b5b7c | 40 | %define __cc %{target}-gcc |
41 | %define __cxx %{target}-g++ | |
42 | ||
87d9b0f9 JB |
43 | %ifnarch %{ix86} |
44 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
45 | %define optflags -O2 | |
46 | %endif | |
47 | # -z options are invalid for mingw linker | |
48 | %define filterout_ld -Wl,-z,.* | |
49 | ||
c00b5b7c | 50 | %description |
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 | |
56 | Extension. | |
57 | ||
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 | |
62 | PDF 1.4. | |
63 | ||
ed706dfc JB |
64 | This package contains the cross version for Win32. |
65 | ||
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 | |
53e09db9 | 72 | przy użyciu rozszerzonego algorytmu składania Portera-Duffa, który |
ed706dfc JB |
73 | można znaleźć w rozszerzeniu X Render. |
74 | ||
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. | |
79 | ||
80 | Ten pakiet zawiera wersję skrośną dla Win32. | |
81 | ||
82 | %package static | |
75ae79e7 JB |
83 | Summary: Static Cairo library (cross MinGW32 version) |
84 | Summary(pl.UTF-8): Statyczna biblioteka Cairo (wersja skrośna MinGW32) | |
ed706dfc JB |
85 | Group: Development/Libraries |
86 | Requires: %{name} = %{version}-%{release} | |
87 | ||
88 | %description static | |
75ae79e7 | 89 | Static Cairo library (cross MinGW32 version). |
ed706dfc JB |
90 | |
91 | %description static -l pl.UTF-8 | |
75ae79e7 | 92 | Statyczna biblioteka Cairo (wersja skrośna MinGW32). |
ed706dfc JB |
93 | |
94 | %package dll | |
53e09db9 JB |
95 | Summary: DLL Cairo library for Windows |
96 | Summary(pl.UTF-8): Biblioteka DLL Cairo dla Windows | |
ed706dfc | 97 | Group: Applications/Emulators |
75ae79e7 | 98 | Requires: crossmingw32-fontconfig-dll >= 2.2.95 |
87d9b0f9 | 99 | Requires: crossmingw32-freetype-dll >= 2.3.0 |
ed706dfc | 100 | Requires: crossmingw32-libpng-dll |
ead09fb0 | 101 | Requires: crossmingw32-pixman-dll >= 0.22.0 |
ed706dfc JB |
102 | |
103 | %description dll | |
53e09db9 | 104 | DLL Cairo library for Windows. |
ed706dfc JB |
105 | |
106 | %description dll -l pl.UTF-8 | |
53e09db9 | 107 | Biblioteka DLL Cairo dla Windows. |
c00b5b7c | 108 | |
75ae79e7 JB |
109 | %package gobject |
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 | |
115 | ||
116 | %description gobject | |
117 | Cairo GObject functions library - cross MinGW32 version. | |
118 | ||
119 | %description gobject -l pl.UTF-8 | |
120 | Biblioteka funkcji Cairo GObject - wersja skrośna MinGW32. | |
121 | ||
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} | |
127 | ||
128 | %description gobject-static | |
129 | Static Cairo GObject library (cross MinGW32 version). | |
130 | ||
131 | %description gobject-static -l pl.UTF-8 | |
132 | Statyczna biblioteka Cairo GObject (wersja skrośna MinGW32). | |
133 | ||
134 | %package gobject-dll | |
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 | |
140 | ||
141 | %description gobject-dll | |
142 | DLL Cairo GObject library for Windows. | |
143 | ||
144 | %description gobject-dll -l pl.UTF-8 | |
145 | Biblioteka DLL Cairo GObject dla Windows. | |
146 | ||
c00b5b7c | 147 | %prep |
8401d423 | 148 | %setup -q -n %{realname}-%{version} |
53e09db9 | 149 | %patch0 -p1 |
ead09fb0 | 150 | %patch1 -p1 |
c00b5b7c | 151 | |
152 | %build | |
36f07f62 | 153 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
c00b5b7c | 154 | %{__libtoolize} |
87d9b0f9 | 155 | %{__aclocal} -I build |
c00b5b7c | 156 | %{__autoheader} |
157 | %{__autoconf} | |
158 | %{__automake} | |
159 | %configure \ | |
75ae79e7 | 160 | CPPFLAGS="%{rpmcppflags} -Dffs=__builtin_ffs" \ |
ed706dfc | 161 | lt_cv_deplibs_check_method=pass_all \ |
c00b5b7c | 162 | --target=%{target} \ |
594215bd | 163 | --host=%{target} \ |
594215bd | 164 | --disable-gtk-doc \ |
75ae79e7 | 165 | --disable-silent-rules \ |
c00b5b7c | 166 | --disable-xlib \ |
167 | --disable-xlib-render \ | |
594215bd | 168 | --enable-freetype \ |
169 | --enable-pdf \ | |
170 | --enable-png \ | |
171 | --enable-ps \ | |
6da4c596 | 172 | --enable-windows |
594215bd | 173 | |
c00b5b7c | 174 | %{__make} |
175 | ||
176 | %install | |
177 | rm -rf $RPM_BUILD_ROOT | |
178 | ||
179 | %{__make} install \ | |
180 | DESTDIR=$RPM_BUILD_ROOT | |
181 | ||
ed706dfc JB |
182 | install -d $RPM_BUILD_ROOT%{_dlldir} |
183 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
184 | ||
185 | %if 0%{!?debug:1} | |
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 | |
188 | %endif | |
189 | ||
190 | rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc | |
191 | ||
c00b5b7c | 192 | %clean |
193 | rm -rf $RPM_BUILD_ROOT | |
194 | ||
195 | %files | |
196 | %defattr(644,root,root,755) | |
197 | # COPYING contains only notes, not LGPL/MPL texts | |
53e09db9 | 198 | %doc AUTHORS COPYING ChangeLog NEWS README |
ed706dfc JB |
199 | %{_libdir}/libcairo.dll.a |
200 | %{_libdir}/libcairo.la | |
75ae79e7 JB |
201 | %{_libdir}/libcairo-script-interpreter.dll.a |
202 | %{_libdir}/libcairo-script-interpreter.la | |
ed706dfc | 203 | %{_includedir}/cairo |
75ae79e7 | 204 | %exclude %{_includedir}/cairo/cairo-gobject.h |
6da4c596 | 205 | %{_pkgconfigdir}/cairo.pc |
75ae79e7 | 206 | %{_pkgconfigdir}/cairo-fc.pc |
6da4c596 JB |
207 | %{_pkgconfigdir}/cairo-ft.pc |
208 | %{_pkgconfigdir}/cairo-pdf.pc | |
209 | %{_pkgconfigdir}/cairo-png.pc | |
210 | %{_pkgconfigdir}/cairo-ps.pc | |
ead09fb0 | 211 | %{_pkgconfigdir}/cairo-script.pc |
6da4c596 JB |
212 | %{_pkgconfigdir}/cairo-svg.pc |
213 | %{_pkgconfigdir}/cairo-win32.pc | |
53e09db9 | 214 | %{_pkgconfigdir}/cairo-win32-font.pc |
ed706dfc JB |
215 | |
216 | %files static | |
217 | %defattr(644,root,root,755) | |
218 | %{_libdir}/libcairo.a | |
75ae79e7 | 219 | %{_libdir}/libcairo-script-interpreter.a |
ed706dfc JB |
220 | |
221 | %files dll | |
222 | %defattr(644,root,root,755) | |
75ae79e7 JB |
223 | %{_dlldir}/libcairo-2.dll |
224 | %{_dlldir}/libcairo-script-interpreter-2.dll | |
225 | ||
226 | %files gobject | |
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 | |
232 | ||
233 | %files gobject-static | |
234 | %defattr(644,root,root,755) | |
235 | %{_libdir}/libcairo-gobject.a | |
236 | ||
237 | %files gobject-dll | |
238 | %defattr(644,root,root,755) | |
239 | %{_dlldir}/libcairo-gobject-2.dll |