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