]> git.pld-linux.org Git - packages/crossmingw32-cairo.git/blame - crossmingw32-cairo.spec
- updated to 1.12.4
[packages/crossmingw32-cairo.git] / crossmingw32-cairo.spec
CommitLineData
75ae79e7
JB
1Summary: Cairo - multi-platform 2D graphics library - cross MinGW32 version
2Summary(pl.UTF-8): Cairo - wieloplatformowa biblioteka graficzna 2D - skrośna wersja MinGW32
8401d423
JB
3%define realname cairo
4Name: crossmingw32-%{realname}
d8d1430b 5Version: 1.12.4
c00b5b7c 6Release: 1
87d9b0f9 7License: LGPL v2.1 or MPL v1.1
ed706dfc 8Group: Development/Libraries
c0f86d72 9Source0: http://cairographics.org/releases/%{realname}-%{version}.tar.xz
d8d1430b 10# Source0-md5: a64bb8774a1e476e5cdd69e635794dfb
87d9b0f9 11Patch0: cairo-link.patch
ead09fb0 12Patch1: cairo-mingw32.patch
c00b5b7c 13URL: http://cairographics.org/
c0f86d72
JB
14BuildRequires: autoconf >= 2.63
15BuildRequires: automake >= 1:1.11
75ae79e7 16BuildRequires: crossmingw32-fontconfig >= 2.2.95
87d9b0f9 17BuildRequires: crossmingw32-freetype >= 2.3.0
75ae79e7 18BuildRequires: crossmingw32-glib2 >= 2.0
c00b5b7c 19BuildRequires: crossmingw32-libpng
ead09fb0 20BuildRequires: crossmingw32-pixman >= 0.22.0
c00b5b7c 21BuildRequires: crossmingw32-zlib
c0f86d72 22BuildRequires: libtool >= 2:2.2
36f07f62 23BuildRequires: pkgconfig >= 1:0.15
75ae79e7 24Requires: crossmingw32-fontconfig >= 2.2.95
87d9b0f9 25Requires: crossmingw32-freetype >= 2.3.0
ed706dfc 26Requires: crossmingw32-libpng
ead09fb0 27Requires: crossmingw32-pixman >= 0.22.0
c00b5b7c 28BuildRoot: %{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
45f76160 47# -z options are invalid for mingw linker, most of -f options are Linux-specific
c38236d6 48# note: although C++ code is not used, failing configure check disables DLL building
87d9b0f9 49%define filterout_ld -Wl,-z,.*
45f76160 50%define filterout_c -f[-a-z0-9=]*
681bdb00 51%define filterout_cxx -f[-a-z0-9=]*
87d9b0f9 52
c00b5b7c 53%description
54Cairo provides anti-aliased vector-based rendering for X. Paths
55consist of line segments and cubic splines and can be rendered at any
56width with various join and cap styles. All colors may be specified
57with optional translucence (opacity/alpha) and combined using the
58extended Porter/Duff compositing algebra as found in the X Render
59Extension.
60
61Cairo exports a stateful rendering API similar in spirit to the path
62construction, text, and painting operators of PostScript, (with the
63significant addition of translucence in the imaging model). When
64complete, the API is intended to support the complete imaging model of
65PDF 1.4.
66
ed706dfc
JB
67This package contains the cross version for Win32.
68
69%description -l pl.UTF-8
70Cairo 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
72mogą być z dowolną grubością i różnymi stylami połączeń i zakończeń.
73Wszystkie kolory mogą być podane z opcjonalną półprzezroczystością
74(podaną przez współczynnik nieprzezroczystości lub alpha) i łączone
53e09db9 75przy użyciu rozszerzonego algorytmu składania Portera-Duffa, który
ed706dfc
JB
76można znaleźć w rozszerzeniu X Render.
77
78Cairo eksportuje stanowe API renderujące w duchu podobne do operatorów
79konstruowania ścieżek, tekstu i rysowania z PostScriptu (ze znacznym
80dodatkiem półprzezroczystości w modelu obrazu). Kiedy API zostanie
81ukończone, ma obsługiwać pełny model obrazu z PDF w wersji 1.4.
82
83Ten pakiet zawiera wersję skrośną dla Win32.
84
85%package static
75ae79e7
JB
86Summary: Static Cairo library (cross MinGW32 version)
87Summary(pl.UTF-8): Statyczna biblioteka Cairo (wersja skrośna MinGW32)
ed706dfc
JB
88Group: Development/Libraries
89Requires: %{name} = %{version}-%{release}
90
91%description static
75ae79e7 92Static Cairo library (cross MinGW32 version).
ed706dfc
JB
93
94%description static -l pl.UTF-8
75ae79e7 95Statyczna biblioteka Cairo (wersja skrośna MinGW32).
ed706dfc
JB
96
97%package dll
53e09db9
JB
98Summary: DLL Cairo library for Windows
99Summary(pl.UTF-8): Biblioteka DLL Cairo dla Windows
ed706dfc 100Group: Applications/Emulators
75ae79e7 101Requires: crossmingw32-fontconfig-dll >= 2.2.95
87d9b0f9 102Requires: crossmingw32-freetype-dll >= 2.3.0
ed706dfc 103Requires: crossmingw32-libpng-dll
ead09fb0 104Requires: crossmingw32-pixman-dll >= 0.22.0
ed706dfc
JB
105
106%description dll
53e09db9 107DLL Cairo library for Windows.
ed706dfc
JB
108
109%description dll -l pl.UTF-8
53e09db9 110Biblioteka DLL Cairo dla Windows.
c00b5b7c 111
75ae79e7
JB
112%package gobject
113Summary: Cairo GObject functions library - cross MinGW32 version
114Summary(pl.UTF-8): Biblioteka funkcji Cairo GObject - wersja skrośna MinGW32
115Group: Development/Libraries
116Requires: %{name} = %{version}-%{release}
117Requires: crossmingw32-glib2 >= 2.0
118
119%description gobject
120Cairo GObject functions library - cross MinGW32 version.
121
122%description gobject -l pl.UTF-8
123Biblioteka funkcji Cairo GObject - wersja skrośna MinGW32.
124
125%package gobject-static
126Summary: Static Cairo GObject library (cross MinGW32 version)
127Summary(pl.UTF-8): Statyczna biblioteka Cairo GObject (wersja skrośna MinGW32)
128Group: Development/Libraries
129Requires: %{name}-gobject = %{version}-%{release}
130
131%description gobject-static
132Static Cairo GObject library (cross MinGW32 version).
133
134%description gobject-static -l pl.UTF-8
135Statyczna biblioteka Cairo GObject (wersja skrośna MinGW32).
136
137%package gobject-dll
138Summary: DLL Cairo GObject library for Windows
139Summary(pl.UTF-8): Biblioteka DLL Cairo GObject dla Windows
140Group: Applications/Emulators
141Requires: %{name}-dll = %{version}-%{release}
142Requires: crossmingw32-glib2-dll >= 2.0
143
144%description gobject-dll
145DLL Cairo GObject library for Windows.
146
147%description gobject-dll -l pl.UTF-8
148Biblioteka DLL Cairo GObject dla Windows.
149
c00b5b7c 150%prep
8401d423 151%setup -q -n %{realname}-%{version}
53e09db9 152%patch0 -p1
ead09fb0 153%patch1 -p1
c00b5b7c 154
155%build
36f07f62 156export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
c00b5b7c 157%{__libtoolize}
87d9b0f9 158%{__aclocal} -I build
c00b5b7c 159%{__autoheader}
160%{__autoconf}
161%{__automake}
162%configure \
75ae79e7 163 CPPFLAGS="%{rpmcppflags} -Dffs=__builtin_ffs" \
ed706dfc 164 lt_cv_deplibs_check_method=pass_all \
c00b5b7c 165 --target=%{target} \
594215bd 166 --host=%{target} \
594215bd 167 --disable-gtk-doc \
75ae79e7 168 --disable-silent-rules \
c00b5b7c 169 --disable-xlib \
170 --disable-xlib-render \
594215bd 171 --enable-freetype \
172 --enable-pdf \
173 --enable-png \
174 --enable-ps \
d8d1430b
JB
175 --enable-tee \
176 --enable-windows \
177 --enable-xml
594215bd 178
c00b5b7c 179%{__make}
180
181%install
182rm -rf $RPM_BUILD_ROOT
183
184%{__make} install \
185 DESTDIR=$RPM_BUILD_ROOT
186
ed706dfc
JB
187install -d $RPM_BUILD_ROOT%{_dlldir}
188mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
189
190%if 0%{!?debug:1}
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
193%endif
194
195rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
196
c00b5b7c 197%clean
198rm -rf $RPM_BUILD_ROOT
199
200%files
201%defattr(644,root,root,755)
202# COPYING contains only notes, not LGPL/MPL texts
53e09db9 203%doc AUTHORS COPYING ChangeLog NEWS README
ed706dfc
JB
204%{_libdir}/libcairo.dll.a
205%{_libdir}/libcairo.la
75ae79e7
JB
206%{_libdir}/libcairo-script-interpreter.dll.a
207%{_libdir}/libcairo-script-interpreter.la
ed706dfc 208%{_includedir}/cairo
75ae79e7 209%exclude %{_includedir}/cairo/cairo-gobject.h
6da4c596 210%{_pkgconfigdir}/cairo.pc
75ae79e7 211%{_pkgconfigdir}/cairo-fc.pc
6da4c596
JB
212%{_pkgconfigdir}/cairo-ft.pc
213%{_pkgconfigdir}/cairo-pdf.pc
214%{_pkgconfigdir}/cairo-png.pc
215%{_pkgconfigdir}/cairo-ps.pc
ead09fb0 216%{_pkgconfigdir}/cairo-script.pc
6da4c596 217%{_pkgconfigdir}/cairo-svg.pc
d8d1430b 218%{_pkgconfigdir}/cairo-tee.pc
6da4c596 219%{_pkgconfigdir}/cairo-win32.pc
53e09db9 220%{_pkgconfigdir}/cairo-win32-font.pc
d8d1430b 221%{_pkgconfigdir}/cairo-xml.pc
ed706dfc
JB
222
223%files static
224%defattr(644,root,root,755)
225%{_libdir}/libcairo.a
75ae79e7 226%{_libdir}/libcairo-script-interpreter.a
ed706dfc
JB
227
228%files dll
229%defattr(644,root,root,755)
75ae79e7
JB
230%{_dlldir}/libcairo-2.dll
231%{_dlldir}/libcairo-script-interpreter-2.dll
232
233%files gobject
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
239
240%files gobject-static
241%defattr(644,root,root,755)
242%{_libdir}/libcairo-gobject.a
243
244%files gobject-dll
245%defattr(644,root,root,755)
246%{_dlldir}/libcairo-gobject-2.dll
This page took 0.188113 seconds and 4 git commands to generate.