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