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